Primary Commands


AA SNAP

Displays the Abend-AID Snapshot report.

image2021-2-9_17-53-31.png

ACCEPT

For COBOL, assigns a value to a data item.

image2021-2-9_17-53-50.png

AFTER

Sets a breakpoint after the execution of an instruction.

image2021-2-9_17-54-12.png

Valid locations could be: statement-number, paragraph-name, program-name, label-name, procedure-name, module-name, address, address-expression, CSECT name, +/- offset, ALL STATE, ALL PARA, ALL PROG, ALL PROC, ALL LABELS, ALL FUNC, ALL SQL [subtype], ALL DLI [subtype], ALL MQ [subtype], ALL variable, a list separated by spaces or commas, or a range using the keyword THRU.

ALLOCATE

Dynamically accesses the file allocation utility (FAU) from the debugging session, or allocates an existing file allocation list contained in the named data set.

image2021-2-9_17-54-35.png

AT

Sets a breakpoint in a program without source.

image2021-2-9_17-55-53.png

BEFORE

Sets a breakpoint before the execution of an instruction.

image2021-2-9_17-56-13.png

Valid locations could be: statement-number, paragraph-name, program-name, label-name, procedure-name, module-name, address, address-expression, CSECT name, +/- offset, ALL STATE, ALL PARA, ALL PROG, ALL PROC, ALL LABELS, ALL FUNC, ALL SQL [subtype], ALL DLI [subtype], ALL MQ [subtype], ALL variable, a list separated by spaces or commas, or a range using the keyword THRU.

BOTTOM

Scrolls to the bottom of the currently displayed data.

image2021-2-9_17-57-7.png

BROWSE

Displays files or data sets.

image2021-2-9_18-6-42.png

CCHILITE

CCHILITE provides visual cues with annotation and a high-intensity background to indicate which lines have or have not been executed.

image2021-2-9_18-7-0.png

CONNECT

Connects the terminal to a Code Debug TSO Batch Connect job.

image2021-2-9_18-7-34.png

COUNT

Sets execution counters to gather test coverage statistics.

image2021-2-9_18-7-55.png

Valid locations could be: statement-number, paragraph-name, program-name, label-name, procedure-name, module-name, address, address-expression, CSECT name, +/- offset, ALL STATE, ALL PARA, ALL PROG, ALL PROC, ALL LABELS, ALL FUNC, ALL SQL [subtype], ALL DLI [subtype], ALL MQ [subtype], ALL variable, a list separated by spaces or commas, or a range using the keyword THRU.

COVER

Used in the input command stream (XPIN DD) to activate Code Coverage functionality for the current test. Use the OptionsBlock positional parameter to specify the System-Name in positions 1-15 (followed by a blank), the Test-ID in positions 17-31 (followed by a blank), the optional User-ID in positions 33-40 (followed by a blank), and the Function-ID in position 42.

image2021-2-9_18-8-28.png

DELETE

Turns off or negates the effect of other Code Debug commands. Will also remove any unused inserted lines created with the I (Insert) line command.

image2021-2-9_18-8-52.png

See to the specific primary command for a list of valid location choices.

Success

Tip

GEN is valid only for COBOL and Assembler, MONITOR is valid only for COBOL, and VERIFY is valid only for Assembler.

DISC

Disconnects the terminal from a Code Debug TSO Batch Connect job.

image2021-2-9_18-9-15.png

DLEFT

Scrolls the data in a Keep or Peek window to the left by the specified scroll amount.

image2021-2-9_18-9-31.png

DLI

Issues calls to IMS using the standard IBM CBLTDLI (COBOL), ASMTDLI (Assembler), DL/I (PL/I or C), or AIBTDLI interface.

image2021-2-9_18-9-47.png

DOWN

Scrolls toward the bottom of the data.

image2021-2-9_18-10-1.png

DRIGHT

Scrolls the data in a Keep or Peek window to the right by the specified scroll amount.

image2021-2-9_18-10-23.png

DROP

Valid only for Assembler, DROP releases addressability from a DSECT established with the USING command.

image2021-2-9_18-10-41.png

END

Terminates the current function and returns to the previous screen.

image2021-2-9_18-10-54.png

EXCLUDE

Excludes data lines from displaying in the source.

image2021-2-9_18-11-9.png

Success

Tip

Variables address and offset are valid only for Assembler.

EXIT

Terminates the current test session. The LAST parameter causes the step completion code to reflect the last abend condition intercepted during the session. The ABEND parameter causes the step to terminate with the specified abend code.

image2021-2-9_18-11-23.png

FADB2

Accesses File-AID for DB2. Valid only with Code Debug Db2 Extension.

image2021-2-9_18-11-45.png

Success

Tip

EXPLAIN is valid only for COBOL and PL/I.

FIND

Searches for character strings, data names, and COBOL structures. String delimiters can be '', "", == ==, or nothing. Any number of optional parameters can be specified with a required parameter. FIND without a keyword repeats the last find.

Find Syntax (Assembler, PL/I, and C)

image2021-2-9_18-12-22.png

COBOL FIND Syntax (Format 1)

image2021-2-9_18-12-43.png

COBOL FIND Syntax (Format 2)

image2021-2-9_18-13-13.png

COBOL FIND Syntax (Format 3)

image2021-2-9_18-13-40.png

COBOL FIND Syntax (Format 4)

image2021-2-9_18-13-56.png

The following keywords can be used with the COBOL-structure parameter:

ALTer

Modify the value of a data name or index

BRAnch

Transfer logic control

CALL

CALL and CANCEL statements

CICS

EXEC CICS statements

CONDition

Conditional logic

DLI

EXEC DLI statements or calls to CBLTDLI

INPut

Receive data into the program

IO

Input and output to a program

OUTput

Transmit data out of the program

PARAgraph

Paragraph or section labels

SQL

Db2 statements or EXEC SQL calls

GEN

Valid only for COBOL and Assembler, GEN expands macros or compressed EXEC code.

image2021-2-9_18-14-30.png

GETMAIN

Valid only for Assembler, GETMAIN allocates virtual storage. Any number of optional parameters can be specified with a required parameter.

image2021-2-9_18-14-46.png

GO

Begins execution or resumes execution following a pause.

image2021-2-9_18-15-2.png

GOBACK

Valid only for COBOL, GOBACK changes the program logic and returns to the next higher level module.

image2021-2-9_18-15-18.png

GOTO

Repositions the current execution pointer.

image2021-2-9_18-15-30.png

CAUTION:

Be careful using the GOTO command. When you GOTO a source statement, you can also be inadvertently bypassing execution of several underlying machine instructions. This can affect subsequent statements and cause unpredictable results including, but not limited to, abends (especially S0C4 and S0C7), loops, storage overlays, and logic and display errors.

GPREGS

Displays the contents of the general-purpose registers.

image2021-2-9_18-15-43.png

HELP

Displays additional information about an error message or provides tutorial information. HELP * redisplays the most recently browsed help file.

image2021-2-9_18-15-59.png

IF

Establishes a conditional expression within a block of inserted lines.

IF conditional-expression
.
 .
 .
 Code Debug TSO commands
 .
 .
 .
 [ELSE
 .
 .
 .
 Code Debug TSO commands]
END-IF

INCLUDE

Executes a predefined test script during the session.

image2021-2-9_18-16-16.png

INSERT

Temporarily inserts Code Debug TSO commands. The following primary command syntax outlined can be used only in unattended batch or in an INCLUDE test script. INSERT is only valid as a line command in interactive mode. You can remove all unused inserted lines by entering a DELETE or RESET primary command with no keywords.

INSert statement-number (or label-name for Assembler)
 .
 .
 .
 Any number of Code Debug TSO commands
 .
 .
 .
END-INS

INTERCEPT

In an interactive test, the INTERCEPT command loads a module, sets before and after breakpoints, and displays the source. In an interactive test in BTS or Dialog box Manager, Code Debug TSO automatically generates the command.

In an unattended batch test, INTERCEPT is used in the command stream to identify programs to be intercepted. In a BTS batch test, the only commands allowed in the command stream are INTERCEPT command parameters and the XPED command.

image2021-2-9_18-16-36.png

Warning

Important

ENTry is not valid for PL/I. Assembler can use only ENTry and LOAdm.

KEEP

Continuously displays the values of program variables in a Keep window. KeepE keeps the contents of the elementary items of a group level variable. KeepH keeps the contents in hexadecimal format. Displayed values are updated as each breakpoint is encountered.

image2021-2-9_18-16-51.png

Warning

Important

KeepE is not valid for Assembler. LINKAGE, LOCAL-STORAGE, and WORKING-STORAGE are valid only for COBOL. Pointer qualification (->) is valid for PL/I.

LEFT

Scrolls the source listing to the left by the specified scroll amount.

image2021-2-9_18-17-6.png

LINE

Determines whether the line command area will display statements, offsets, or addresses.

image2021-2-9_18-17-24.png

LOAD

Dynamically loads a module.

image2021-2-9_18-17-47.png

LOCATE

Scrolls to a particular line number in the current program. LOCATE * scrolls to the current execution point.

image2021-2-9_18-18-5.png

LOG

Browses the session log.

image2021-2-9_18-18-19.png

MEMORY

Displays memory from a specified location.

image2021-2-9_18-18-31.png

Pointer qualification (->) is valid for PL/I.

MONITOR

Valid COBOL, MONITOR records the program’s execution in a buffer. REVERSE can be used to execute in review mode at a later time.

image2021-2-9_18-19-2.png

MOVE

Changes the contents of program variables. In an interactive test, typing over the displayed value is an implicit MOVE command.

COBOL, PL/I, and C Syntax

image2021-2-9_18-18-52.png

Assembler Syntax

image2021-2-9_18-19-26.png

NOLINES

Suppresses the message XXX LINES NOT DISPLAYED that appears after an EXCLUDE command or keyword is issued.

image2021-2-9_18-19-42.png

ONETIME

Sets a temporary before breakpoint to pause once before execution of an instruction.

image2021-2-9_18-19-53.png

PAUSE

Sets a pause breakpoint within a block of inserted lines (interactive mode) or commands (batch mode).

image2021-2-9_18-20-15.png

PEEK

Displays the values of program variables. PeekE displays the contents of the elementary items of a group level variable. PeekH displays the contents in hexadecimal format.

image2021-2-9_18-20-26.png

Warning

Important

PeekE is not valid for Assembler. LINKAGE, LOCAL-STORAGE, and WORKING-STORAGE are valid only for COBOL. Pointer qualification (->) is valid for PL/I.

PSEUDOSOURCE

Creates a temporary pseudo-assembler view for a module or CSECT that has no matching BMC source listing.

image2021-2-9_18-20-40.png

RESET

Restores excluded lines on the source screen, removes any pending line commands, and removes any unused inserted lines created with the I (Insert) line command.

image2021-2-9_18-20-52.png

RESUME

Valid only for COBOL, RESUME exits review mode and returns to the current execution position.

image2021-2-9_18-21-5.png

RETEST

Begins a new test of the same program, even if the current test has not completed. Valid only in the TSO standard environment.

image2021-2-9_18-21-19.png

RETURN

Valid only for PL/I and Assembler, RETURN changes the program logic and goes to the return linkage of a program.

image2021-2-9_18-21-31.png

REVERSE

Valid only for COBOL, REVERSE reviews the execution path that led to the current breakpoint. Requires previous entry of the MONITOR command.

image2021-2-9_18-21-42.png

RIGHT

Scrolls the source listing to the right by the specified scroll amount.

image2021-2-9_18-21-54.png

RUN

Submits an execution JCL file and connects to the specified job.

image2021-2-9_18-22-6.png

RUNTO

Sets a onetime breakpoint and starts execution.

image2021-2-9_18-22-18.png

SCRNSAVE

Copies the current Code Debug TSO screen to the Code Debug session log.

image2021-2-9_18-22-30.png

SET

Overrides Code Debug TSO defaults. Some values are set only for the duration of the test session, while others are maintained across sessions. For more information, see the and Command-and-syntax-reference.

image2021-2-9_18-22-40.png

Parameter Group 1

image2021-2-9_18-23-15.png

Parameter Group 2

setparmb.png

Parameter Group 3

setparmc.png

The following restrictions apply to certain SET command parameters:

Parameter

Restriction

ABENDSCR

Valid only in an unattended batch test

AUTOCAN

COBOL only

CARRAY

C language only

CBLTRAP

COBOL only

CMDDLM

Valid only in a Batch Connect test

DATA xx yy

Assembler only

DATAFIND

COBOL only

DELAY

Not valid in an unattended batch test

DYNTRAP

COBOL only

GEN

Assembler and COBOL only

INSTR xx yy

Assembler only

LOG VERIFY

Assembler only

NOCANCEL

COBOL only

NOINIT

COBOL only

REVSIZE

COBOL only

RTEREUS

COBOL only

SHOW

Displays breakpoints, diagnostic information, or the SET command options.

show.png

Warning

Important

AFTER, AT, BEFORE, BREAK, LISTING, ONETIME, PFKEY, and SKIP parameters are not valid in unattended batch. COMPOPT, DCB, FILE, and INDEX are valid only for COBOL. USING and VERIFY are valid only for Assembler.

SKIP

Temporarily bypasses the execution of a statement.

image2021-2-9_18-24-51.png

Valid locations could be: statement-number, paragraph-name, program-name, procedure-name, label-name, address, +/- offset, address-expression, module-name, ALL STATE, ALL PARA, ALL PROC, ALL LABELS, ALL PROG, ALL FUNC, ALL SQL [subtype], ALL DLI [subtype], ALL MQ [subtype], ALL variable, a list separated by spaces or commas, or a range using the keyword THRU.

Error
Warning

Be careful using the SKIP command. When you SKIP a single source statement, you can also be inadvertently bypassing execution of several underlying machine instructions. This can affect subsequent statements and cause unpredictable results including, but not limited to, abends (especially S0C4 and S0C7), loops, storage overlays, and logic and display errors.

SOURCE

Changes the module shown on the source display when testing interactively. In unattended batch (or in an INCLUDE file), use the SOURCE command to qualify a module to be associated with subsequent Code Debug commands.

image2021-2-9_18-25-2.png

The parameter descriptions for the SOURCE command are:

module-name

The name of the module, external procedure, entry point, or CSECT to be displayed on the Source screen. You can also see to a program or module by the name of the load module.

load-module

The name of the composite load module. If the module name and the load module name are the same, a value is not required for this field.

STATUS

Displays the Status screen which contains a list of the jobs in the system.

image2021-2-9_18-25-12.png

TEST

Specifies the name of the program to be tested and the parameters necessary to establish the test. This command is used in the input command stream (XPIN DD).

image2021-2-9_18-25-23.png

Warning

Important

ENTRY, PARM NOQ, and PARM SUB are not valid for PL/I.

TOGGLE

Allows you to switch back and forth between the Listing screen and the Storage screen for all languages.

image2021-2-9_18-25-38.png

TOP

Scrolls to the top of the data.

image2021-2-9_18-25-48.png

TRACE

Monitors the program’s logic flow. If MAX n is not used, the default is 25 in interactive mode and 2500 in unattended batch mode.

image2021-2-9_18-25-58.png

Valid locations could be: statement-number, paragraph-name, program-name, procedure-name, label-name, address, +/- offset, address-expression, module-name, ALL STATE, ALL PARA, ALL PROC, ALL LABELS, ALL PROG, ALL FUNC, ALL SQL [subtype], ALL DLI [subtype], ALL MQ [subtype], ALL variable, a list separated by spaces or commas, or a range using the keyword THRU.

UP

Scrolls toward the top of the data.

image2021-2-9_18-26-10.png

USE

Valid only for COBOL in IMS subprogram testing. Establishes addressability for database PCBs in the linkage section.

image2021-2-9_18-26-23.png

Valid with Code Debug TSO only when the value of SUB is specified as a test session parameter for the IMS environment.

USING

Valid only for Assembler, USING temporarily establishes addressability to a DSECT. USING is effective only if the program has established a base register for the DSECT and loaded the base register with the appropriate value.

image2021-2-9_18-26-32.png

VERIFY

Valid only for Assembler, VERIFY displays the contents of an instruction or data area.

image2021-2-9_18-26-46.png

WHEN

Indicates when a specified condition is true or when a program variable changes value. In an interactive test, execution is paused. In an unattended batch test, execution does not pause. A message is written to the session log indicating that the specified condition has been met.

image2021-2-9_18-27-0.png

Warning

Important

Pointer qualification (->) is valid for PL/I.

WHEREIS

Displays the location of a specific address or CSECT.

image2021-2-9_18-27-13.png

WS

Valid only for COBOL, WS displays working storage.

image2021-2-9_18-27-22.png

XCHANGE

Accesses Xchange to simulate date and time changes for your applications.

image2021-2-9_18-27-36.png

XPED

Specifies the environment in the input command stream (XPIN DD). Valid environments are BATCH (default), BATCH PEM, BTS, BTS PEM, IMS, IMS PEM, TSO, and TSO PEM.

image2021-2-9_18-27-47.png



 

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

BMC AMI DevX Code Debug for TSO and IMS 17.02