Professional Documents
Culture Documents
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
8/1/13
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
Website
Submit Comment
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
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