Space announcement This documentation space provides the same content as before, but the organization of the content has changed. The content is now organized based on logical branches instead of legacy book titles. We hope that the new structure will help you quickly find the content that you need.

INCLUDE



COBOL

PL/I

Assembler

C Language

Description

The INCLUDE command executes a predefined test script member. The command stream in the test script is executed as the commands are read in, just as if they had been entered serially. INCLUDE test scripts can be nested without limit.

A record of the command is written to the session log.

Input

image2021-2-16_9-17-25.png

The following is the parameter description for the INCLUDE command:

test-script-name

A member of the test script library (LRECL=80) specified in the XINCLUDE DD Setup screen, or the site-wide PDS, if defined.

Usage Notes

ALL Languages

  1. Within the script:
    • A Code Debug TSO command cannot exceed 61 characters.
    • Only one Code Debug TSO command can occur on a single line.
    • Any Code Debug TSO command can be continued beyond a single line without the requirement of a continuation character.
    • A quoted string must be contained on one line.
    • Comment lines can be included by entering an asterisk (*) in column 1.
  2. When used within inserted code, the INCLUDE command will be executed when the inserted code is executed.

Example

ALL Languages

  1. The following is an example of commands entered in a test script member named TEST1:

    KEEP INREC
    GPREGS
    MOVE '345' TO INREC

    To execute TEST1 during your debugging session, enter:
       INCLUDE TEST1

Valid Commands in a Test Script

The following tables list the commands that can or cannot be included in a test script for each language. Command usage follows the rules described in each command section.

COBOL

The following commands can be included in a test script.

AA SNAP   DELETE   GPREGS    LOAD          RESET   WHEN
ACCEPT    EXCLUDE  INCLUDE   MONITOR       SET     WS
AFTER     EXIT     IF        MOVE          SHOW
AT        GEN      INSERT    ONETIME       SKIP
BEFORE    GO       INTERCEPT PAUSE         SOURCE
BROWSE    GOBACK   KEEP      PEEK          TRACE
COUNT     GOTO     LINE      PSEUDOSOURCE  USE


Important

AA SNAP, AT, BROWSE, DLI, EXCLUDE, and MONITOR cannot be used in unattended batch.

The following commands cannot be included within a test script.

ALLOC    DOWN   LEFT    RETEST   TOP
BOTTOM   DRIGHT LOCATE  REVERSE  TSO
CCHILITE END    LOG     RIGHT    UP
CONNECT  FADB2  MEMORY  RUN      WHEREIS
DLEFT    FIND   NOLINES STATUS   XCHANGE
DLI      HELP   RESUME  TEST     XPED


Important

TEST and XPED can be used in unattended batch.

Assembler

The following commands can be included in a test script:

AA SNAP      DROP         GPREGS       LOAD           RETURN       VERIFY
AFTER        EXCLUDE      IF           MOVE           SET          WHEN
AT           EXIT         INCLUDE      ONETIME        SHOW
BEFORE       GEN          INSERT       PAUSE          SKIP
BROWSE       GETMAIN      INTERCEPT    PEEK           SOURCE
COUNT        GO           KEEP         PSEUDOSOURCE   TRACE
DELETE       GOTO         LINE         RESET          USING

Important

AA SNAP, AT, BROWSE, and EXCLUDE cannot be used in unattended batch. DROP and DELETE cannot be used in an initial test script.

The following commands cannot be included within a test script:

ALLOC        DOWN         LEFT         RIGHT        UP
BOTTOM       DRIGHT       LOCATE       RUN          WHEREIS
CCHILITE     END          LOG          STATUS       XCHANGE
CONNECT      FADB2        MEMORY       TEST         XPED
DLEFT        FIND         NOLINES      TOP
DLI          HELP         RETEST       TSO

Important

TEST and XPED can be used in unattended batch.

PL/I

C Language

The following commands can be included in a test script:

AA SNAP      DELETE       INCLUDE        ONETIME        SET
AFTER        EXCLUDE      INTERCEPT      PAUSE          SHOW
AT           EXIT         KEEP           PEEK           SKIP
BEFORE       GO           LINE           PSEUDOSOURCE   SOURCE
BROWSE       GOTO         LOAD           RESET          TRACE
COUNT        GPREGS       MOVE           RETURN         WHEN

Important

AA SNAP, AT, BROWSE, and EXCLUDE cannot be used in unattended batch.

The following commands cannot be included within a test script:

ALLOC       DOWN         LEFT         RIGHT        UP
BOTTOM      DRIGHT       LOCATE       RUN          WHEREIS
CCHILITE    END          LOG          STATUS       XCHANGE
CONNECT     FADB2        MEMORY       TEST         XPED
DLEFT       FIND         NOLINES      TOP
DLI         HELP         RETEST       TSO

Important

TEST and XPED can be used in unattended batch.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*