Chapter 45: Defining JCL Statements

JCL (Job Control Language) statements control the flow of a complete job. They determine which programs run, the sequence in which each program runs, and which files are accessed, copied, or created.

Remote job entry (RJE) facilities use JCL statements to control jobs running on remote computers, such as a 3090 mainframe or an IBM System/38.

In this chapter:

Work with JCL Statements Screen

Create a JCL Statement

Change JCL Statement Pop-up Window

Work with JCL Statements Screen

How to display this screen: Enter 10 next to a service bureau listed on the Work with Authorization Services Screen.

AAR0098 DISPLAY Work with JCL Statements 10/19/95 10:31:52

Mail Order Company

Auth service: NAB

B/A Sq JCL Statement

Enter JCL:

Type options, press Enter.

2=Change 4=Delete

Opt B/A Seq JCL Statement

B 10 /*SIGNON RMT48

B 20 //RCVJPMAN JOB (XMIT),'J.PETERMAN',CLASS=1,

B 30 // MSGCLASS=J,USER=JPETERM,PASSWORD=JPTRMBAT

B 40 //STEP01 EXEC RCVAUTH,USER=JPETERM

B 99 //STEP0010.SYSUT1 DD *

A 10 //

A 99 /*SIGNOFF

F3=Exit F12=Cancel

Field

Description

Auth service (Authorization service)

The code to identify the service bureau.

Alphanumeric, 3 positions; display-only.

Enter JCL

Entry fields where you may Create a JCL Statement.

B/A (Before/After)

This code indicates whether the statement is part of the signon and job flow or part of the signoff from the remote system.

Valid values are:

B = Statement is used to sign on to the remote system or it is part of the job flow

A = Statement is used to sign off from the remote system

Alphanumeric, 1 position; required.

Sq (Sequence number)

The sequence number associated with this statement that controls when the statement is executed.

JCL statements are executed in sequential order, starting with the B (Before) statements, in ascending order, through the A (After) statements, in ascending order.

Example: Using this example, the statements will be executed in the following sequence: B10, B20, B30, B40, B99, A10, A99.

 

B/A Seq JCL Statement

B 10 /*SIGNON RMT48

B 20 //RCVJPMAN JOB (XMIT),'J.PETERMAN',CLASS=1,

B 30 // MSGCLASS=J,USER=JPETERM,PASSWORD=JPTRMBAT

B 40 //STEP01 EXEC RCVAUTH,USER=JPETERM

B 99 //STEP0010.SYSUT1 DD *

A 10 //

A 99 /*SIGNOFF

Numeric, 2 positions; required.

JCL statement

One of the statements used to control the remote job.

Alphanumeric, 60 positions; required.

.

Screen Option

Procedure

Change a JCL statement

Enter 2 next to the Opt field next to a JCL statement to advancer to the Change JCL Statement Pop-up Window.

Delete a JCL statement

Enter 4 next to the Opt field next to a JCL statement to delete the statement immediately.

 

Important! No delete-confirmation prompt appears when you use the delete option.

Create a JCL statement

Enter the statement in the entry fields at the top of the screen to Create a JCL Statement.

Create a JCL Statement

Purpose: Use the entry fields at the top of the Work with JCL Statements Screen to add a statement. .

AAR0098 DISPLAY Work with JCL Statements 10/19/95 13:02:02

Mail Order Company

Auth service: NAB

B/A Sq JCL Statement

Enter JCL:

Type options, press Enter.

2=Change 4=Delete

Opt B/A Seq JCL Statement

B 10 /*SIGNON RMT48

B 20 //RCVJPMAN JOB (XMIT),'J.PETERMAN',CLASS=1,

B 30 // MSGCLASS=J,USER=JPETERM,PASSWORD=JPTRMBAT

B 40 //STEP01 EXEC RCVAUTH,USER=JPETERM

B 99 //STEP0010.SYSUT1 DD *

A 10 //

A 99 /*SIGNOFF

F3=Exit F12=Cancel

Instructions: Follow these steps to add a JCL statement:

1. Enter B (for "before") or A (for "after") in the B/A (Before/After) field to indicate whether the statement is executed during signon or the job itself or is executed during signoff.

2. Enter a number in the Sq (Sequence number) field to identify when the statement executes. Hint: We recommend that you add 10 to each sequence number so you can insert a new statement between existing statements easily without having to renumber other statements.

3. You advance to the JCL statement field. Enter the statement.

Change JCL Statement Pop-up Window

Purpose: Use this option to change the statement (command).

How to display this screen: Enter 2 next to a JCL statement at the Work with JCL Statements Screen screen to display a pop-up window where you can edit the statement.

Change JCL Statement

//RCVJPMAN JOB (XMIT),'J.PETERMAN',CLASS=1,

2 B 20 //RCVJPMAN JOB (XMIT),'J.PETERMAN',CLASS=1,

B 30 // MSGCLASS=J,USER=JPETERM,PASSWORD=JPTRMBAT

B 40 //STEP01 EXEC RCVAUTH,USER=JPETERM

B 99 //STEP0010.SYSUT1 DD *

A 10 //

A 99 /*SIGNOFF

F3=Exit F12=Cancel

SO04_06 CWDirect 18.0 August 2015 OTN