You are on page 1of 4

8/1/13

JCL Theory E Book on JCL |

Home Mainframe COBOL Collating sequence the sequencing for EBCDIC and ASCII environments. IBM DB2 IBM DB2 Sql Codes JCL JCL Cheatsheet for Developers JCL > Abend Code list JCL Theory E Book on JCL TSO-ISPF Sauravs Album Meet Saurav SIT College White Field: SIT Boys Hostel Web Development PHP : Setting the stage

JCL Theory E Book on JCL


Share JCL Statements Following is the complete list of JCL statemets youll use as mainframe application developer: The JOB statement marks the beginning of a job. The EXEC (Execute) statements follow the JOB statement and name the programs or procedures to execute. (A procedure is a collection of JCL statements stored in a file.) The DD (Data Definition) statements describe each data set (a file on a direct-access storage device, tape, or printed output) and request the allocation of I/O devices. The Delimiter (/*) statement is the end-of-file statement for marking the end of data that is included with JCL statements. The Comment (//*) statement contains comments in columns 4 to 80 to document the JCL. The PROC statement begins a procedure, cataloged or instream, and assigns default values to symbolic parameters. The PEND statement marks the end of an in-stream procedure. The OUTPUT statement specifies processing of print data sets. The IF/THEN/ELSE/ENDIF statement construct selectively executes job steps within a job. The INCLUDE statement copies JCL from a file into the job stream. The JCLLIB statement names private libraries that contain cataloged procedures and JCL statements copied into the input stream by INCLUDE statements. The SET statement assigns values to symbolic parameters in a procedure. The COMMAND statement executes operator commands. The CNTL statement marks the beginning of program control statements in the input stream. An ENDCNTL statement marks the end of the program control statements. The Null (//) statement marks the end of a job.
www.sauravkumar.com/mainframe/jcl/jcl-theory-e-book-on-jcl/ 1/4

8/1/13

JCL Theory E Book on JCL |

The XMIT statement transmits data and jobs to another computer. JOB STATEMENT: Each job must begin with a single JOB statement. (It, along with all other JCL statements, is described in subsequent chapters.) //RT452216 JOB (45992),SAURAV,CLASS=A This statement tells the operating system that a job named RT452216 is charged to account 45992 and belongs to a programmer named Saurav. EXEC STATEMENT: Each job step begins with a single EXEC statement that names a program or cataloged procedure. //STEP1 EXEC PGM=COBCOMP //STEP2 EXEC COB2UCLG STEP1 executes a program named COBCOMP. STEP2 requests a cataloged procedure named COB2UCLG. The system executes steps within a job sequentially, so that the output from one step can be input to a following step. For example, Figure 3.1 illustrates a job with three steps. STEP1 performs some calculations, STEP2 sorts some data, and STEP3 produces some statistics. DD STATEMENT: //TEST#2 JOB (2237,4),PHASE1,CLASS=A <== JOB statement. //STEP1 EXEC PGM=CALC <==Executes the CALC program. //INPUT DD * <== Defines the input data. [Data placed here] //OUT DD many parameters <== Specifies where to write the Output data. //STEP2 EXEC PGM=SORT <== Executes the SORT program. //INPUT DD *.STEP1.OUT,many parameters <== Describes input to the sort by pointing to the OUT data written in the previous job step. //OUT DD many parameters <== Specifies where to write the new OUT data. //LAST EXEC PGM=STATS <== Executes the STATS program. //INPUT DD *.STEP2.OUT,many parameters <== Describes the input to the STATS program by pointing to the OUT data from the previous job step. //OUT DD SYSOUT=A <== Tells the system to print the output data. The DD * statement lets you enter lines of data along with your JCL. (Your JCL and lines of data are termed the input stream.) The statement for this is shown here. The * means that the data immediately follows this JCL statement. //ddname DD *

Leave a Reply
Name (required) Mail (will not be published) (required)

www.sauravkumar.com/mainframe/jcl/jcl-theory-e-book-on-jcl/

2/4

8/1/13

JCL Theory E Book on JCL |

Website

Submit Comment

Mainframe - JCL Mainframe - REXX Open space Web Development

Search

Search

Categories
Mainframe JCL (1) Mainframe REXX (1) Open space (11) Web Development (7)

Archives
May 2013 October 2012 November 2011 September 2011 July 2011 June 2011 May 2011 March 2011 January 2011 December 2010

Bookmarks
www.sauravkumar.com/mainframe/jcl/jcl-theory-e-book-on-jcl/ 3/4

8/1/13

JCL Theory E Book on JCL |

Quark Web Services Link1 | Link2 | Link3 Copyright 2013. All Rights Reserved. Powered by Saurav Kumar and SK created with HTML.

www.sauravkumar.com/mainframe/jcl/jcl-theory-e-book-on-jcl/

4/4

You might also like