z/OS MVS JCL Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Examples of JES3 control statements

z/OS MVS JCL Reference
SA23-1385-00

The first example shows JES3 control statements in relation to each other and to JCL statements for a job entered from a remote work station. No actual job should require all of these statements.

The second example shows an ordinary job entered through the local input stream.

The following sections show the recommended syntax for each control statement, with examples. Note, however, that for some JES3 control statements (such as the //* MAIN statement) a single slash followed by an asterisk (/*), rather than two slashes and an asterisk (//*), will be processed as syntactically acceptable. Your installation may disallow this option by using the ALTJCL keyword parameter of the STANDARDS initialization statement. For further information see

Example 1:
//**MESSAGE,CN1,ENTER A START COMMAND FOR THIS JOB
//**PAUSE
//TEST1    JOB   ,,MSGCLASS=A
//*NETACCT PNAME=MAEBIRD,ACCT=2K14920
//*NET NETID=N1,NHOLD=0
//*PROCESS CI
//*PROCESS MAIN
//*PROCESS OUTSERV
//*DATASET DDNAME=STEP1.DD1
         .
         .
         data
         .
//*ENDDATASET
//*ENDPROCESS
//*OPERATOR THIS IS TEST JOB TEST1.
//*MAIN CLASS=C
//*FORMAT PR,DDNAME=STEP1.DD2,DEST=ANYLOCAL,COPIES=2
//*ROUTE XEQ NODE1
//FARJOB1  JOB   ,,MSGCLASS=A
//STEP1    EXEC  PGM=CHECKER
//DD1      DD    DSNAME=INPUT
//DD2      DD    SYSOUT=A
/*
Example 2:
//RUN2     JOB   ,,MSGCLASS=A
//*MAIN CLASS=B
//*FORMAT PR,DDNAME=STEPA.DD2,DEST=ANYLOCAL,COPIES=5
//STEPA    EXEC  PGM=WRITER
//DD1      DD    DSNAME=IN1,DISP=OLD,UNIT=3390,VOLUME=SER=MH2244
//DD2      DD    SYSOUT=A
/*

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014