HPlogo Performing System Operation Tasks: 900 Series HP 3000 Computer Systems > Chapter 5 Performing System Functions

Managing Job Activity

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

A job is a sequence of instructions given to the computer to process. It involves two separate steps: creating the job (which involves entering instructions in a job file and saving it) and telling the computer to process the job.

To create a job file

Use EDIT/3000 to enter computer instructions into a job file. To create a job file, do the following:

  1. At the system prompt, enter EDITOR.

    EDIT/3000 identifies itself, displays the day, date, and time, and then displays the EDIT/3000 prompt, "/".

  2. At the "/" prompt, enter:

       ADD 
    

    EDIT/3000 responds by displaying line number 1 and the blinking cursor:

  3. Enter !JOB followed by an optional job name and your user name (which is required) to identify the job. For example, enter:

       !JOB MYJOB,OPERATOR.SYS 
    

    If necessary, enter the passwords associated with your user name and account. For example:

       !JOB jobname,OPERATOR/userpass.SYS/accountpass
    

    When you press Return at the end of the first line, another line number appears.

  4. Begin each new line of the job file with an exclamation point (!). Otherwise, the computer will not know how to interpret your instructions. For example, enter:

       !SHOWME Return
    
    
    
       !SHOWJOB Return
    
    
    
       !LISTSPF Return
    
    
    
       !CONTINUE Return
    
    
    
       !LISTFILE @.@.SYS,2 Return
    
    
    
       !EOJ Return
    
  5. To end the job file, enter this on the line following the !EOJ:

       // 
    

    The editor's prompt reappears on the screen.

  6. Enter LIST ALL and check what you have entered at the console. If necessary, use the MODIFY command to correct any typing mistakes.

  7. Keep the job as a permanent file, unnumbered, by entering:

       KEEP MYJOB,UNN 
    
  8. Wait a moment for EDIT/3000's prompt to return to the screen. If instead you see the message MYJOB ALREADY EXISTS, keep the file with a new name.

  9. Enter the EXIT command to quit EDIT/3000.

To review your job file

If you followed the preceding steps, you have created a job file. Let's review each part.

The first line is required. It identifies the job to the computer in the same way that you use the HELLO command to begin a computer session. (If you are required to use passwords, they must appear in the first line too.)

   !JOB jobname,OPERATOR/userpass.SYS/accountpass

If you rename the job file, you may want to change the job name to match to more easily remember the job.

The commands in the job file are the instructions that the computer executes when it processes the job. Some of these should be familiar to you:

LineCommandPurpose
1!JOB MYJOB,OPERATOR.SYSBegin the job.
2!SHOWME"Tell me who I am."
3!SHOWJOB"Tell me who is using the computer."
4!LISTSPF O@"Tell me who is printing reports."
5!CONTINUE"If the next command causes an error, ignore it and go to the next one."
6!LISTFILE @.@.SYS,2"List all the files in my account."
7!EOJ"That is the end of this job."

The commands in lines 2 through 6 have something in common. Each one, except CONTINUE, reports information to you. If you entered these commands at the console, the information would appear on the console. Since these commands are grouped together into a job file, the information is collected in a report. When the job is finalized, you can pick up the report from your printer.

You end a session by entering BYE. Similarly, you always end a job by entering EOJ (end of job) on the last line of the job file. It tells the computer not to expect any more instructions or information from this job file.

To start a job

Use the STREAM command to start a job. Streaming a job introduces it to the computer and, in most cases, immediately begins the job. If there are restrictions on job processing, like a low job limit or a high jobfence, the computer keeps track of the job until it can begin.

To start a job, enter:

   STREAM jobfilename 

For example, to start the job named MYJOB, enter:

   STREAM MYJOB

The first thing you see is the number the computer assigned to your job. Then a message appears on the console and, if there are no restrictions on job processing, it will resemble this:

#Jnnn

:

15:49/#Jnnn/29/LOGON FOR: "MYJOB,OPERATOR.SYS" ON LDEV #10

#Jnnn is the number assigned by the computer.

To schedule a job

You can schedule your job to begin at a specific time or in a specific number of minutes, hours, or days.

To schedule a job at a specific hour

To schedule a job to begin at 8:00 p.m., enter:

   STREAM MYJOB;AT=20:00 

You must use a 24-hour clock to tell the computer a specific time at which to begin a job. For the hours between 1:00 p.m. and midnight use 13:00 to 24:00 hours. For example, 3:35 in the morning is expressed "3:35." The same time in the afternoon is expressed "15:35".

To verify that the job is scheduled to begin at the correct time, enter:

   SHOWJOB SCHED

The computer describes your job and others that are scheduled. The date defaults to the current date; only the time indicated in the SCHEDULED-INTRO column is relevant.



CURRENT:  1/30/94 9:35



JOBNUM STATE IPRI JIN  JLIST  SCHEDULED-INTRO  JOB NAME



#J13   SCHED   8  10S  LP     1/30/94  20:00    MYJOB,OPERATOR.SYS

To schedule a job to start in a few hours

Instead of telling the computer to begin the job at a specific time, you can tell it to start the job in a few hours. For example, if it is 9:30 in the morning and you want to begin the job at 8:00 that night, tell the computer to begin the job in ten and a half hours. To do so, enter:

   STREAM MYJOB;IN=,10,30 

Use commas as placeholders. The preceding command starts the job 0 days from now, so the first comma appears in place of 0. You could have expressed ten and a half hours from now as "0,10,30", or "0 days, 10 hours, and 30 minutes" from now. To schedule the job for just 30 minutes from now, you could enter the time as ",,30" or "0,0,30".

If you mistype the entry, the computer displays an error message. Reenter the command with the proper specifications. If you have scheduled the job correctly, the computer assigns it a job number.

To check on your job, enter:

   SHOWJOB SCHED 

To schedule a job to begin on a specific day

To tell the computer to begin the job in one day, 10 hours, and 30 minutes, enter:

   STREAM MYJOB;1,10,30 
Feedback to webmaster