JCL and Control Statements

JCL and Control Statements

Although the ACS exec can generate a template job file, the utility control statements (and possibly the SCP JCL) must be modified by the user. To do this the user should have some understanding of the format and function of these statements.

SCP Batch Job Control Language (JCL)

The function of the SCP Job Control Language is to provide enough information to the SCP to execute the requested utility within the SCP batch job environment. It defines the name of the job to be executed, the name of program module to execute, the specific files to be used by the program, and perhaps some miscellaneous parameters.

The suggested file type is SLKJCL, and the file must consist of fixed, 80 column card-image records, composed of the following job control statements:

/JOB jobname pgmname

/PARM parms ...

/COMM comments ...

/FILE fileopts ...

Note: With the exception of the /PARM statement values, all JCL statements are case insensitive.

/JOB Statement

The /JOB statement must be the first statement in a file of Job Control statements known as a job stream or JCL. It defines the name of the job (jobname), and the name of the program module to be executed (pgmname). Typically this is SLUADMIN.

There must be one and only one /JOB statement per job stream.

/JOB jobname pgmname

jobname

the name of the job. It must be from 1 to 8 alphanumeric characters beginning with an alphabetic character.

pgmname

the name of the program to be executed. It must be from 1 to 8 alphanumeric characters beginning with an alpha. Program must be a module in one of the SCP/HSC LOADLIBs.

Chapter 4. Utility Functions 177

1st ed., 6/30/04 - 312579601

Page 207
Image 207
StorageTek 6 manual JCL and Control Statements, SCP Batch Job Control Language JCL, JOB Statement, jobname, pgmname