Examples of JCL Output

You can adapt the following Process language examples to output JCL into the JES reader. These examples are in the Sample Library, SDGAPROC.

Using the READER Keyword

The following sample Process (DGAPRDR2) uses the READER keyword to output JCL into the JES reader.

CDTORDR2 PROCESS   SNODE=xx.xxx.xxxxx                   -
STEP01   COPY      FROM(PNODE                           -
                   DSN=SAMPLE.JCL.LIB(JCL)              -
                   DISP=SHR                             -
                        )                               -
                   TO(SNODE                             -
                      READER                            -
                      )       
 EXIT

Using the SYSOPTS

The following sample Process (DGAPRDR1) uses SYSOPTS to output JCL into the JES reader.

CDTORDR1  PROCESS   SNODE=xx.xxx.xxxxx                     -
STEP01    COPY      FROM(PNODE                             -
                    DSN=SAMPLE.JCL.LIB(JCL)                -
                    DISP=SHR                               -
                        )                                  -
                    TO(SNODE                               -
                    DSN=NULLFILE                           -
                        DISP=RPL                           -
                    SYSOPTS="OUTPUT=READER"                -
                       )
            EXIT