JES2 JCL Control Statements

This chapter describes JES2 JCL control statements and thier operands.

1. Overview

The following is a list of JES2 JCL control statements.

JES2 JCL Control Statement Description

JES2 Command

Describes JES2.

JOBPARM

Describes JOB’s control information.

MESSAGE

Syntax checked, but not used in OpenFrame.

NETACCT

Syntax checked, but not used in OpenFrame.

NOTIFY

Syntax checked, but not used in OpenFrame.

PRIORITY

Specifies priorities for JOB.

ROUTE

Syntax checked, but not used in OpenFrame.

SETUP

Syntax checked, but not used in OpenFrame.

SIGNOFF

Syntax checked, but not used in OpenFrame.

SIGNON

Syntax checked, but not used in OpenFrame.

XEQ

Syntax checked, but not used in OpenFrame.

XMIT

Syntax checked, but not used in OpenFrame.

2. JES2 Command Statements

A JES2 Command Statement describes JES2 commands. Describe the JES2 commands before the first JOB statement is described. JES2 commands described in other places will not be used.

The success of JES2 command execution through a JES2 command statement does not affect the execution or submission of JOB, which is described after JES2 command statement.

A JES2 command can be used alone without a JOB statement. When executing JCL with only a JES2 command, OpenFrame Batch allocates JOBNAME (TJESSUBM) arbitrarily and executes the JES2 command. Then, the JOB is terminated as DONE.

The results of the JES2 command execution are recorded as 'submit_YYYYMMSS.log' within the subdirectory job under the directory specified in the VALUE of the LOG_DIR key in the DIRECTORY section of the ofsys subject under OpenFrame Configuration.

  1. Only the execution results are recorded in submit.log. Refer to each subsystem logs for any additional messages produced during the JES2 command execution. If a JCL syntax error occurs, the logs are printed to both the obmjmsvr server log and tjesmgr log.

  2. For more information about the ofsys subject, refer to OpenFrame Configuration Guide.

The following describes a JES2 command statement.

  • Syntax

    /*\command△°operand
    Field Description

    command

    Describes operations in column 4 following "/*\" or "\*$". For more information about supported commands, refer to Command.

    operand

    Describes operands after operations followed by zero or some empty spaces, or commas. Operand types vary depending on command types.

Command

The following describes the command field. Commands supported by OpenFrame are as follows:

  • VS

    Executes the entered OS command.

    /*\VS[ ],'OS command'

    The following describes OS commands.

    Command Description

    S

    Submits the entered procedure.

    /DBR, /STA( /START)

    Executes the command through the OSI system.

Commands not described in this table are not supported.

2.1. S

Submits the entered procedure.

  • Syntax

    S procedure name,symbolic parameter=value[,symbolic parameter=value]...
    Field Description

    procedure name

    Specifies the name of a procedure to be submitted.

    symbolic parameter

    Refer to Symbolic Parameter of PROC Statement.

2.2. /DBR, /STA( /START)

Executes the command through the OSI system.

  • Syntax

    /DBR operand
    /STA(/START) operand
    Field Description

    operand

    Specifies operands to be used in the command.

For more information about each command, refer to OpenFrame OSI Command Reference Guide.

3. JOBPARM Statement

Describes JOB’s control information. It is written after a JOB statement. If operands are overlapped, the first written one is used.

  • Syntax

    /*JOBPARM△¹keyword operand[,keyword operand]...△¹[comments]
    Field Description

    JOBPARM

    Specifies the operation JOBPARM. Write "JOBPARM" starting from column 3, which is after "/*".

    keyword operand[,keyword operand]

    Specifies keyword operands after the operation followed by one or more empty spaces. The order of operands does not matter. For more information, see Operand and descriptions for each operand.

    [comments]

    Used after operands followed by one or more empty spaces. Comments can be described up to column 71.

Operands

Descriptions for each operand are as follows:

  • Keyword operand

    Operand Description

    BURST/B

    Syntax checked, but not used in OpenFrame.

    BYTES/M

    Syntax checked, but not used in OpenFrame.

    CARDS/C

    Syntax checked, but not used in OpenFrame.

    COPIES/N

    Syntax checked, but not used in OpenFrame.

    FORMS/F

    Syntax checked, but not used in OpenFrame.

    LINECT/K

    Syntax checked, but not used in OpenFrame.

    LINES/L

    Specifies the maximum number of lines for output.

    PAGES/G

    Syntax checked, but not used in OpenFrame.

    PROCLIB/P

    Used to find a procedure to be executed in STEP.

    RESTART/E

    Syntax checked, but not used in OpenFrame.

    ROOM/R

    Syntax checked, but not used in OpenFrame.

    SYSAFF/S

    Syntax checked, but not used in OpenFrame.

    TIME/T

    Syntax checked, but not used in OpenFrame.

3.1. BURST/B

Syntax checked, but not used in OpenFrame.

  • Syntax

    BURST | B = value

3.2. BYTES/M

Syntax checked, but not used in OpenFrame.

  • Syntax

    BYTES | M = value

3.3. CARDS/C

Syntax checked, but not used in OpenFrame.

  • Syntax

    CARDS | C = value

3.4. COPIES/N

Syntax checked, but not used in OpenFrame.

  • Syntax

    COPIES | N = value

3.5. FORMS/F

Syntax checked, but not used in OpenFrame.

  • Syntax

    FORMS | F = value

3.6. LINECT/K

Syntax checked, but not used in OpenFrame.

  • Syntax

    LINECT | K= value

3.7. LINES/L

Specifies the maximum number of lines for output.

  • Syntax

    LINES | L = value

3.8. PAGES/G

Syntax checked, but not used in OpenFrame.

  • Syntax

    PAGES | G = value

3.9. PROCLIB/P

Used to find a procedure to be executed in STEP. If PROCLIB is used, the system searches a procedure to be executed in STEP through the specified PROCLIB.

A library DD name of a catalog procedure is used to get a data set list. The catalog procedure is specified in the VALUE of the {ddname} key in the PROCLIB section from the tjes subject under OpenFrame Configuration. Among the members in the fetched data set list, the procedure to be executed is primarily searched for.

The procedure to be executed in STEP is searched for in the following order. If the target procedure cannot be found until the step 5, FLUSH occurs.

  1. Searching among the input stream procedures.

  2. Searching among the members described in a JCLLIB statement if the JCLLIB statement is used.

  3. Searching among the members of the data sets specified in the VALUE of the {ddname} key in the PROCLIB section from the tjes subject under OpenFrame Configuration, if the PROCLIB={ddname} operand is specified in a JOBPARM statement, which is a JES2 JCL control statement.

  4. Searching among the members of the data sets specified in the VALUE of the PROC00 key in the PROCLIB section from the tjes subject under OpenFrame Configuration.

  5. Searching among SYS1.PROCLIB members.

For more information about the tjes subject, refer to OpenFrame Configuration Guide.

The following describes the PROCLIB operand.

  • Syntax

    PROCLIB | P = {ddname}
    Field Description

    {ddname}

    Specifies the name of a DD statement in which a library list is set. The library list is referenced to find a catalog procedure.

  • Note

    The PROCLIB operand is not used if no library DD name of a catalog procedure is specified in the VALUE of the {ddname} key in the PROCLIB section from the tjes subject under OpenFrame Configuration.

  • Example

    The following example uses the PROCLIB operand in a JOBPARM statement. Since PROCLIB is specified as PROC00, PROC01 in STEP1 can be found among members of the data sets specified to the PROC00 key in PROCLIB the section from the tjes subject under OpenFrame Configuration.

    //JOB1    JOB
    /*JOBPARM PROCLIB=PROC00
    //STEP1   EXEC PROC01
    //SYSOUT  DD   SYSOUT=*

3.10. RESTART/E

Syntax checked, but not used in OpenFrame.

  • Syntax

    RESTART | E = value

3.11. ROOM/R

Syntax checked, but not used in OpenFrame.

  • Syntax

    ROOM | R = value

3.12. SYSAFF/S

Syntax checked, but not used in OpenFrame.

  • Syntax

    SYSAFF | S = value

3.13. TIME/T

Syntax checked, but not used in OpenFrame.

  • Syntax

    TIME | T = value

4. MESSAGE Statement

Syntax checked, but not used in OpenFrame.

  • Syntax

    /*MESSAGE△¹operand

5. NETACCT Statement

Syntax checked, but not used in OpenFrame.

  • Syntax

    /*NETACCT△¹operand

6. NOTIFY Statement

Specifies a user to check a message, which is left after completion of JOB, through a command from tjesmgr.

  • Syntax

    /*NOTIFY△¹{userid}
    Field Description

    NOTIFY

    Specifies the operation NOTIFY. Write "NOTIFY" starting from column 3, which is after "/*."

    userid

    Specifies a symbolic name having up to eight characters.

  • Note

    If NOTIFY is specified both in the JOB and JES JCL statements, the JES JCL one is used and the JOB one is ignored.

  • Example

    The following example specifies to leave a message to USER1.

    /*NOTIFY USER1

7. OUTPUT Statement

Syntax checked, but not used in OpenFrame.

  • Syntax

    /*OUTPUT△¹operand

8. PRIORITY Statement

Specifies priorities for JOB. It is used before a JOB statement.

  • Syntax

    /*PRIORITY△¹priority
    Field Description

    PRIORITY

    Specifies the operation PRIORITY. Write "/*" and then "PRIORITY".

    priority

    Specifies a number between 1 and 15 after the operation followed by one or more empty spaces. For more information, refer to Priority.

Priority

Specifies a priority of JOB. A priority of JOB is used for scheduling along with JOB CLASS, with higher numbers having higher priority. Scheduler decides the order of execution for JOBs that have the same CLASS, depending on the value of the priority operand.

If multiple JOBs have the same priority, the JOB that is submitted first is executed first. The priority of a JOB is elevated over time according to the aging policy. Set priorities on the PRTYHIGH and PRTYLOW keys in the SCHEDULING section from the tjes subject.

For more information about the tjes subject, refer to OpenFrame Configuration Guide.

  • Syntax

    priority
    Field Description

    priority

    Specifies a priority related to JOB scheduling with a number between 1 and 15.

  • Note

    • To use this operand, set the VALUE of the PRTYJECL key, in the SCHEDULING section from the tjes subject under OpenFrame Configuration, to YES.

    • If priorities are specified in the PRIORITY statement as well as the JOB statement using PRITY operand, the PRIORITY statement supersedes the JOB statement.

  • Example

    The following example specifies the priority as 10.

    /*PRIORITY 10
    //JOB1 JOB CLASS=A

    The following example shows that if a priority is specified both in a JOB and PRIORITY statements, the PRIORITY one is used. The following example specifies the priority of the JOB as 5.

    /*PRIORITY 5
    //JOB1 JOB CLASS=A,PRTY=10

9. ROUTE Statement

Specifies an output destination for a SYSOUT data set or identifies a network node where a job is executed. OpenFrame currently supports only the PRINT statement.

  • Syntax

    /*ROUTE△¹PRINT△¹destination
    Field Description

    ROUTE

    Specifies the operation ROUTE. Write "/*" and then "ROUTE".

    PRINT

    Specifies a destination for a SYSOUT data set. Write one or more empty spaces after the PRINT operand and then specify the destination.

    Used only when a destination is not specified in a SYSOUT DD or an OUTPUT statement. If specified in the statement, the priority is as follows:

    1. SYSOUT DD

    2. OUTPUT

    3. ROUTE

10. SETUP Statement

Syntax checked, but not used in OpenFrame.

  • Syntax

    /*SETUP△¹operand

11. SIGNOFF Statement

Syntax checked, but not used in OpenFrame.

  • Syntax

    /*SIGNOFF

12. SIGNON Statement

Syntax checked, but not used in OpenFrame.

  • Syntax

    /*SIGNON△¹operand

13. XEQ Statement

Syntax checked, but not used in OpenFrame.

  • Syntax

    /*XEQ△¹operand

14. XMIT Statement

Transmits data to another node. Syntax checked, but not used in OpenFrame.

To avoid a syntax error, instream data is processed until an XMIT statement is used.

  • Syntax

    /*XMIT operand△¹[DLM=value]
    Field Description

    operand

    Specifies up to 14 symbolic characters.

  • Example

    The following example uses an XMIT statement.

    //JOB1  JOB
    /*XMIT TMAX DLM=AA
        .
        .
        (records to be transmitted)
        .
    AA