Work with Auto Job





  *PGMMOD                       Work with Auto Job             DD/MM/YY HH:MM:SS

  Auto Job Name  . . . . :   OOOOOOOOOO

  Auto Job Sequence  . . .   33333

  Auto Job Frequency . . .   I

  Auto Job Queue . . . . .   IIIIIIIIII

  Auto Job Delay Minutes .   333



                   Auto Job Command:
                   IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
                   IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII





  F3=Exit   F4=Prompt   F12=Cancel







Introduction

This function allows you to add new records to a database file, and to change existing records on the file: one record at a time. The function may be used in either of two modes; '*ADD' mode and '*CHANGE' mode; in '*ADD' mode you may add new records; in '*CHANGE' mode you may change existing records. You may switch between the two modes by means of a function key. Key_screen To add a new database record, you must first enter the new 'key' fields that identify the record, then press ENTER. The function will check that the key doesn't already exist, and either prompt you for the new record details or tell you that it already exists. To update a database record, you must first enter the 'key' fields to identify the record you want. The function will then look for your record, and either display it, or tell you that it cannot find it. Note that if the function already knows the key of the record, it will automatically skip the key screen, and display the record directly.



Function Keys

F1=Help.

Display related help display. By positioning the cursor at a field on the display and pressing help, help narrative will be displayed for that field. By placing the cursor on the title for the display, help narrative related to the entire function will be displayed. Once the any help narrative is displayed you may then enlarge the display by using the F20 key or you may display expanded help narrative by using the F2 key.

F3=Exit.

Exit the current task. In most cases this will return you to a high level function without displaying all displays encountered in getting to this point.

F4=Prompt.

Display a list of values available to be used in the related field. Place your cursor on the field for which you would like to see a list and press the F4 key.

F5=Reset.

Refreshes the display. In most cases the display will be refreshed to the original values and any keyed information typed after the last enter key will be lost.

F9=Change mode.

Change program entry mode to change in order to display or update existing records.

HELP=Help.

Display related help display. By positioning the cursor at a field on the display and pressing help, help narrative will be displayed for that field. By placing the cursor on the title for the display, help narrative related to the entire function will be displayed. Once the any help narrative is displayed you may then enlarge the display by using the F20 key or you may display expanded help narrative by using the F2 key.



Variable Definitions




Function Keys

F1=Help.

Display related help display. By positioning the cursor at a field on the display and pressing help, help narrative will be displayed for that field. By placing the cursor on the title for the display, help narrative related to the entire function will be displayed. Once the any help narrative is displayed you may then enlarge the display by using the F20 key or you may display expanded help narrative by using the F2 key.

F3=Exit.

Exit the current task. In most cases this will return you to a high level function without displaying all displays encountered in getting to this point.

F4=Prompt.

Display a list of values available to be used in the related field. Place your cursor on the field for which you would like to see a list and press the F4 key.

F5=Reset.

Refreshes the display. In most cases the display will be refreshed to the original values and any keyed information typed after the last enter key will be lost.

F12=Cancel.

Return to previous display without performing any action.

F21=Key screen.

HELP=Help.

Display related help display. By positioning the cursor at a field on the display and pressing help, help narrative will be displayed for that field. By placing the cursor on the title for the display, help narrative related to the entire function will be displayed. Once the any help narrative is displayed you may then enlarge the display by using the F20 key or you may display expanded help narrative by using the F2 key.



Variable Definitions

Auto Job Name

Display only
The name of the Auto Job.

Auto Job Name

Display only
The name of the Auto Job.

Auto Job Sequence

REQUIRED
The sequence in which Auto Jobs are to be submitted.

Auto Job Frequency

REQUIRED
The frequency with which an Auto Job is to be submitted.
   5 = Five Days a Week
   F = Friday
   M = Monday
   S = Saturday
   7 = Seven Days a Week
   6 = Six Days a Week
   U = Sunday
   H = Thursday
   T = Tuesday
   W = Wednesday

Auto Job Queue

REQUIRED
The name of the job queue to be used when the Auto Job is submitted.

Auto Job Delay Minutes

OPTIONAL
The number of minutes to wait from the time an Auto Job is submitted until it executes. This is to allow enough time for a prior job to complete.

Auto Job Command:

REQUIRED
The command string to be submitted for the job. The command string must be a valid AS/400 command string.