Chapter 3. JES2 JCL Control Statements

Table of Contents

3.1. Overview
3.2. JES2 Command Statements
3.2.1. S
3.2.2. /DBR, /STA( /START)
3.3. JOBPARM Statement
3.3.1. BURST/B
3.3.2. BYTES/M
3.3.3. CARDS/C
3.3.4. COPIES/N
3.3.5. FORMS/F
3.3.6. LINECT/K
3.3.7. LINES/L
3.3.8. PAGES/G
3.3.9. PROCLIB/P
3.3.10. RESTART/E
3.3.11. ROOM/R
3.3.12. SYSAFF/S
3.3.13. TIME/T
3.4. MESSAGE Statement
3.5. NETACCT Statement
3.6. NOTIFY Statement
3.7. OUTPUT Statement
3.8. PRIORITY Statement
3.9. ROUTE Statement
3.10. SETUP Statement
3.11. SIGNOFF Statement
3.12. SIGNON Statement
3.13. XEQ Statement
3.14. XMIT Statement

This chapter describes JES2 JCL control statements and thier operands.

The following is a list of JES2 JCL control statements.

JES2 JCL Control StatementDescription

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.

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.

Note

  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
    FieldDescription

    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.

    CommandDescription

    S

    Submits the entered procedure.

    /DBR, /STA( /START)

    Executes the command through the OSI system.

Note

Commands not described in this table are not supported.

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]
    FieldDescription

    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

    OperandDescription

    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.

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.

Note

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

The following describes the PROCLIB operand.

  • Syntax

    PROCLIB | P = {ddname}
    FieldDescription

    {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=*

Syntax checked, but not used in OpenFrame.

  • Syntax

    /*MESSAGE△¹operand

Syntax checked, but not used in OpenFrame.

  • Syntax

    /*NETACCT△¹operand

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

  • Syntax

    /*NOTIFY△¹{userid}
    FieldDescription

    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

Syntax checked, but not used in OpenFrame.

  • Syntax

    /*OUTPUT△¹operand

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

  • Syntax

    /*PRIORITY△¹priority
    FieldDescription

    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.

Note

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

  • Syntax

    priority
    FieldDescription

    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

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
    FieldDescription

    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

Syntax checked, but not used in OpenFrame.

  • Syntax

    /*SETUP△¹operand

Syntax checked, but not used in OpenFrame.

  • Syntax

    /*SIGNOFF

Syntax checked, but not used in OpenFrame.

  • Syntax

    /*SIGNON△¹operand

Syntax checked, but not used in OpenFrame.

  • Syntax

    /*XEQ△¹operand

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]
    FieldDescription

    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