Home › Mainframe Tutorial › JCL basics: JOB, EXEC and DD
JCL basics: JOB, EXEC and DD
The three main JCL statements.
Every job has a JOB statement that names it, one or more EXEC statements that run a program, and DD statements that connect datasets to the program. Lines start with // and data in the job stream ends with /*.
Example code
//BASICS JOB (ACCT),'BASICS',CLASS=A,MSGCLASS=X
//STEP1 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT2 DD SYSOUT=*
//SYSUT1 DD *
JCL BASICS
JOB EXEC DD
/*