Tailor and Schedule the Automic Automation Intelligence JCL Jobs

Instructions and sample JCL for the EVENT and JOBDEF JCL jobs are below. Scheduling instructions are also included for both jobs.

  • Tailor the JOBDEF JCL for your installation based on the following sample:

    Note: Step SCAL001 should be repeated for every calendar that is defined in CA7, with the appropriate calendar suffix (i.e. PE) substituted. Automic Automation Intelligence will also accept a file with all of the calendars for one year in it. This file should be named SCAL followed by the last two digits of the year (i.e. 2014 calendars would be SCAL14). See Note below for sample JCL on creating one file with many calendars.

    Example sample JOBDEF JCL:

    //JOBDEF JOB (ACNT-DATA),'JOB DEF JOB',
    // CLASS=B,MSGCLASS=X
    //*
    // SET BASEDSN='ADCDMST.JAWS.'
    // SET CAL2LOAD='ADCDMST.CA7.CAL2LOAD'
    //*
    //** CREATE OUTPUT FILE FOR LJOB
    //LJOB EXEC PGM=CAL2X2WB,PARM=',CA71'
    //STEPLIB DD DISP=SHR,DSN=&CAL2LOAD
    //SYSPRINT DD DSN=&BASEDSN.LJOB,DISP=(OLD,CATLG,CATLG)
    //ERRORS DD SYSOUT=*
    //SYSUDUMP DD SYSOUT=*
    //SYSIN DD *
    /LOGON MASTER
    LJOB,JOB=*,LIST=ALL
    /LOGOFF
    /*
    //LDSN EXEC PGM=CAL2X2WB,PARM=',CA71'
    //STEPLIB DD DISP=SHR,DSN=&CAL2LOAD
    //SYSPRINT DD DSN=&BASEDSN.LDSN,DISP=(OLD,CATLG,CATLG)
    //ERRORS DD SYSOUT=*
    //SYSUDUMP DD SYSOUT=*
    //SYSIN DD *
    /LOGON MASTER
    LDSN,DSNBR=DS*
    /LOGOFF
    /*
    //** CREATE OUTPUT FILE FOR SCAL14PE
    //SCAL001 EXEC PGM=CAL2X2WB,PARM=',CA71'
    //STEPLIB DD DISP=SHR,DSN=&CAL2LOAD
    //SYSPRINT DD DSN=&BASEDSN.SCAL14PE,DISP=(OLD,CATLG,CATLG)
    //ERRORS DD SYSOUT=*
    //SYSUDUMP DD SYSOUT=*
    //SYSIN DD *
    /LOGON MASTER
    PRINT,SCAL=PE,YEAR=14
    /LOGOFF
    /*
    //** CREATE OUTPUT FILE FOR MAINFRAME TIMEZONE
    //TIMEZONE EXEC PGM=BPXBATCH,
    // PARM='SH echo $TZ'
    //STDOUT DD DSN=&BASEDSN.TIMEZONE,DISP=(OLD,CATLG,CATLG)
          
          

    Note:

    For creating a one calendar file for all years, replace the create output file for SCAL14PE with the following example:

    //** CREATE OUTPUT FILE FOR SCAL14
    //SCAL001 EXEC PGM=CAL2X2WB,PARM=',CA71'
    //STEPLIB DD DISP=SHR,DSN=&CAL2LOAD
    //SYSPRINT DD DSN=&BASEDSN.SCAL14,DISP=(OLD,CATLG,CATLG)
    //ERRORS DD SYSOUT=*
    //SYSUDUMP DD SYSOUT=*
    //SYSIN DD *
    /LOGON MASTER
    PRINT,SCAL=PE,YEAR=14
    PRINT,SCAL=WE,YEAR=14
    /LOGOFF

  • Schedule the JOBDEF JCL job to run on a schedule in CA7 (typically once per day).
    Note: After running the JOBDEF JCL, the STDOUT DD for the TIMEZONE step should have a valid timezone in the format MST7MDT
  • Tailor the EVENT JCL for your installation based on the following example:
    //EVENT JOB (ACCT),EVENT.EXTRACTOR,
    // CLASS=B,
    // REGION=0M,
    // TIME=NOLIMIT
    //*
    // SET TRIGDSN='ADCDMST.TRIGGERS.JAWS'
    // SET RPTBASE='ADCDMST.JAWS'
    // SET CA7LOGP='ADCDMST.CA7.LOGP'
    // SET CA7LOGS='ADCDMST.CA7.LOGS'
    //*--------------------------------------------------------
    //* IF THE OUTPUT FILE EXISTS, DELETE IT. WE WILL CATALOG
    //* A NEW ONE LATER
    //*--------------------------------------------------------
    //DELETE EXEC PGM=IEFBR14
    //DD1 DD DSN=&RPTBASE..RPT70,DISP=(MOD,DELETE,DELETE),
    // UNIT=SYSDA,SPACE=(CYL,(0))
    //*--------------------------------------------------------
    //* GENERATE THE HISTORY FILE FOR JAWS AND PASS IT TO THE
    //* NEXT STEP TO BE CATALOGED
    //*--------------------------------------------------------
    //REPORT EXEC CA7LOG,PG=SASSHIS8,PA='O,MAX'
    //SASSRA01 DD DUMMY
    //SASSRA02 DD DUMMY
    //SASSRA03 DD DUMMY
    //COMMANDS DD DSN=&&COMMANDS,DISP=(,PASS),
    // DCB=(RECFM=FB,LRECL=80,BLKSIZE=0),
    // UNIT=SYSDA,SPACE=(CYL,(1,1))
    //UCC7HIST DD DISP=SHR,DSN=&CA7LOGP
    // DD DISP=SHR,DSN=&CA7LOGS
    //SYSIN DD DISP=SHR,
    // DSN=&TRIGDSN
    //SYSLIST DD DSN=&&RPT70,
    // DISP=(NEW,PASS,DELETE),
    // UNIT=SYSDA,SPACE=(CYL,(50,35)),
    // DCB=(RECFM=FBA,LRECL=133,BLKSIZE=13300)
    //SYSOUT DD DUMMY
    //*--------------------------------------------------------
    //* CATALOG THE TEMPORARY FILE CREATED IN THE PREVIOUS STEP
    //*--------------------------------------------------------
    //COPYRPT EXEC PGM=IEBGENER
    //SYSPRINT DD DUMMY
    //SYSOUT DD DUMMY
    //SYSUT1 DD DISP=OLD,DSN=&&RPT70
    //SYSUT2 DD DSN=&RPTBASE..RPT70,
    // DISP=(,CATLG),
    // UNIT=SYSDA,SPACE=(CYL,(50,35))),
    // DCB=(RECFM=FBA,LRECL=133,BLKSIZE=0)
    //SYSIN DD DUMMY
  • Configure a Data Set Trigger to trigger the EVENT JCL job in CA7.

Note: The triggering dataset must be the same as the DSN configured in the Automic Automation Intelligence Add Scheduler dialog as Trigger DSN.