Examples of the //*PROCESS statement

Example 1
//EXAM1  JOB
//*PROCESS  CI
//*PROCESS  MAIN
//*PROCESS  OUTSERV
//S1     EXEC PGM=ANY
          .
          .
         JCL statements
          .

This example shows how to submit a simple job via //*PROCESS statements. It is processed like a standard job. The four standard scheduler functions are used for the job: CI, MAIN, OUTSERV, and PURGE. Note that PURGE is not specified; JES3 automatically creates this DSP.

Example 2
//EXAM2  JOB
//*PROCESS  CI
//*PROCESS  MAIN
//*PROCESS  OUTSERV
//*PROCESS  PLOT
//*ENDPROCESS
//S1     EXEC PGM=ANY
//DD1    DD  ...
          .
          .
         JCL statements
          .

This example shows how to request a user-written DSP: PLOT. PLOT is to be executed after output service has completed. Note that PURGE is again not specified but is automatically created.

Example 3
//EXAM3  JOB
//*PROCESS  OUTSERV
//*FORMAT   PR,DDNAME=S1.DS1,COPIES=5
//*DATASET  DDNAME=S1.DS1
      .
      .
      data
      .
      .
//*ENDDATASET
//S1  EXEC PGM=ANY
//DS1 DD   DSNAME=DATA1
      .
      .

This example uses JES3 output service and the //*DATASET statement. Five copies of data set DS1 are printed on any local printer.