Go to:  Davar site entry | Site contents | Site index | Mainframe | JCL | Text bottom

JOB  Models

         

It's convenient to have job models to be able to create jobs on the fly without recollecting each time which libraries should support which jobs.  Two job models presented below cover two basic cases:  PGMR (programmer tool) and USER (client development) setups.  Job models for other tasks can be easily prototyped after those two models.

&SYSUID..PGMR.JOB(JOB) job model is used to create job that will get its cataloged procedures from &SYSUID..PGMR.PROC library and load its programs from &SYSUID..PGMR.LOAD library.



      //DEVVLADP JOB CLASS=D,MSGCLASS=H,NOTIFY=&SYSUID TYPRUN=SCAN
      //JOBLIB    DD DSN=&SYSUID..PGMR.LOAD,DISP=SHR
      //PROC  JCLLIB ORDER=&SYSUID..PGMR.PROC
      //*
      //        EXEC
      //
  
        

&SYSUID..USER.JOB(JOB) job model is used to create job that will get its cataloged procedures from &SYSUID..USER.PROC and &SYSUID..PGMR.PROC libraries (in this order).  Programs will be loaded from &SYSUID..USER.LOAD and &SYSUID..PGMR.LOAD (in this order).



      //DEVVLADU JOB CLASS=D,MSGCLASS=H,NOTIFY=&SYSUID TYPRUN=SCAN
      //JOBLIB    DD DSN=&SYSUID..USER.LOAD,DISP=SHR
      //          DD DSN=&SYSUID..PGMR.LOAD,DISP=SHR
      //PROC  JCLLIB ORDER=(&SYSUID..USER.PROC,&SYSUID..PGMR.PROC)
      //*
      //        EXEC
      //
  
        

Notes:
 •

Job name here is composed of my most typical TSO user ID DEVVLAD (you can't use &SYSUID in JCL name field) and a one letters postfix (that's all they'll normally leave for you to distinguish between your jobs) which is here P for PGMR setup job and U for USER setup job.

 • Development (test) job CLASS is assumed to be D.
 •

Held MeSsaGe CLASS is assumed to be H (normally SYSOUT=* will be specified in DDs where necessary to copy output class from the message class).

 • TSO user submitting the job (&SYSUID) will be NOTIFied about job completion.
 •

High-level qualifiers of PROC and LOAD libraries are the TSO ID of the user submitting the job (&SYSUID).

 •

In order to SCAN job for the JCL errors change temporarily space into comma in the JOB line as shown:  ...NOTIFY=&SYSUID , TYPRUN=SCAN

         

View [and save] JOB-PGMR.JCL | JOB-USER.JCL text
(Use [Back] button or [Alt]+[CL] to return here from the viewed text)
Go to:  Davar site entry | Site contents | Site index | Mainframe | JCL | Text top