Monday, February 06, 2006

JCL Command St

JCL Command Statement Purpose Use the JCL command statement to enter an MVS operator command through the input stream on a JES2 system. Syntax // command [parameter] [comments] The command statement consists of the characters // in columns 1 and 2 and three fields: operation (command), parameter, and comments. Do not continue a command statement. Operation Field The operation field contains the MVS operator command and is coded as follows: _ Precede and follow the command with one or more blanks. It can begin in any column. _ Code the command or a valid abbreviation for the command. Syntax // command [parameter] [comments] The command statement consists of the characters // in columns 1 and 2 and three fields: operation (command), parameter, and comments. Do not continue a command statement. Operation Field The operation field contains the MVS operator command and is coded as follows: _ Precede and follow the command with one or more blanks. It can begin in any column. _ Code the command or a valid abbreviation for the command. Parameter Field Code any required parameters. When more than one parameter is coded, separate them with commas. Comments Field The comments field follows the parameter field after at least one intervening blank. The system removes the comments field from the command before processing the command. Location in the JCL A command statement can appear anywhere after a JOB statement and before the end of the job. If a command statement appears between jobs, it is ignored. A command statement should not be placed before the first JOB statement in an input stream. If a command statement contains errors, it is not executed. If the erroneous statement is between two jobs in the input stream, the system does not issue a message to indicate that the command is not executed. Defaults Two ways to control command authority are through JES initialization parameters and RACF. For information about controlling command authority through initialization parameters see, Initialization and Tuning for the appropriate subsystem at your installation. For information about controlling command authority using RACF see, z/OS MVS Planning: Operations. Examples of the Command Statement Example 1 // DISPLAY TS,LIST In response to this command statement, the system displays the number and userid of all active time-sharing users of the system. Example 2 // F NETVIEW,CLOSE IMMED In response to this command statement, the system shuts down NETVIEW. The system considers IMMED to be a comment due to the delimiting blank.