Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Standard view
Full view
of .
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1
37453895 JCL Quick Reference

37453895 JCL Quick Reference

|Views: 50|Likes:
Published by kgrhoads
JCL Quick Reference
JCL Quick Reference

More info:

Published by: kgrhoads on May 09, 2012
Copyright:Traditional Copyright: All rights reserved


Read on Scribd mobile: iPhone, iPad and Android.
See more
See less


JCL Quick Reference
Descriptions and Examples
When technology complements business
Copyright © 1987-2010
SimoTime Enterprises
All Rights Reserved
Table of Contents
Version 10.03.20
Job Control Language (or JCL) specifies how programs are executed on the mainframe. JCLfunctions are the interface between the programs and the operating system. Since JCL has theability to define data set names, parameters and system output devices the individual programscan be flexible in their use because these items are not hard coded in the programs. Without theneed for re-compiling, the same program may be used to access different data sets and behavedifferently based on parameters specified in JCL
JCL Statement Syntax
A JCL source member consists of a file of 80-byte, fixed-length records. The records (
or JCL statements
) are written using positions 1-71. Position 72 is reserved for continuation, a spacecharacter indicates no continuation and a non-space character indicates the next statement will bea continuation of the current statement.. A JCL statement starts with two slashes in positions 1 to2. The JCL specifies a jobname and can contain one or more steps. Each step will execute a program or procedure (PROC). Comments statements may be added to the JCL using //* in positions 1 to 3. Every JCL member must begin with a '"Job Card" that specifies the job nameand other information about how the job will execute. The JCL is completed by using '//' in positions 1 and 2 or when the last statement is processed.
The Job Statement
(or Job Card)
Every JCL member (or JOB) you write will require a JOB statement (or JOB card) to identify the job. This must be the first statement in each job. Since the JOB card is a JCL statement it muststart with a '//' (
two slashes
) in positions 1-2. The following is a sample JOB statement.
The preceding JOB statement is continued across two statements. The length of the text is 72 bytes. Remember, a non-space in position 72 indicates a continuation.
The job name should be in positions 3-n (
 for a maximum of eight characters
) followed by aspace.The job name is specified first, in this example the job name will be SIMOJOB1. The key-wordJOB is specified to indicate this is the JOB statement or Job Card.The (ACCTINFO) is accounting information and is a required. This may be an accounting costcenter. The cost center information varies from site to site and may be used to do charge-backs toindividual departments for usage of the system.The 'comment' is an identifying or explanatory field. It is optional but can very useful. It ha a 20characters maximum length.The job class is specified by using "CLASS=" key word. This information is used to tell thesystem how the job is to be run. Jobs will be scheduled and will run under control of a predefinedclass as determined by the job initiator. The job class may determine the priority of the job and
how long it will be allowed to run. If the job initiator is already running a job then the current jobrequest may be placed in a job queue and have to wait until the initiator is free.The MSGCLASS=x is used to specify where the job output will be directed. The output classesare predefined and vary from site to site. Two are the normal defaults are as follows.
 Normal system printing and all output listings sent to the default system printer.
Hold output in the queue and allow job output to be viewed on-line through the TSO outlistfacility.The MSGLEVEL=(x,y) is used as follows.
0The system prints only the JOB statement.1The system prints all JCL statements, JES2, or JES3 control statements, the procedurestatements, and IEF653I messages which show the values assigned to symbolic parameters in procedure statements.2The system prints only JCL statements and JES2 and JES3 control statements. 
0The system prints only JCL messages. It prints JES and operator messages only if the job abnormally terminates.1The system prints JCL messages and any JES and operator messages.If you want to be notified when the job has finished then use the "NOTIFY=" key word. The NOTIFY parameter must specify a valid userid.
A Comment Statement
A comment statement is defined by a "//*" in positions 1-3. The following is an example of aJCL comment statement.
The text for the comment should not go past position 71. Remember, a non-space in position 72 indicates a continuation.
The EXEC Statement
(or Defining a Job Step)
A job step defines the program to run and is created by using the EXEC statement. There may beone step or many steps within a job. The step name should be in positions 3-n (for a maximum of eight characters) followed by a space. The following is an example of a JCL statement thatdefines a step within a job and executes a program.

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->