Previous Topic

Next Topic

Book Contents

Book Index

Defining JOB4

Save the definition of IDJOB3 and create IDJOB4, as explained in the following steps.

  1. Exit the Job List screen.

    The Exit option window is displayed.

    Because you are saving the job scheduling definition in a table that already exists (IDGS1), you should use the SAVE option, not the CREATE option.

  2. Specify Y in the SAVE field and leave the CREATE field blank.

    The job scheduling definition is saved in the table. Because you bypassed the Table List screen when you entered the job scheduling definition, the entry panel is displayed.

    You can now create JOB4 by specifying a new JOB name in the entry panel,  as was done when you created IDJOB1 and IDJOB3, or by performing an Insert procedure in the Job List screen, as was done when you created IDJOB2.

    Because JOB4 will be very similar to JOB2, you should use the Insert method. Before going to the Job List screen, however, you should first enter the Table List screen and select the table you want to use as a template for the new job.

  3. Ensure the TABLE and JOB name fields are blank in the Entry panel, and enter the correct library name.

    The Table List screen is displayed.

  4. Enter the SELECT option for table IDGS1.

    The Job List screen is displayed for table IDGS1. It lists jobs IDJOB1, IDJOB2, and IDJOB3.

  5. Enter the INSERT option for IDJOB2.

    A new job scheduling definition is displayed. It contains several values found in IDJOB2.

  6. Make the following changes in the job scheduling definition.
    1. Specify IDJOB4 in the MEMNAME field.
    2. Change the value of the GROUP field to IDGRP2.
    3. Add the following description in the DESC field:
      AUXILIARY JOB WHEN IDJOB3 ENDS NOTOK.
    4. Delete the ALL value from the DAYS parameter.
    5. Replace the existing IN condition with IDJOB3-END-NOTOK, but do not change the date value ODAT.
    6. Change the OUT condition to IDJOB4-ENDED-OK  ODAT +.

The job scheduling definition appears as follows:

Figure 26 Job Scheduling Definition for job IDJOB4

  JOB: IDJOB4   LIB CTM.TEST.SCHEDULE                             TABLE: IDGS1

  COMMAND ===>                                                    SCROLL===> CRSR

  +-----------------------------------------------------------------------------+

    MEMNAME IDJOB4      MEMLIB   CTM.TEST.JCL

    OWNER   ID          TASKTYPE JOB    PREVENT-NCT2 Y DFLT  N

    APPL                                GROUP IDGRP2

    DESC    AUXILIARY JOB WHEN IDJOB3 ENDS NOTOK

    OVERLIB                                                   STAT CAL

    SCHENV                         SYSTEM ID                  NJE NODE   

    SET VAR

    CTB STEP AT         NAME            TYPE

    DOCMEM  IDJOB4      DOCLIB  

    ===========================================================================

    DAYS                                                          DCAL     

                                                                       AND/OR

    WDAYS                                                         WCAL

    MONTHS  1- Y 2- Y 3- Y 4- Y 5- Y 6- Y 7- Y 8- Y 9- Y 10- Y 11- Y 12- Y

    DATES

    CONFCAL                      RETRO N MAXWAIT 00  D-CAT

    MINIMUM          PDS

    DEFINITION ACTIVE FROM          UNTIL                     

    ===========================================================================

    IN       IDJOB3-END-NOTOK     ODAT

    CONTROL

    RESOURCE

    PIPE   

    FROM TIME         +     DAYS    UNTIL TIME      +     DAYS  

    DUE OUT TIME      +     DAYS    PRIORITY 00  SAC    CONFIRM

    TIME ZONE:                                                 

    ===========================================================================

    OUT      IDJOB4-ENDED-OK      ODAT +

    AUTO-ARCHIVE            SYSDB           MAXDAYS      MAXRUNS

    RETENTION:  # OF DAYS TO KEEP      # OF GENERATIONS TO KEEP

    SYSOUT OP   (C,D,F,N,R)                                              FROM

    MAXRERUN     RERUNMEM                              INTERVAL       FROM

    STEP RANGE         FR (PGM.PROC)          .          TO          .

    ON PGMST          PROCST          CODES                               A/O

      DO

    SHOUT WHEN           TIME       +     DAYS     TO                  URGN   

      MS

  ======= >>>>>>>>>>>>>>>>>>> END OF SCHEDULING PARAMETERS <<<<<<<<<<<<<<<< =====

   COMMANDS: EDIT, DOC, PLAN, JOBSTAT                                    11.17.00

You can save the job using the following procedure:

  1. Exit the job scheduling definition.

    The Job List screen is displayed.

  2. Exit the Job List screen.

    The Exit option window is displayed.

  3. Specify Y in the SAVE field and leave the CREATE field blank.

    This time, because you entered the Table List screen on the way to the job scheduling definition, the Table List screen is displayed.

  4. Enter the SELECT option for table IDGS1.

    Shown below is that section of the Job List screen for table IDGS1 that lists jobs IDJOB1, IDJOB2, IDJOB4 and IDJOB3.

    Figure 27 Job List Screen

JOB LIST     LIB: CTM.TEST.SCHEDULE                             TABLE: IDGS1

COMMAND ===>                                                    SCROLL===> CRSR

OPT  NAME ----- DESCRIPTION ---------------------------------------------------

      IDJOB1     THIS JOB MUST BE RUN BEFORE IDJOB2

      IDJOB2

      IDJOB4     AUXILIARY JOB WHEN IDJOB3 ENDS NOTOK

      IDJOB3     FISCAL RESULTS ON LAST FRIDAY OF MONTH

       

       

Parent Topic

Scheduling Definition and Manual Intervention