![]() |
![]() |
|
|
![]() |
![]() |
Task Reference: HP 3000 Series 9X8LX Computer Systems > Chapter 1 Learning to Use MPE/iX Commands![]() Creating a Job File |
|
Until now your logon time has been in session mode. In session mode, the computer acts on a single command at a time; however, in job mode or batch processing, you use the STREAM command to submit an entire series of commands as a batch file or job file to the computer. In this section, you practice with sample job files to see how job files are organized and what kinds of commands are used within these files. Below is a sample job file. This file contains examples of commands used in this section.
Every job file must contain a few specific commands. A job file must start with a JOB command. The purpose of the JOB command is to initiate a batch job. It is always the first executable line of any job and contains additional information regarding the location of the file materials, user names, and account names. Much like the HELLO command, the JOB command is to batch processing what the HELLO command is to interactive processing. By using the required and optional parameters of the JOB command, you tell the system that the commands that follow should be executed as a job. Follow these steps to create a job file:
Continue creating the job file by following the directions for the file equations in the section below. Job files generally include file equations to direct error listings and job output to other devices. The purpose of file equations is to do the following:
Add line 4 now by entering:
Your screen displays the following:
Some jobs might use a word processor or other applications or utilities (for example, EDIT/3000 or SORT/3000). Any application that is normally executed from a system prompt can be included in a job file preceded by an exclamation point. For example, line 3 of the sample job file starts the editor. Any application command that will be used in the job file, is entered on a separate line. Enter these commands in the same manner that you would if you were running the application interactively. Press Return and go to the next line. Add the following commands to the job file. (Press Return after each lines.)
What does this mean?
Your screen should look like this:
You have ended the internal set of commands for the application that this job will open and use; however, you have not yet completed creating your job file. The TELL command can be used to send a message to your terminal screen saying that a particular job has finished processing. Add the TELL command line now at line 7. Enter
Your screen should look like this:
The EOJ (End of Job) command terminates a job and displays the following information on the job's printout:
The EOJ command always appears on the last line of a job file. Add the EOJ command now. Enter:
You have now completed the text for a job file. Leave the ADD mode by entering two slashes (//) at the last line. Type LIST ALL at the slash prompt. Your screen should look like this:
Use the KEEP command to save this file. Enter:
Now you have a job file to execute. The process of doing this is called streaming a job. This is accomplished with the STREAM command. The STREAM command has options that allow you to actually specify the time and date that you wish a job to run. Refer to Volume III for information about these commands. Try streaming the file named MYJOB1NM. If you are still in the editor, you must enter a colon before the command name, /:STREAM MYJOB1NM. Enter:
Watch for the job number that appears on your screen (Jxxx). This number identifies your job file. MYJOB1NM immediately enters the job queue and print when the system printer is available. Now suppose you want to stream your job late at night at a specific time. You can specify the time, the day, and the date with the scheduling options of the STREAM command. There are several options that you can specify when using the STREAM command:
To schedule a job at a specific time, use the AT option of the STREAM command. Try scheduling MYJOB1NM to run tomorrow at 3:00 am. Enter:
Remember to enter the time of day in 24-hour notation. To schedule MYJOB1NM to run tomorrow at 3:00 pm, enter:
You can schedule your job on a specific calendar date with the DATE= option of the STREAM command. The format is the month (mm), day (dd), and the year (yy). For example, to schedule MYJOB1NM to run on a specific date, enter:
The IN= option of the STREAM command allows you to schedule a job to be streamed in a number of days, hours, and minutes. You can use a positive integer for the number of days. For the number of hours, use a number from 0 to 23. For the number of minutes, use a number from 0 to 59. For example, try scheduling MYJOB1NM to run in 5 days and 1 hour from the time that it is streamed. Enter:
To change this to today and 15 minutes from now, enter this now:
Because this job is now scheduled but not yet executed, you can see its job number and other information with the SHOWJOB command. If you have scheduled a job and later decide not to stream it, you can prevent it from starting. To see how to do this, try these steps now. Repeat the stream command for MYJOB1NM as you did previously. Do this a few times with different values of minutes. Enter:
(Remember to record each respective job number.) Now use the SHOWJOB command to see a list of these and any other scheduled jobs. Enter:
Try to stop the second job. Use the ABORTJOB command and the second job number in the list under the far left column of the display. For job number #J33, you would enter:
Again, try SHOWJOB JOB=@J to see that the job that you aborted has been removed from the list of scheduled jobs. |
![]() |
||
![]() |
![]() |
![]() |
|||||||||
|