Compuware TSO, IMS Xpediter software User Guide
PDF
Belge
Reklam
Reklam
Xpediter/TSO and Xpediter/IMS
PL/I User Guide
Release 17.02
ii
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Please direct questions about Xpediter/TSO and Xpediter/IMS
or comments on this document to:
Xpediter/TSO and Xpediter/IMS Customer Support
https://go.compuware.com/
This document and the product referenced in it are subject to the following legends:
Copyright 1996-2017 Compuware Corporation. All rights reserved. Unpublished rights reserved under the
Copyright Laws of the United States.
U.S. GOVERNMENT RIGHTS-Use, duplication, or disclosure by the U.S. Government is subject to
restrictions as set forth in Compuware Corporation license agreement and as provided in DFARS
227.7202-1(a) and 227.7202-3(a) (1995), DFARS 252.227-7013(c)(1)(ii) (OCT 1988), FAR 12.212(a) (1995),
FAR 52.227-19, or FAR 52.227-14 (ALT III), as applicable. Compuware Corporation.
This product contains confidential information and trade secrets of Compuware Corporation. Use,
disclosure, or reproduction is prohibited without the prior express written permission of Compuware
Corporation. Access is limited to authorized users. Use of this product is subject to the terms and
conditions of the user’s License Agreement with Compuware Corporation.
Xpediter, Code Coverage, File-AID, Abend-AID, FrontLine, and Compuware Shared Services are
trademarks or registered trademarks of Compuware Corporation.
IBM, AD/Cycle, CICS, DB2, DFSMS, DFSORT, IMS, Language Environment, IBM MQ for z/OS, MVS,
OS/390, VisualAge, and z/OS are trademarks of International Business Machines Corporation.
CA-MIM, CA-ROSCOE, ENDEVOR, LIBRARIAN, PANEXEC, and PANVALET are trademarks or registered
trademarks of CA Technologies, Inc.
Adobe® Reader® is a trademark of Adobe Systems Incorporated in the United States and/or other
countries.
All other company and product names are trademarks or registered trademarks of their respective owners.
Doc. JULY2017
June 27, 2017
iii
Contents
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
Manual Organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
Intended Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii
Accessing Other Products . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii
Notation Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii
Related Publications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii
Documentation Availability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiv
Online Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiv
Customer Support. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiv
Compuware FrontLine Customer Support Website . . . . . . . . . . . . . . . . . . xiv
Contacting Customer Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiv
Phone . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiv
Web . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiv
Mail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv
Corporate Website. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv
Information for Customer Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv
Chapter 1. Xpediter/TSO Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1
Modes of Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-1
Interactive Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1
Batch Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1
Interactive Debugging and Testing Features . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2
Xpediter/TSO Input and Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4
Types of Programs Supported . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4
LOGON Region Size Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5
Restrictions and Warnings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5
Chapter 2. User Interface to Xpediter/TSO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1
Xpediter Screens . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1
PF Keys . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-3
Command Processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4
Lowercase Conversion. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-4
Attention Key Processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4
Chapter 3. Quick Sample Debugging Session . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1
Preparing the Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1
Starting the Debugging Session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1
Stepping Through the Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3
Analyzing Program Logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3
Setting Breakpoints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5
Displaying Data Values. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6
Debugging Subroutines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-7
Chapter 4. Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-1
The Xpediter/TSO Primary Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-1
Preparing Your Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-3
Starting an Interactive Session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-5
Using Profiles. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-5
Invoking the Test Session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-6
Guidelines for Selecting an Environment. . . . . . . . . . . . . . . . . . . . . . . . . . 4-7
Allocating the Required Files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-8
iv
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Allocating From the Test Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-8
Allocating With the ALLOCATE Command . . . . . . . . . . . . . . . . . . . 4-9
Usage Note . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-9
Using Xpediter/TSO Commands in Interactive Mode . . . . . . . . . . . . . . . 4-9
Starting a Batch Connect Session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-10
Batch Connect . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-10
Processing the JCL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-11
Member List Selection Processing . . . . . . . . . . . . . . . . . . . . . . . . . . 4-12
Establishing the Batch Connect Environment . . . . . . . . . . . . . . . . 4-13
Converting and Submitting the JCL . . . . . . . . . . . . . . . . . . . . . . . . 4-14
Line Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-15
Primary Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-16
Connecting to a Job . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-17
Editing the JCL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-18
Disconnecting the Terminal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-19
General Information About Batch Connect . . . . . . . . . . . . . . . . . . 4-19
JCL Conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-20
Using Xpediter/TSO Commands in Batch Connect Mode . . . . . . . 4-21
Intercepting Abends in Batch Connect Mode . . . . . . . . . . . . . . . . . 4-22
Batch Connect Under ROSCOE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-22
Processing the JCL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-23
Member List Selection Processing . . . . . . . . . . . . . . . . . . . . . . . . . . 4-25
Establishing the Batch Connect Environment . . . . . . . . . . . . . . . . 4-25
Converting and Submitting the JCL . . . . . . . . . . . . . . . . . . . . . . . . 4-26
Line Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-27
Primary Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-27
Connecting to a Job . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-28
Editing the JCL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-29
General Information About Batch Connect . . . . . . . . . . . . . . . . . . 4-30
JCL Conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-30
Using Batch Connect Under ROSCOE Commands in Batch
Connect Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-31
Intercepting Abends in Batch Connect Mode . . . . . . . . . . . . . . . . . 4-32
Starting a Multi-Batch Session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-32
Using Multi-Batch Entries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-33
Line Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-34
Primary Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-34
Input Fields. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-34
Output Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-36
Starting a Session with Batch JCL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-37
Setting Up the Batch JCL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-39
Usage Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-40
Creating a Command Stream. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-40
Specifying Multiple Debugging Sessions in One Job Stream. . . . . . 4-41
Creating Batch JCL for Xpediter/TSO Options . . . . . . . . . . . . . . . . . . . . 4-41
Database Support (Including IMS/DB and IMS/DB with DB2
Testing Under TSO) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-41
BTS Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-42
DB2 Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-42
Test Session Management Using Scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-42
Initial Scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-43
Test Scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-43
Post Scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-44
Abend Scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-44
Creating and Editing Scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-44
Saving and Using Generated Scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-45
v
Option 1 - Batch Connect Under Xpediter/TSO . . . . . . . . . . . . . . . . 4-45
Option 2 - Batch Connect Under ROSCOE . . . . . . . . . . . . . . . . . . . . 4-45
Script Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-46
Using Xpediter/TSO Commands in a Script (Interactive). . . . . . . . . 4-46
Using Xpediter/TSO Commands in a Script (Unattended) . . . . . . . . 4-46
Accessing Other Systems from Xpediter/TSO . . . . . . . . . . . . . . . . . . . . . . . . . 4-47
Accessing File-AID for DB2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-47
Exiting File-AID for DB2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-49
Connecting to CICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-49
Chapter 5. Debugging Interactively . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1
Debugging PL/I Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1
The Source Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1
Using Xpediter/TSO Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2
Controlling Program Execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-3
Commands That Control Execution. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-3
Entering Program Control Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-4
Using the BEFORE and AFTER Commands . . . . . . . . . . . . . . . . . . . . . 5-5
Using the INTERCEPT Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-7
Using the GO Command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-7
Setting Conditional Breakpoints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-8
Using the GO n Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-8
Using the COUNT MAX Command . . . . . . . . . . . . . . . . . . . . . . . . . 5-10
Using the WHEN Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-10
Using the Inserted PAUSE Command . . . . . . . . . . . . . . . . . . . . . . . .5-11
Using the TRACE Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-12
Inspecting Program Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-13
Displaying and Modifying Variables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-13
Using the PEEK and KEEP Commands . . . . . . . . . . . . . . . . . . . . . . . 5-15
The Session Log Entries for PEEK, KEEP, and Automatic KEEP. . . . . 5-20
Using the MOVE Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-21
Displaying and Modifying Memory and Registers . . . . . . . . . . . . . . . . . . 5-23
Using the MEMORY Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-23
Using the GPREGS Command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-25
Analyzing Program Logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-25
Searching for Character Strings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-25
Using the EXCLUDE Command with FIND . . . . . . . . . . . . . . . . . . . 5-26
The NOLINES Keyword and Command . . . . . . . . . . . . . . . . . . . . . . 5-26
Tracing the Flow of Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-27
Using the TRACE Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-27
Using the SHOW PREVIOUS Command . . . . . . . . . . . . . . . . . . . . . . 5-28
Monitoring Execution Coverage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-28
Using the COUNT Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-29
Using the SHOW COUNT Command . . . . . . . . . . . . . . . . . . . . . . . .5-29
Modifying Program Logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-29
Bypassing Code with the SKIP Command . . . . . . . . . . . . . . . . . . . . . . . .5-30
Inserting Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-31
INSERT Processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-31
Redirecting Logic with the GOTO Command . . . . . . . . . . . . . . . . . . . . . 5-32
Examining Files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-32
Using Xpediter for DB2 Extension . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-33
Browsing and Editing DB2 Table Data . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-33
Analyzing SQL Statement Execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-34
Inserting Program SQL Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-35
SQL Statements That Can Be Inserted in Your Program . . . . . . . . . . 5-35
Debugging a Sourceless Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-37
Accessing a Sourceless Main Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-38
vi
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Accessing a Sourceless Subprogram . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Using Xpediter/TSO Commands for Sourceless Debugging . . . . . . . . . .
Creating Pseudo-Assembler Source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Pseudo-Source Creation for a Main Program. . . . . . . . . . . . . . . . . . . . . .
Pseudo-Source Creation for a Subprogram . . . . . . . . . . . . . . . . . . . . . . .
Debugging a Pseudo-Source Program . . . . . . . . . . . . . . . . . . . . . . . . . . .
Displaying Environmental Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
IDMS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
DB2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
IMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
VSAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-39
5-40
5-41
5-41
5-43
5-43
5-44
5-44
5-44
5-45
5-45
Chapter 6. Handling Run-Time Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Displaying the Abend-AID Snapshot Report . . . . . . . . . . . . . . . . . . . . . . . . . .
Browsing the Snapshot Report. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Viewing the Session Log . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Displaying HELP Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Analyzing the Problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Applying Fixes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Obtaining a Memory Dump . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-1
6-2
6-2
6-3
6-4
6-4
6-4
6-5
Chapter 7. Debugging PL/I Programs With Xpediter/IMS . . . . . . . . . . . . . . . . . . 7-1
Starting Xpediter/IMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-1
Debugging an MPP Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2
IMS Conversational Transaction Considerations . . . . . . . . . . . . . . . 7-7
Debugging a BMP/IFP Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-7
What to Do When Intercepts Cannot Be Set . . . . . . . . . . . . . . . . . . . . . . . . . 7-10
Functions Supported . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-11
Conversational and Nonconversational Transactions . . . . . . . . . . . . . . 7-11
Response Mode and Nonresponse Mode. . . . . . . . . . . . . . . . . . . . . . . . . 7-12
WFI and Non-WFI Transactions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-12
Types of Programs You Can Debug. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-12
Message Processing Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-12
Batch Message Processing Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-12
Fast Path Programs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-13
Using Xpediter/IMS Effectively . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-13
MPP Test Setup. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-13
Scheduling Difficulties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-13
Stopping the Xpediter/IMS Dependent Region. . . . . . . . . . . . . . . . . . . . 7-14
Fast Path Caution. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-15
Abends and Recovery Processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-15
Xpediter/IMS Detach Region Facility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-16
Chapter 8. Debugging With DB2 Stored Procedures . . . . . . . . . . . . . . . . . . . . . . 8-1
DB2 Stored Procedure Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-1
Overview of DB2 Stored Procedure Support . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-1
Starting an Xpediter/TSO DB2 Stored Procedure Debugging Session
Using Batch Connect . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-2
Debugging a DB2 Stored Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-4
Accessing the Xpediter/TSO Setup Menu Screen. . . . . . . . . . . . . . . . . . . . 8-6
Specifying the JCL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-6
Connecting to a Job . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-10
Editing the JCL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-11
Debugging a Client Application and a DB2 Stored Procedure Together . . . . 8-12
DB2 Stored Procedure Security Considerations . . . . . . . . . . . . . . . . . . . . . . . 8-12
Batch Connect Security Check . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-12
DB2 Subsystems to Debug . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-12
vii
Optional Security Access Facility (SAF) Calls . . . . . . . . . . . . . . . . . . . . . . 8-12
Security Exit. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-12
Foreground Debugging of DB2 Stored Procedures . . . . . . . . . . . . . . . . . . . . . . 8-13
Exiting an In-Progress Stored Procedure Test . . . . . . . . . . . . . . . . . . . . . . 8-14
Chapter 9. Debugging Programs With Special Conditions . . . . . . . . . . . . . . . . . . 9-1
Checkpoint/Step Restart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-1
Scenario One . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-1
Scenario Two . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-1
31-bit Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-1
Code Generator Support. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-1
Optimized Code Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-2
On-Units Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-2
Mixed Language Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-2
Database Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-3
IDMS/DB, ADABAS, SUPRA, DATACOM/DB, System 2000 . . . . . . . . . . . . 9-3
IMS/DB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-3
DBT HSSR. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-3
DB2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-4
Shared DL/I Database (DFHDRP) Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-4
SORT EXIT Support. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-5
PANEXEC Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-6
Usage Note. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-7
Language Environment Support. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-7
Usage Note. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-7
Third-Party Package Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-7
Global Handling Of Special Conditions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-8
Using IBM MQ for z/OS With Xpediter/TSO . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-8
Appendix A. Using the File Allocation Utility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-1
Accessing the File Allocation Utility. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-1
Creating a New File List. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-3
Editing an Existing File List. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-3
Copying Existing File Lists, JCL, or CLISTs . . . . . . . . . . . . . . . . . . . . . . . . A-3
Saving a File List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-4
Using the Edit File List Screens. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-4
Primary Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-6
Line Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-6
Using the COPY Command on Edit File List Screens . . . . . . . . . . . . . . . . A-7
Edit File List 1 Screen - DDNAME, DSNAME, and Disposition. . . . . . . . . A-7
Edit File List 2 Screen - Space and Catalog Information . . . . . . . . . . . . . . A-8
Edit File List 2A Screen - SMS Parameters . . . . . . . . . . . . . . . . . . . . . . . . A-10
Edit File List 3 Screen - DCB Parameters . . . . . . . . . . . . . . . . . . . . . . . . . A-10
Displaying File Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-12
Converting JCL to a File List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-15
Things to Know About JCL Expansion . . . . . . . . . . . . . . . . . . . . . . . . . . A-16
Unsupported Keywords and Subparameters . . . . . . . . . . . . . . . . . . . . . . A-16
Types of Files That Can Be Allocated . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-17
Existing Datasets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-17
New Datasets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-18
Dummy Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-18
Temporary Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-18
In-Stream Data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-18
Allocating Files to the Terminal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-19
SYSOUT Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-19
HFS Files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-19
Generation Datasets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-19
viii
Xpediter/TSO and Xpediter/IMS PL/I User Guide
ISAM Files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-20
Appendix B. Xpediter/TSO Environment Test Screens . . . . . . . . . . . . . . . . . . . . . B-1
Standard Test Screen – Environments Menu - Option 1 . . . . . . . . . . . . . . . . . B-4
Dialog Test Screen – Environments Menu - Option 2 . . . . . . . . . . . . . . . . . . . B-6
Effect of Dialog Program Intercepts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-9
IMS Test Screen – Environments Menu - Option 3 . . . . . . . . . . . . . . . . . . . . B-11
BTS Test Screen – Environments Menu - Option 4. . . . . . . . . . . . . . . . . . . . . B-14
Hogan BATCHPEM Test Screen – Environments Menu - Option 5 . . . . . . . . B-18
Hogan DLIPEM Test Screen – Environments Menu - Option 6 . . . . . . . . . . . B-20
Hogan IMSPEM Test Screen – Environments Menu - Option 7 . . . . . . . . . . . B-23
MPP Test Screen – Environments Menu - Option 8 . . . . . . . . . . . . . . . . . . . . B-26
BMP/IFP Test Screen – Environments Menu - Option 9 . . . . . . . . . . . . . . . . . B-31
Hogan IMSPEM Test Screen – Environments Menu - Option 10 . . . . . . . . . . B-35
Hogan BMPPEM Test Screen – Environments Menu - Option 11 . . . . . . . . . B-40
DB2 Stored Procedures – Environments Menu - Option 12 . . . . . . . . . . . . . . B-43
Appendix C. Specifying Setup Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-1
Setup Options Available Under Xpediter/TSO Environments . . . . . . . . . . . . . C-3
Setup Options Available Under Xpediter/IMS Environments . . . . . . . . . . . . . C-3
Using the RESTORE Command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-5
Common Setup Screens . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-5
Load Module Libraries Screens . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-6
Usage Note . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-7
DDIO Files Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-7
Test Script Libraries Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-8
Log, Script, and Document Dataset Screens . . . . . . . . . . . . . . . . . . . . . . . C-9
Data Set Disposition Screen After a Test . . . . . . . . . . . . . . . . . . . . . C-12
DB2 System Name and DSNLOAD Libraries Screen . . . . . . . . . . . . . . . . C-14
PANEXEC Libraries Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-15
IMS Setup Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-16
IMS Parameter Lists Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-17
Using APARM Data from JCL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-18
IMS Load (DFSRESLB) Libraries Screen . . . . . . . . . . . . . . . . . . . . . . . . . . C-18
PSB and DBD Libraries Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-19
ACB Libraries Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-19
IMS Preload List Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-20
Logging and Recovery (IEFRDER) Dataset Screen . . . . . . . . . . . . . . . . . . C-21
IMS Monitor (IMSMON) Dataset Screen . . . . . . . . . . . . . . . . . . . . . C-23
VSAM Buffer Pool Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-24
IMS Error (IMSERR) Dataset Screen . . . . . . . . . . . . . . . . . . . . . . . . . C-25
BTS Setup Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-25
BTS Parameter Lists Screen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-26
BTS Load Libraries Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-27
MFS Libraries (Format) Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-27
BTS Output (BTSOUT Dataset) Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . C-28
BTS Punch Output (BTSPUNCH Dataset) Screen. . . . . . . . . . . . . . . C-30
BTS Debug (BTSDEBUG Dataset) Screen . . . . . . . . . . . . . . . . . . . . . C-31
BTS Work File (QIOPCB Dataset) Screen . . . . . . . . . . . . . . . . . . . . . C-33
BTS Work File (QALTPCB Dataset) Screen . . . . . . . . . . . . . . . . . . . . C-33
BTS Work File (QALTRAN Dataset) Screen. . . . . . . . . . . . . . . . . . . . C-34
Hogan Setup Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-35
Hogan Activity Log (Monitor Dataset) Screen. . . . . . . . . . . . . . . . . . . . . C-36
Hogan Report File (Print Dataset) Screen. . . . . . . . . . . . . . . . . . . . . C-38
Hogan SNAP Dump (SNAPDD Dataset) Screen . . . . . . . . . . . . . . . . C-39
Hogan Formatted Dump (SYSPRINT Dataset) Screen . . . . . . . . . . . C-40
ix
Appendix D. Specifying Session Defaults . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
The Defaults Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Specifying PF Key Definitions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Specifying Screen Colors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Specifying Other Default Values. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Specifying User Profiles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Using the MERGE Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Using the LOCATE Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Using the FIND Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Using the RFIND Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Using the PROFILE Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Displaying Test Session Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
D-1
D-1
D-1
D-3
D-5
D-6
D-8
D-8
D-8
D-8
D-8
D-9
Appendix E. Xpediter/TSO Utilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-1
Displaying Available Memory (REGION SIZE) . . . . . . . . . . . . . . . . . . . . . . . . . . E-1
Displaying File Allocations (LIST ALLOCATES) . . . . . . . . . . . . . . . . . . . . . . . . .E-2
DDIO File Facility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-3
Selecting Alternate Profiles (MERGE) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-3
Using the LOCATE Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-4
Using the FIND Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-5
Using the RFIND Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .E-5
Appendix F. Binding the Application Plan or Package . . . . . . . . . . . . . . . . . . . . . F-1
Bind Facility Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-1
Bind Plan Facility Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-2
Bind Plan Setup Menu. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-4
DBRM Libraries Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-5
Bind Plan PKLIST Setup Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-6
Bind Package Facility Screen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-7
Bind Plan Facility Screen for Long Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-9
Bind Plan Setup Menu. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-12
DBRM Libraries Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-12
Bind Plan PKLIST Setup Screen for Long Names . . . . . . . . . . . . . . . . . . . F-13
Bind Package Facility Screen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-14
Job Card for Bind Facility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-17
Appendix G. DBCS Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terminal Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Program Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
DBCS Fields on the Source Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Scrolling DBCS Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Scrolling Mixed Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Example 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Example 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Example 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Example 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Example 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Scrolling DBCS Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Example 6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Example 7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Manipulating DBCS Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Typing Over Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Example 8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Example 9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Inserting Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Example 10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Example 11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
G-1
G-1
G-2
G-2
G-3
G-3
G-3
G-3
G-4
G-4
G-4
G-5
G-5
G-5
G-6
G-6
G-6
G-6
G-7
G-7
G-7
x
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Deleting Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . G-8
Example 12 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . G-8
Example 13 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . G-8
Example 14 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . G-9
Moving Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . G-9
Example 15 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . G-9
Example 16 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . G-9
WHEN Command and DBCS Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . G-10
Example 17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . G-10
Appendix H. Debugging a Client Application and DB2 Stored Procedure . . . . . . H-1
Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . G-1
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . I-1
xi
Introduction
Intro
This document introduces you to Xpediter/TSO and Xpediter/IMS, using a series of
examples that demonstrate simple and advanced debugging techniques that can be
applied to your application development and maintenance needs. It describes how to use
Xpediter/TSO facilities in the PL/I context with minor references to mixed language
debugging support. Additional information is provided in other manuals; refer to
“Related Publications” on page xii.
Manual Organization
This manual contains the following chapters:
Chapter 1, “Xpediter/TSO Overview”: Summarizes the functions and features of
Xpediter/TSO and Xpediter/IMS.
Chapter 2, “User Interface to Xpediter/TSO”: Describes the Source screen format,
default PF keys, command processing, and attention key processing.
Chapter 3, “Quick Sample Debugging Session”: Provides a short tutorial highlighting
the basic debugging features of Xpediter/TSO.
Chapter 4, “Getting Started”: Describes the online Compile Facility, which is used to
prepare your programs for debugging with Xpediter/TSO. Also describes how to start an
Xpediter/TSO debugging session in interactive mode, in batch mode using the Batch
Connect facility or the Multi-Batch Facility, and how to manually change your execution
JCL to start a batch session.
Chapter 5, “Debugging Interactively”: Describes how to use Xpediter/TSO commands
to control execution, inspect data, analyze logic, modify logic, debug sourceless
programs, and other debugging functions.
Chapter 6, “Handling Run-Time Errors”: Describes how to analyze and apply fixes for
abends.
Chapter 7, “Debugging PL/I Programs With Xpediter/IMS”: Describes how to start an
Xpediter/IMS debugging session.
Chapter 8, “Debugging With DB2 Stored Procedures”: Describes how to start a
debugging session with DB2 stored procedures.
Chapter 9, “Debugging Programs With Special Conditions”: Provides general
information about debugging certain types of programs.
Appendix A, “Using the File Allocation Utility”: Describes how to access and use the
File Allocation Utility.
Appendix B, “Xpediter/TSO Environment Test Screens”: Provides full descriptions of
all environment test screens.
Appendix C, “Specifying Setup Options”: Describes how to specify and override the
installed setup options such as the load library, DDIO file, DB2 system name, and so on.
Appendix D, “Specifying Session Defaults”: Describes how to specify terminal
characteristics, PF key definitions, screen colors, user profiles, and so on.
xii
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Appendix E, “Xpediter/TSO Utilities”: Describes the Xpediter/TSO utilities that let you
create and maintain source listings, display available memory, display file allocations,
and convert and merge user profiles.
Appendix F, “Binding the Application Plan or Package”: Describes how to bind DB2
programs.
Appendix G, “DBCS Support”: Describes the complexity of double-byte character set
support.
Appendix H, “Debugging a Client Application and DB2 Stored Procedure”: Describes
how to debug a DB2 stored procedure along with the client application that calls it.
Intended Audience
This manual is intended for use by PL/I programmers. A working knowledge of PL/I and
your local operating system(s) is assumed.
Accessing Other Products
Xpediter/TSO and Xpediter/IMS are fully integrated with Compuware’s File-AID for DB2
and Abend-AID. From the Xpediter/TSO Primary Menu, you can access a CICS region
where you can use other Compuware tools, such as Xpediter/CICS and Abend-AID for
CICS. From the Xpediter/TSO Primary Menu, you can also access (if installed), FileAID/MVS and File-AID for IMS.
Notation Rules
This manual uses the following notation rules:
• Uppercase characters are used in text for commands, keywords, and function keys.
• Screen titles appear in text with initial capitals.
• Screen fields, prompts, and messages are capitalized as displayed.
• Information that the user enters is shown in bold type.
• Occasional dataset and library member names are shown in bold type for emphasis.
• Commands are not considered case sensitive; they can be typed in all lowercase in
the command area.
Related Publications
The following Compuware documents are also available for use with the Xpediter/TSO
and Xpediter/IMS product:
• Xpediter/TSO and Xpediter/IMS Installation and Configuration Guide
This document contains the steps necessary to configure Xpediter/TSO and
Xpediter/IMS (full-screen IMS/DC) for testing COBOL, Assembler, PL/I, and C
language programs. Refer to it when installing Xpediter/TSO and Xpediter/IMS
according to the Compuware Installer Mainframe Products SMP/E Installation Guide.
• Xpediter/TSO and Xpediter/IMS Quick Configuration Guide
This document provides the basic required steps to configure, start, access, and test
Xpediter at your site.
Introduction
xiii
• Xpediter/TSO and Xpediter/IMS Reference Manual
This document lists all the Xpediter commands available for use when debugging C
language programs. It is written for the application programmer engaged in program
development and maintenance.
• Xpediter/TSO and Xpediter/IMS Assembler User Guide
This document contains a series of examples that demonstrate simple and advanced
debugging techniques that can be applied to your application and development
needs. It describes how to use Xpediter/TSO and Xpediter/IMS facilities in the
Assembler context.
• Xpediter/TSO and Xpediter/IMS COBOL User Guide
This document contains a series of examples that demonstrate simple and advanced
debugging techniques that can be applied to your application and development
needs. It describes how to use Xpediter/TSO and Xpediter/IMS facilities in the
COBOL context with minor references to mixed language debugging support.
• Xpediter/TSO and Xpediter/IMS Messages and Codes
This document provides messages and codes for Xpediter/TSO and Xpediter/IMS.
• Xpediter/TSO and Xpediter/IMS PL/I User Guide
This document contains a series of examples that demonstrate simple and advanced
debugging techniques that can be applied to your application and development
needs. It describes how to use Xpediter/TSO and Xpediter/IMS facilities in the PL/I
context.
• Xpediter/TSO and Xpediter/IMS Quick Reference
This document provides quick access to Xpediter/TSO C language commands and
command descriptions.
• File-AID for DB2 Reference Manual
This document provides information about using File-AID for DB2 facilities.
• File-AID/MVS Online Reference Manual
This document describes the online product features, screens, options, fields, and
commands of File-AID/MVS.
• File-AID/MVS Batch Reference Manual
This document provides information necessary to fully use the batch features of FileAID.
• File-AID for IMS/ISPF Reference Manual
This document details the information necessary to fully use the features of File-AID
for IMS/ISPF.
• Xpediter/Xchange Installation and User Guide
This document provides information about configuring Xpediter/Xchange and using
it to test your time-sensitive applications.
• Enterprise Common Components Installation and Customization Guide
An introduction, overview, and installation guide for Compuware Shared Services
components, Compuware’s common files and utilities (DDIO and DDSUTIL), and the
Compuware language processor.
• Compuware Shared Services User/Reference Guide, MVS Version
This document provides information to install, customize, and maintain Compuware
Shared Services (CSS). It is intended for CSS installers and application programmers.
• Xpediter/Code Coverage Installation and Configuration Guide - Mainframe
This document provides information about configuring Xpediter/Code Coverage.
xiv
Xpediter/TSO and Xpediter/IMS PL/I User Guide
• Xpediter/Code Coverage Mainframe User/Reference Guide
This document provides information regarding the use of Xpediter/Code Coverage. It
provides an explanation of the requirement that Xpediter/Code Coverage work in
conjunction with at least one additional mainframe Xpediter test and debugging
tool.
Documentation Availability
Online Documentation
The Xpediter/TSO and Xpediter/IMS product installation package does not include the
product documentation. Access the Xpediter/TSO and Xpediter/IMS documentation from
the Compuware FrontLine customer support website at https://go.compuware.com in
the following electronic formats:
•
•
•
•
Release Notes in HTML format
Product manuals in PDF format
Adobe PDF index file (PDX file)
Product manuals in HTML format.
The product documentation is available for viewing or downloading:
• View PDF files with the free Adobe Reader, available at http://www.adobe.com.
• View HTML files with any standard web browser.
Customer Support
Compuware provides a variety of support resources to make it easy for you to find the
information you need.
Compuware FrontLine Customer Support Website
You can access online information for Compuware products via our FrontLine customer
support website at https://go.compuware.com.
Compuware FrontLine provides access to critical information about your Compuware
products. You can review frequently asked questions, read or download documentation,
access product fixes, or e-mail your questions or comments. The first time you access
Compuware FrontLine, you are required to register and obtain a password. Registration is
free.
Contacting Customer Support
Phone
• USA and Canada: 1-800-538-7822 or 1-313-227-5444.
• All other countries: Contact your local Compuware office. Contact information is
available at https://go.compuware.com.
Web
You can report issues via the Quick Link Create & View Support Cases on the
Compuware FrontLine home page.
Note:
Please report all high-priority issues by telephone.
Introduction
xv
Mail
Compuware Customer Support
Compuware Corporation
One Campus Martius
Detroit, MI 48226-5099
Corporate Website
To access Compuware’s site on the Web, go to http://www.compuware.com.
The Compuware site provides a variety of product and support information.
Information for Customer Support
If problems occur, consult your manual or the Xpediter/TSO and Xpediter/IMS technical
support representative at your site. If problems persist, please obtain the following
information before calling Compuware. This information helps us to efficiently
determine the cause of the problem.
For problems occurring during compile time, request Customer Support for
Compuware Shared Services (CSS) and provide the following information:
•
•
•
•
•
Release level of compiler
List of other vendor products used
Abend module name
Any messages in CWPERRM ddname
Release of CSS.
For problems encountered before bringing up your program:
• Sequence of events leading up to the problem
• Release and level of the Xpediter product
• Any ISPF error messages, operating system messages, and information provided by
the TSO Command Profile WTPMSG
For run-time abends:
• Release and level of the Xpediter product
• Any ISPF error messages, operating system messages, and information provided in
the TSO Profile WTPMSG
• Information provided in the product session log dataset at the time of the abend
Note: When in-depth diagnosis is required, the following information will be requested:
1. Full SYSUDUMP (not Abend-AID dump) or SYSMDUMP
2. Source listing or tape of problem programs, including all copy books and
members used
3. Listing of the Xpediter session log at the time of the abend
4. Listing of the original compile
5. Listing of the BTSOUT dataset, if testing under BTS.
xvi
Xpediter/TSO and Xpediter/IMS PL/I User Guide
1-1
Chapter 1.
Xpediter/TSO Overview
Chap 1
Xpediter/TSO and Xpediter/IMS are debugging and testing tools for COBOL, Assembler,
PL/I, and C programs. Xpediter automates the tasks of identifying problems, applying
solutions, analyzing the impact of changes, and testing the fixes.
Compiling and assembling your programs, test session setup procedures, and Xpediter
commands are compatible across languages, with some differences.
When you have COBOL, Assembler, PL/I, and/or C language versions installed at your
site, Xpediter/TSO allows you to debug mixed applications in the same test session.
Modes of Operation
There are two modes in which you can invoke an Xpediter/TSO debugging session:
• Interactive mode
• Batch mode.
Note:
Xpediter/IMS can only be executed in interactive mode.
Interactive Mode
In this mode, you can interactively allocate the necessary files and databases required for
the program to execute, set up the test session environment options, and optionally
override any Xpediter defaults. As you watch your program execute, you can use
interactive source-level debugging functions such as stepping through the source, setting
breakpoints, displaying and modifying variables, etc.
Interactive mode is preferable when you have a specific problem for which you want to
dynamically try out a solution.
Batch Mode
There are two ways to invoke an Xpediter/TSO debugging session in batch mode:
• Batch menu. Access the Batch menu by selecting option 3 (BATCH) on the Primary
Menu. From the Batch menu, you can utilize the following facilities:
– Batch Connect facility.
Through the Batch Connect facility, your execution JCL is automatically
submitted to MVS and you can connect directly to the job as it executes in its
native environment—the MVS batch initiator.
The Batch Connect facility automates the setup and file allocations, displays the
job steps in the specified JCL, and lets you select the steps to which you want to
interactively connect and those that you want to run in unattended batch. The
Batch Connect JCL scanner automatically expands the JCL and inserts the
necessary statements to run each step according to how you want it to be
processed.
With the Batch Connect facility, you get the benefit of submitting the job in
batch, which uses less processor resources, and you can test programs with
1-2
Xpediter/TSO and Xpediter/IMS PL/I User Guide
multiple steps, programs that require tape files and many I/O operations in
background, and long running programs.
– Multi-Batch Facility.
The Multi-Batch Facility (MBF) also enables you to connect to a submitted batch
job, see the source, and manipulate data as it executes in its native environment.
You create one or more Multi-Batch entries for interactive or unattended
debugging in which you specify the jobname, stepname, program, and
(optionally) an initial script. When you submit your existing test or production
JCL, Xpediter will automatically intercept matching programs and begin a
debugging session.
• Manually changing your execution JCL.
Although the Batch Connect facility is the preferred method for running a job in
batch, you can manually access your execution JCL and make changes to convert the
JCL to run with Xpediter/TSO in unattended or interactive (Batch Connect) modes.
Interactive Debugging and Testing Features
When your program is executed under interactive Xpediter/TSO, the source is displayed
in a fully scrollable window where you can view the inner workings of the program as
each statement is executed. For instance, you can see the execution arrow moving from a
CALL statement to the actual procedure, or you can see a variable changing its value as
the ASSIGN takes place.
Figure 1-1 shows the Source display screen under Xpediter/TSO. All debugging and
testing functions are accessible from this screen without having to exit to a separate
screen.
Xpediter/TSO does not require any source code or load module changes; however, you
need to create a “symbolic” information dataset called the source listing file to debug at
the source level. The source listing is created by compiling your programs with the
Compuware Shared Services PL/I language processor. Xpediter/TSO displays and
processes the source listing records during the test session.
Figure 1-1. PL/I Program in the Source Display Screen
------------------------- XPEDITER/TSO - SOURCE ------------------------------
COMMAND ===>
SCROLL===> CSR
BEFORE BREAKPOINT ENCOUNTERED
** END **
---------------------------------------------- Before TRIMINP1/AMODE 31 <>
=====> B TRIMAINP: PROC OPTIONS(MAIN);
------
000002
DCL INFILE INPUT RECORD FILE;
000003
DCL IN_REC
BASED(IN_REC_PTR)
CHAR(80);
------ /*
*/
------ /*
*/
------ /*
DECLARE EXTERNAL ENTRY PROGRAMS
*/
------ /*
*/
------ /*
*/
------
000004
DCL TRITSTP EXTERNAL ENTRY;
000005
DCL TRIRPTP EXTERNAL ENTRY;
000006
DCL ADDR BUILTIN;
------
000007
DCL 1 N_N_C_TABLE,
Xpediter/TSO Overview
1-3
The capabilities of Xpediter/TSO are extensive enough to assist the experienced
programmers’ needs, and yet, the implementation is simple enough and efficient enough
to curtail the learning curve that novice programmers generally experience. The
following list summarizes Xpediter/TSO’s major features:
• Intercept program abends.
Xpediter/TSO detects application abends and displays a diagnostic message. You can
request an Abend-AID formatted report if you have Abend-AID. You can also view the
session log for more information. If the problem is a recoverable error, you can fix
the error dynamically and resume execution.
• Start or stop execution at any point.
You can set conditional or unconditional breakpoints, so you can stop program
execution at any point and figure out what the program has processed so far, and
what the consequences of any changes could be. You can also step through code, line
by line, to understand how each statement affects the program.
• Display and modify variable, register, and storage contents.
You can view the values of any variable as your program executes, and if you want,
alter the values as if the program had actually moved in the value you requested.
Arrays can be displayed by dimension, and you can browse through each entry by
incrementing and decrementing the subscript. You can also display general-purpose
registers and memory to analyze the problem at the lower level.
• Trace logic flow.
Statements can be highlighted to identify the execution path as Xpediter/TSO traces
through the program. You can control the speed of the execution so that you can
follow the logic interactively at a speed that best suits you.
• Monitor execution coverage.
You can set counters on statements to test execution coverage or to monitor loops
and procedure calls for optimization.
• Alter logic.
You can dynamically change the control flow by modifying the data values or by
forcing a branch to test an alternate path.
• Bypass unwanted code.
You can skip a range of statements or programs.
• Temporarily insert Xpediter/TSO debugging statements.
You can insert Xpediter/TSO commands to control debugging conditions that occur
at a certain location and to force data and logic changes. This feature lets you
prototype some PL/I-like constructs. If you have Xpediter for DB2 Extension and FileAID for DB2, you can also insert SQL statements.
• Display file status and DCBs.
VSAM file status and last I/O operation can be retrieved through Xpediter/TSO. DCB
information can also be checked in the case of I/O error. When a DD statement is not
preallocated, Xpediter/TSO intercepts execution and gives you an opportunity to
allocate the missing files before resuming execution.
• Test and debug programs that do not have the source available.
• Display called module stacking.
The called module configuration such as the load address, entry point, size, attribute,
AMODE, RMODE, and language can be retrieved.
• Maintain multiple profiles.
Xpediter/TSO’s Profile Handling facility provides a flexible and easy-to-use method
for using and maintaining multiple profiles. Multiple profiles are used because some
1-4
Xpediter/TSO and Xpediter/IMS PL/I User Guide
of the data you see during an Xpediter/TSO debugging session depends on the
current profile. This includes installation defaults established by your system
programming staff, and most importantly, environment parameters and setup
options for the debugging session.
Xpediter/TSO Input and Output
The primary input to Xpediter/TSO is the following:
1. DDIO libraries containing the source listing members.
2. Load libraries containing the programs to be tested and debugged.
Note:
The source listing dataset and your load libraries are the output of the
compile and link process discussed in “Preparing Your Programs” on page
4-3.
3. JCL, file list, or CLIST that can be processed to allocate the input files and databases
needed by your program.
4. Optionally, a test script library.
The primary output of the debugging session is the following:
1. Data files generated by the execution of the program.
2. Session log.
Xpediter/TSO automatically records (to the session log file) some of the commands
entered and the responses made to each command during a debugging session. The
session log dataset can have an LRECL of 133 or 80. The session log does not contain
the interactive manipulation commands (e.g., LEFT, RIGHT, UP, DOWN) nor does it
contain the actual program displays.
In unattended batch mode, the session log file shows the output of a batch test and is
available after the completion of the debugging session. In interactive mode, it is
available at all times.
The session log file can be kept as part of the documentation, to be referenced
whenever maintenance is performed on the program. It can be viewed for further
information in determining the cause and possible resolution of an abend. Chapter
6, “Handling Run-Time Errors” contains a discussion of the session log display.
3. Test script containing the commands that were entered during the test session.
After the session is terminated, you can save, copy, or move the generated script to a
member of a script library (INCLUDE dataset), which can then be used as input to
another debugging session.
Types of Programs Supported
Xpediter/TSO supports the following types of programs:
• Standard batch applications
• ISPF dialog applications
• Batch applications that issue database calls (IDMS, IMS/DB, DB2, IDMS/DB, ADABAS,
and SUPRA)
• IMS/DC programs using BTS
• Hogan applications (BATCHPEM, DLIPEM, BMPPEM, and IMSPEM).
Xpediter/TSO Overview
1-5
Xpediter/IMS supports the following types of programs:
• IMS/DC programs executing in the IMS message, BMP, or Fast Path region
• Hogan applications executing in the IMS message region.
LOGON Region Size Requirements
Debugging with Xpediter/TSO may require an increase to the default TSO LOGON region
size. This provides protection against abends caused by insufficient space.
See “Displaying Available Memory (REGION SIZE)” on page E-1 for region
recommendations.
It has been our experience that 2048K to 4096K (2M to 4M) is sufficient size for
debugging most applications.
Restrictions and Warnings
The following list explains some of the technical restrictions and questions related to the
functioning of Xpediter/TSO:
Compiler Options:
Xpediter requires specific compile options which may vary depending on the language
type and actual version being used. A user should always refer to the appropriate
Compuware Shared Services User/Reference Guide for information related to any required
compiler options. Examples are as follows: (1) Options NOTEST and NONUMBER are
required for COBOL; (2) Option NOTEST is required for PL/I; and (3) Options ESD and
LIST are required for Assembler. The Guide is required to assist users in manually
converting Compile and Link JCL to execute the CSS Language Processor. The Guide also
gives users information on how to set up the Language Processor parameters to write a
matching source listing to a DDIO file.
Postprocessed Listing Support:
When the postprocessed listing contains a COPY SUPPRESS statement, the Xpediter/TSO
commands FIND, PEEK, and KEEP will not work correctly.
The postprocessed source listing must have been compiled with the compile options
required by Xpediter/TSO; otherwise, unpredictable results can occur.
Attention (User Interrupt—PA1 Key) Processing:
The use of the PA1 key (user interrupt) from within Xpediter/TSO can sometimes cause a
recursive abend.
Split Screen:
When running Xpediter with the LE/370 run-time libraries with TRAP ON, do not split
the screen and run another application that uses the LE/370 libraries. An abend may
occur.
Multitasking Support:
Compuware does not support multitasking applications within Xpediter/TSO, except in
the dialog environment, where single task testing is supported within a multitasking
environment.
1-6
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Self-Modifying Programs:
Xpediter’s ability to debug an application program is based on its inherent knowledge of
the object module. Self-modifying code that changes opcodes, displacements, or
operands is not supported for testing under Xpediter.
Optimized Code:
Xpediter/TSO displays the source for optimized code as it was originally written, but
executes the code generated by the optimizer. As a result, depending on the optimizing
algorithm applied to the code, the following can occur:
• Highlighting during execution of the trace of the optimized code can be misleading.
• Values displayed by the KEEP and PEEK commands may not be updated according to
the program logic.
• Abends can occur when you use Xpediter/TSO commands such as GOTO and SKIP
that alter the program execution paths. These abends occur when the altered
execution paths are in conflict with path dependencies generated by the optimizer.
OPT is displayed in the upper right corner of the Xpediter Source screen if the program
has been compiled as OPTIMIZED or INLINE.
IMS Testing:
• When an application program is scheduled into an IMS MPP or BTS simulated MPP
region, none of the breakpoints are retained from a previous test, unless RETAIN IMS
BREAKPOINTS was specified for the test. Once the application program is scheduled,
the breakpoints are retained until the application program returns to the IMS
program controller.
• If you are not using the IMS User ID support, transactions specified on the test MPP
screen are queued to run in the Xpediter/TSO region regardless of where the
transactions were initiated. Xpediter/TSO assigns a unique class to each of the
specified transaction codes and forces them to run only in your Xpediter/TSO region.
The transaction codes are not reassigned to their original class until you have
completely finished testing in the MPP region.
• If a DLI program uses the XRST facility, the first DLI call must be the XRST call.
Otherwise, you can cause an abend 04E with reason code 00D44054.
• Within a BTS/DLI setup, recovery of DB2 tables and IMS databases are
uncoordinated. An SQL COMMIT/ROLLBACK call commits or rolls back changes
made to DB2 tables only, not your IMS databases.
• Xpediter/TSO forces on the PARDLI parameter in the BMP environment.
• If you are experiencing system abends while using the BTS TRACE to monitor DB2
activity, check with IBM for fixes available for the BTS program product. Problems
have occurred in MVS/XA IMS 1.3 and BTS 1.3, as well as MVS/ESA IMS 3.1 and BTS
3.1.
• When using the PWFI option, the testing dynamics are different than a non-PWFI
test. In a non-PWFI test, a return code is returned after the GU from the message
queue when there are no more messages. The PWFI test will wait for input at the GU
to the message queue.
Naming Convention:
Program names should not begin with IBM reserved prefixes such as IHO, ILBO, IGZ, and
so on.
Memory Allocations:
User programs and other vendor packages that perform FREEMAINs on subpool=0 or
subpool=3 are not supported.
Xpediter/TSO Overview
1-7
Link Options:
Xpediter/TSO does not support the NE or OVLY linkage editor parameters.
Abend Intercepts:
Xpediter/TSO does not support programs that issue (E)STAE or (E)SPIE macros.
VisualAge PL/I:
The compiler for VisualAge PL/I is somewhat different in the way it handles certain
aspects of the language. One such difference involves the method by which statements
are identified. Traditionally, each PL/I statement was given a unique statement number
for identification in the various elements of the compiler output. Under VisualAge PL/I
compilation, however, the identification is less finite, with only the file and line number
being used to discern between language constructs.
Because this mechanism is somewhat awkward when using Xpediter, the Compuware
Language Processor instead associates each file and line number combination with a
single sequential line number. It is this generated line number which is used by Xpediter
with VisualAge PL/I programs as the replacement notation for statement number under
previous PL/I compilers.
As a result, references to the term “statement” in Xpediter documentation, messages, and
panels actually refer to the line construct (which may contain multiple statements) in a
VisualAge PL/I environment.
PLITEST Option
Xpediter does not support the PLITEST option. Use of this option can cause
unpredictable results.
1-8
Xpediter/TSO and Xpediter/IMS PL/I User Guide
2-1
Chapter 2.
User Interface to Xpediter/TSO
Chap 2
This chapter describes how to interact with Xpediter/TSO in general. The screen formats,
PF key assignments, command processing, and attention key processing are discussed.
Xpediter Screens
Xpediter uses screens that are like ISPF/PDF, making the Xpediter menus and utility
screens self-explanatory. The Source, Log, Show, and Memory screens have a similar
format. Figure 2-1 displays a PL/I program in the Xpediter Source screen, and Figure 2-2
displays a PL/I program on the same screen encountering an abend.
Figure 2-1. PL/I Program in the Source Screen
--------------------------- XPEDITER/TSO - SOURCE ------------------------------
COMMAND ===>
SCROLL===> CSR
PROGRAM: TRIMAIP1
MODULE: TRIMAIP
COMP DATE: 08/23/1995 COMP TIME: 12:15:45
** END **
---------------------------------------------- Before TRIMAIP1/AMODE 31 <>
=====> B TRIMAIP: PROC OPTIONS(MAIN);
------
000002
DCL INFILE INPUT RECORD;
000003
DCL MORE_RECORDS
BIT (1)
------
000004
DCL 1 IN_REC,
-----2 SIDES,
-----3 SIDE_A
PIC’9’,
-----3 SIDE_B
PIC’9’,
-----3 SIDE_C
PIC’9’,
-----2 UNUSED
CHAR (77);
------
000005
DCL 1 WORK_REC ,
-----2 (SIDE_A, SIDE_B, SIDE_C) FIXED DEC(1);
------
The screen areas are described as:
Title
(line 1)—Identifies the screen name: Source, Log, Show, Memory, and so forth.
Command area
(line 2)—Primary command line, which can be increased to three lines using the SET
CMDSIZE command.
Scroll amount
(line 2)—Indicates the current scroll amount. You can type over the current value
with one of the following values:
1 to 9999
Scrolls by the number of lines or columns.
CSR or C
Scrolls based on the current position of the cursor.
2-2
Xpediter/TSO and Xpediter/IMS PL/I User Guide
DATA or D
Scrolls by one line or column less than PAGE.
HALF or H
Scrolls by a half page.
PAGE or P
Scrolls by one page.
Program
(line 3)—Identifies the CSECT currently displayed. This is an unprotected field and
can be typed over with another program name.
Module
(line 3)—Displays the load module name.
Compile date
(line 3)—Displays the compile date.
Compile time
(line 3)—Displays the compile time.
Figure 2-2. PL/I Program Encountering an Abend
------------------------- XPEDITER/TSO - SOURCE ------------------------------
COMMAND ===>
SCROLL ===> CSR
S0C7 ABEND ENCOUNTERED, USE "AA SNAP" COMMAND FOR ADDITIONAL INFORMATION
IN_REC @001FABC0
000011
01 WORK_REC
> ...
000010
TRIANGLE_TYPE
> +0
PACKED
** END **
----------------------------------- S0C7 Abend at TRIMINP1:29/AMODE 31 <>
000028
TRIANGLE_TYPE = 0;
=====> B
CALL TRITSTP (WORK_REC,
-----TRIANGLE_TYPE);
000030
TX = TRIANGLE_TYPE;
000031
N_CNTR(TX) = N_CNTR(TX) + 1;
000032
END;
000033
END ANALYZE_NEXT_REC;
------
000034
ENDING_PARA: PROC;
000035
CLOSE FILE(INFILE);
000036
CALL TRIRPTP (N_N_C_TABLE);
000037
END ENDING_PARA;
------
000038 A END TRIMAINP;
****************************** BOTTOM OF MODULE *******************************
Message area
(Figure 2-2, line 3)—Displays short or informational messages. When a message is
issued, it overlays the program information in line 3. Press Enter to flush the message
and display the program information. Additional information can be accessed by
pressing PF1 (HELP).
Keep window
(lines 4 - 8)—Automatically displays data referenced in the current statement; i.e.,
the statement where the execution arrow is located when the breakpoint takes effect.
Explicitly kept data is also displayed. Explicitly kept items are denoted by a K in
column 9 of the window.
The data in the window can be scrolled by moving the cursor to the Keep window
and using the PF7 (UP) and PF8 (DOWN) keys to scroll vertically and the PF22
(DRIGHT) and PF23 (DLEFT) keys to scroll horizontally. You can also control the size
of the window and, for automatic keeps, the placement of the automatically kept
User Interface to Xpediter/TSO
2-3
items. Refer to the SET command in “Displaying Test Session Settings” on page D-9
for additional information.
The SET AUTOKEEP ON/OFF command toggles the effect of the Automatic Keep
function.
Execution status
(line 9)—Identifies the current execution point in your program. The <> shown at
the end of this line indicates that the source can be scrolled to the left and/or right.
The execution status line may also display one or more of the following:
–
–
–
–
Whether execution is halted before or after the specified line (Figure 2-1)
Program name
Abend code (Figure 2-2)
24, 31, or 64 bit addressing mode.
Source area
As shown in both Figure 2-1 and Figure 2-2, the source area begins on line 10 and
displays 68 to 70 bytes of the source code on the screen at a time. The source can be
scrolled vertically using the PF7 (UP) and PF8 (DOWN) keys and horizontally using
the PF10 (RIGHT) and PF11 (LEFT) keys. When an Automatic Keep window is visible,
the data in the window can also be scrolled vertically using the PF7 and PF8 keys and
horizontally using the PF22 and PF23 keys.
The After, Before, Onetime, Peek, and Skip indicators are displayed on the left side of
the source in column 9. A 7-digit counter set by the COUNT command is displayed
on the right side beginning at column 74.
PF Keys
The default settings for the 24 Xpediter PF keys are listed below. These values are valid
during the Xpediter/TSO session. ISPF PF keys are not affected. The ISPF KEYS command
or the SET PFn command can be used to override the defaults.
Table 2-1.
PF Key
Default Program Function (PF) Keys
Default Setting
Description of Function
PF1/PF13
HELP
Elaborates an Xpediter/TSO message and invokes the context-sensitive
tutorial facility.
PF2
PEEK CSR
Displays the contents of the data name defined by the current cursor
position. The cursor must be in the Source window under a valid data
name.
PF14
FIND CSR
Finds the character string located under the cursor position.
PF3/PF15
END
Returns you to the previous menu if you are in the Log, Help, Browse, or
Show functions.
PF4/PF16
EXIT
Ends the current Xpediter/TSO session.
PF5
FIND
Repeats the action of the previous FIND command.
PF17
FIND IND
Scrolls the source display to successive levels of indirect references related
to a previously entered FIND INDIRECT command.
PF6/PF18
LOCATE *
Scrolls the source display to the current location where execution was
suspended.
PF7/PF19
UP
Scrolls the source or data in the Keep window up, or toward the top of the
file.
PF8/PF20
DOWN
Scrolls the source or data in the Keep window down, or toward the bottom
of the file.
PF9/PF21
GO 1
Executes the next logical instruction in your program, then pauses.
2-4
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Table 2-1.
PF Key
Default Program Function (PF) Keys
Default Setting
Description of Function
PF10
LEFT
Scrolls the source display to the left.
PF11
RIGHT
Scrolls the source display to the right.
PF12/PF24 GO
Starts or resumes execution of your program.
PF22
DLEFT
Scrolls data in an Automatic Keep, Keep, or Peek window to the left.
PF23
DRIGHT
Scrolls data in an Automatic Keep, Keep, or Peek window to the right.
Command Processing
In interactive mode, the results of command execution are immediately visible on the
source display.
Xpediter/TSO commands can be entered in three ways:
1. Type the command in the primary command area and press Enter. Command
stacking, delimited by a semicolon (;), is allowed.
The primary command area can be extended up to three lines by using the SET
CMDSIZE command. The previous primary command can be recalled by entering a
question mark (?).
2. Press the PF key that was assigned to the desired command. Refer to Table 2-1 on
page 2-3 for a list of the PF key assignments.
3. Type over the 6-digit compiler-generated statement number with a valid line
command and press Enter.
Xpediter/TSO records the line command in the session log in the same manner as the
primary command.
Lowercase Conversion
By default, commands entered in lowercase are converted to uppercase. To override the
default, use the SET CAPS OFF command. Also, to display lowercase data, use the SET
LOWCASE ASIS command.
Attention Key Processing
When you press the attention key while Xpediter or your application is executing, the
message
ENTER ATTENTION OPTION OR HELP FOR LIST OF OPTIONS
is displayed. If you enter HELP, a screen containing information similar to Figure 2-3 is
displayed. Enter the option you want to perform.
User Interface to Xpediter/TSO
2-5
Figure 2-3. Attention Key Processing Options
ENTER:
PAUSE
EXIT
LOG
PSW
GPREGS
STORAGE
WHERE
WHERE
WHERE
GO
Note:
TO
TO
TO
TO
TO
<address> TO
TO
<address> TO
<module> TO
TO
DYNAMICALLY INVOKE THE PAUSE COMMAND
TERMINATE THE TEST SESSION
DISPLAY THE LOG PRIOR TO TERMINATION
DISPLAY THE CURRENT PSW ADDRESS
DISPLAY THE CURRENT GENERAL PURPOSE REGISTERS
DISPLAY STORAGE AT THE SPECIFIED ADDRESS
DISPLAY THE CURRENT MODULE AND OFFSET
DISPLAY THE MODULE AND OFFSET OF <address>
DISPLAY THE ADDRESS OF THE SPECIFIED MODULE
RESUME TEST EXECUTION (or PRESS ENTER)
The options listed on the screen will be different for MPP programs.
If pressing the Attention key interrupts an IMS Fast Path test and you then enter the EXIT
command, Xpediter/IMS will detach your IMS region and an S33E system abend will be
reported as you return to the starting test panel. Message XPD1202 records the abend in
the Xpediter session log.
CAUTION:
In Xpediter/IMS, do not press the attention key twice. When you do this, the session
is terminated with the TSO default, and you are returned either to ISPF or native
TSO. In addition, Xpediter/IMS is not terminated normally; i.e., your datasets
cannot be closed safely.
When you press the attention key while Xpediter is waiting for input (e.g., stopped at a
breakpoint), the message
ATTENTION IGNORED - WAITING FOR TERMINAL INPUT
is displayed. If you press the attention key again, the message
ENTER ATTENTION TO TERMINATE OR ENTER TO CONTINUE
is displayed. Pressing attention again will take you to the READY prompt.
2-6
Xpediter/TSO and Xpediter/IMS PL/I User Guide
3-1
Chapter 3.
Quick Sample Debugging Session
Chap 3
This chapter demonstrates some of the basic interactive debugging features of
Xpediter/TSO, using the sample PL/I program TRIMAINP, which calls TRITSTP and
TRIRPTP. This quick overview shows you how to do the following:
•
•
•
•
•
•
•
Prepare the programs
Start an interactive debugging session
Step through code
Trace statements
Count statements
Set breakpoints
View and modify data values.
Preparing the Programs
The source for the sample programs TRIMAINP, TRITSTP, TRIRPTP, and TRIDATA (the
dataset containing the data) is provided in the SLXTSAMP library. The common load
module, test data, DDIO dataset, and file list libraries should have already been created
and/or verified by your site installer. Contact your installer for the names of these
datasets and libraries.
If these datasets and libraries were not created, you must compile and link edit the
programs using the Compuware Shared Services (CSS) PL/I language processor. You must
also specify the appropriate load module on the Setup screen.
Option 1 on the Xpediter/TSO Primary Menu can be used to compile and link edit the
programs. Refer to “Preparing Your Programs” on page 4-3 if you require assistance.
When you are ready to start the session, do the steps listed below in “Starting the
Debugging Session”.
Starting the Debugging Session
1. Type PLI64 in the Profile field on the Xpediter/TSO Primary Menu to set up a profile
for the session. Xpediter displays the Profile screen, and prompts you to enter a
description for the new profile. Enter PLI TRIMAINP in the description area and
press the END key. The Primary Menu is redisplayed.
2. Type 2 (TSO) in the command line on the Primary Menu and press Enter. The
Environments Menu is displayed if this is your first time invoking an Xpediter/TSO
debugging session. Otherwise, the last environment test screen you used is displayed.
To access the Environments Menu, type SETUP in the command line of the displayed
environment test screen. Then select option 0 on the Test Setup Menu to display the
Environments Menu.
3. Type 1 (STANDARD) on the Environments Menu.
4. Press Enter.
5. Type SETUP on the standard test screen.
6. Type 1 (LOADLIBS) on the Setup Menu.
3-2
Xpediter/TSO and Xpediter/IMS PL/I User Guide
7. On the Load Module Libraries screen, enter the name of the application load library
that contains the TRIMAINP load module (optional).
8. Press Enter.
9. Type 2 (DDIO) on the Setup Menu.
10. On the DDIO Files screen, you may enter the DDIO dataset name that contains the
source listing member of TRIMAINP. In addition to the original DDIO dataset name,
you may also specify a Shared Directory dataset name and/or an LP database dataset
name.
11. Press Enter.
12. Enter END or press PF3 to return to the standard environment test screen.
13. Specify the name of the program and the name of the file list or the JCL containing
the names of the files required by your program. Complete the screen as shown in
Figure 3-1.
Figure 3-1. Standard Test Screen
Profile: DEFAULT -----COMMAND ===>
XPEDITER/TSO - STANDARD (2.1)
-----------------------
COMMANDS:
SEtup (Display Setup Menu)
PROFile (Display Profile Selection)
TEST SELECTION CRITERIA:
Program ===> TRIMAINP
Entry Point ===>
Load Module ===>
Initial Script ===>
Post Script ===>
PARM
( Caps = YES ) ===>
File List/JCL Member
Preview Files?
Code Coverage Test?
Is This a DB2 Test?
===>
===> NO
===> NO
===> NO
Press ENTER to process
(YES, NO, TDO)
Plan ===>
or
SYSTEM FLOW? ===> NO
System ===>
enter END command to terminate
14. Press Enter to begin the Xpediter/TSO debugging session. The message area contains
the lines Allocating Xpediter/TSO Datasets, then Allocating User Datasets. On a
blank screen, the message Entering Xpediter/TSO Test Environment appears.
Xpediter/TSO processes the file list, allocates the necessary datasets, loads the program
TRIMAINP, and displays the PL/I source listing. The message BEFORE BREAKPOINT
ENCOUNTERED is displayed and the execution arrow (=====>) points to the
PROCEDURE statement. This means that TRIMAINP stopped before beginning execution
of the program. Also, a left/right scroll indicator (e.g., -- Before TRIMINP1 <>) appears
on the execution status line. A double arrow indicates that scrolling is allowed both left
and right. An example of the source display is shown in Figure 3-2 on page 3-3.
Quick Sample Debugging Session
3-3
Figure 3-2. TRIMAINP Program in the Source Display
------------------------- XPEDITER/TSO - SOURCE ------------------------------
COMMAND ===>
SCROLL===> CSR
BEFORE BREAKPOINT ENCOUNTERED
** END **
------------------------------------------------ Before TRIMINP1/AMODE 31 <>
=====> B TRIMAINP: PROC OPTIONS(MAIN);
------
000002
DCL INFILE INPUT RECORD FILE;
000003
DCL IN_REC
CHAR(80);
-----/*
*/
-----/*
*/
-----/*
DECLARE EXTERNAL ENTRY PROGRAMS
*/
-----/*
*/
-----/*
*/
------
000004
DCL TRITSTP EXTERNAL ENTRY;
000005
DCL TRIRPTP EXTERNAL ENTRY;
000006
DCL ADDR BUILTIN;
------
000007
DCL 1 N_N_C_TABLE,
Stepping Through the Code
The first time the program is displayed, you will want to see how the program works by
stepping through one statement at a time. Press PF9 (GO 1) to execute statements oneby-one. As shown in Figure 3-3, program execution stops on statement 12, as indicated
by the execution arrow.
Figure 3-3. Stepping Through Code
--------------------------- XPEDITER/TSO - SOURCE ------------------------------
COMMAND ===>
SCROLL===> CSR
PROGRAM: TRIMINP1
MODULE: TRIMAINP COMP DATE: 08/07/1995 COMP TIME:11:38:50
** END **
-------------------------------------------- Before TRIMINP1:12/AMODE 31 <>
=====>
ON ENDFILE(INFILE)
-----BEGIN;
000013
OUT_OF_RECS = ‘1’B;
000014
END;
Press PF9 (GO 1) again. Program execution stops on statement 15, and so forth as you
continue to press PF9.
Enter RETEST on the command line to obtain a fresh copy of the source.
Analyzing Program Logic
When you are not sure what the program is doing, you can trace the logic, highlighting
each statement as it is executed with the TRACE command. Following program execution
under live conditions speeds comprehension. Enter the following on the primary
command line to control the tracing speed:
SET DELAY 1
3-4
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Then enter the following on the command line to trace all statements executed:
TRACE ALL STATE;GO
Each statement that is executed is highlighted. When the default of 25 statements has
been reached, program execution pauses and the following message is displayed:
25 TRACE BREAKPOINTS HAVE BEEN EXECUTED
To look at the output from the TRACE command enter LOG on the command line to look
at the session log. The session log shows which statements were executed during the
trace. Refer to Figure 3-4.
Figure 3-4. Xpediter/TSO Session Log Showing Statement Execution Tracing
--------------------------- XPEDITER/TSO - LOG ---------------------------------
COMMAND ===>
SCROLL===> CSR
PROGRAM: TRIMINP1
MODULE: TRIMAINP COMP DATE: 01/17/1995 COMP TIME:11:38:50
----------------------------------------------- Before TRIMINP1:29/AMODE 31 ->
Trace TRIMINP1:12 IN TRIMAINP
Trace TRIMINP1:15 IN TRIMAINP
Trace TRIMINP1:20 IN INIT_PARA
Trace TRIMINP1:21 IN INIT_PARA
------------------------------- TRIMINP1 KEPT ITEMS ----------------------------
0
OCCURS
----+
000007
10 N_CNTR
> ?????
INVALID ZONED
--------------------------------------------------------------------------------
Trace TRIMINP1:22 IN INIT_PARA
Trace TRIMINP1:23 IN INIT_PARA
------------------------------- TRIMINP1 KEPT ITEMS ----------------------------
-
000009
OUT_OF_RECS
> 0
B
--------------------------------------------------------------------------------
Trace TRIMINP1:24 IN INIT_PARA
Trace TRIMINP1:16 IN TRIMAINP
------------------------------- TRIMINP1 KEPT ITEMS ----------------------------
Notice that the arrow on the status line indicates that you can scroll to the right.
Another way to analyze program logic is to count the number of times a statement is
executed. The COUNT command is used for this purpose. For this demonstration we will
count the number of times each statement is executed. First enter the following on the
command line to end the tracing mode.
DELETE TRACE
Then, enter:
COUNT ALL STATE;GO
When the program completes execution, you can scroll back through the program to
look at the results of the COUNT command. The COUNT command gives immediate
results by displaying a 7-digit counter field in columns 74 through 80, as shown in Figure
3-5 on page 3-5.
Quick Sample Debugging Session
3-5
Figure 3-5. Result of Using the Count Command
000025
000026
000027
000028
000029
-----000030
000031
000032
000033
------
000034
000035
ANALYZE_NEXT_REC: PROC;
READ FILE(INFILE) SET(IN_REC_PTR);
IF ¨OUT_OF_RECS THEN DO;
TRIANGLE_TYPE = 0;
CALL TRITSTP (WORK_REC,
TRIANGLE_TYPE);
TX = TRIANGLE_TYPE;
N_CNTR(TX) = N_CNTR(TX) + 1;
END;
END ANALYZE_NEXT_REC;
0000012
0000012
0000012
0000011
0000011
ENDING_PARA: PROC;
CLOSE FILE(INFILE);
0000001
0000001
0000011
0000011
0000012
0000012
Enter RETEST on the command line.
Setting Breakpoints
When testing a program, you may want to stop program execution to see the value of a
variable at a particular statement, check the operands in a calculation, inspect a record
that may be causing a problem, and so on. With breakpoint commands, you can stop
program execution before or after a statement, procedure, module, and so forth.
Breakpoint commands can be entered on the primary command line or in the line
command area. For this example, move the cursor to statement number 25 at the
ANALYZE_NEXT_REC procedure, then type over the statement number with the B
(Before) line command. When you press Enter, a B appears in column 9 on statement 25,
indicating that a before breakpoint has been set. Refer to Figure 3-6. This breakpoint
causes program execution to pause before executing the ANALYZE_NEXT_REC procedure.
Figure 3-6. Result of Entering a Before Breakpoint
000024
------
000025 B
000026
000027
000028
END INIT_PARA;
ANALYZE_NEXT_REC: PROC;
READ FILE(INFILE) SET(IN_REC_PTR);
IF ¨OUT_OF_RECS THEN DO;
TRIANGLE_TYPE = 0;
Press PF12 or enter GO to execute TRIMAINP until the breakpoint is reached. The
program stops at statement 25, where the execution arrow is pointing. The execution
status field on the fourth line also shows that execution is paused at Before TRIMINP1:25
as shown in Figure 3-7.
3-6
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure 3-7. Program Stopped at Before Breakpoint on Statement 25
------------------------- XPEDITER/TSO - SOURCE ------------------------------
COMMAND ===>
SCROLL===> CSR
BEFORE BREAKPOINT ENCOUNTERED
** END **
------------------------------------------- Before TRIMINP1:25/AMODE 31 <>
000024
END INIT_PARA;
------
=====> B
ANALYZE_NEXT_REC: PROC;
000026
READ FILE(INFILE) SET(IN_REC_PTR);
000027
IF ¨OUT_OF_RECS THEN DO;
Displaying Data Values
Whenever program execution halts, Xpediter/TSO automatically displays the value of
data items referenced by the current execution line. These automatic keeps are displayed
in a window at the top of the screen. Each time the program stops, a new set of variables
and their values are displayed.
Also, any time you stop program execution, you can use the KEEP command to
continuously display the contents of any number of variables as your program executes.
For this example, you will use the KEEP command and watch the values of WORK_REC
and TRIANGLE_TYPE to see if the calculations are being performed correctly. Move the
cursor to statement 11 (WORK_REC) and enter KE (Keep Element) so that you can view
the contents of each element. Then move the cursor to statement 10 (TRIANGLE_TYPE)
and enter K (Keep). The Keep window at the top of the screen in Figure 3-8 has been
expanded so that all the kept items can be displayed. Refer to the SET command in the
Xpediter/TSO and Xpediter/IMS Reference Manual for additional information on setting
window size. The K in column 9 differentiates an explicit keep from an automatic keep.
Figure 3-8. Displaying the Variables WORK_REC and TRIANGLE_TYPE
------------------------- XPEDITER/TSO - SOURCE ------------------------------
COMMAND ===>
SCROLL===> CSR
PROGRAM: TRIMINP1
MODULE: TRIMAINP COMP DATE: 08/07/1995 COMP TIME: 11:38:50
IN_REC @NO ADDR
000011 K 05 SIDE_A
>
NO ADDR
IN_REC @NO ADDR
000011 K 05 SIDE_B
>
NO ADDR
IN_REC @NO ADDR
000011 K 05 SIDE_C
>
NO ADDR
000010 K
TRIANGLE_TYPE
> ??
INVALID PACKED
------------------------------------------- Before TRIMINP1:25/AMODE 31 <>
-----/*
DECLARE EXTERNAL ENTRY PROGRAMS
*/
-----/*
*/
-----/*
*/
Press PF12 (GO) to execute TRIMAINP. As shown in Figure 3-9, the B (BEFORE)
breakpoint at statement 25 stopped execution before executing the ANALYZE_NEXT_REC
procedure. You can see that record 345 was read into WORK_REC and TRIANGLE_TYPE
and contains a value of 3 indicating that the value 345 is equal to a scalene (type 3)
triangle.
Quick Sample Debugging Session
3-7
Figure 3-9. Data Displayed in the Keep Window
------------------------- XPEDITER/TSO - SOURCE ------------------------------
COMMAND ===>
SCROLL===> CSR
BEFORE BREAKPOINT ENCOUNTERED
IN_REC @00221BC0
000011 K 05 SIDE_A
> 3
ZONED
IN_REC @00221BC0
000011 K 05 SIDE_B
> 4
ZONED
IN_REC @00221BC0
000011 K 05 SIDE_C
> 5
ZONED
000010 K
TRIANGLE_TYPE
> +3
PACKED
------------------------------------------- Before TRIMINP1:25/AMODE 31 <>
------
=====> B
ANALYZE_NEXT_REC: PROC;
000026
READ FILE(INFILE) SET(IN_REC_PTR);
000027
IF ¨OUT_OF_RECS THEN DO;
Press PF12 again. The next record 789 is read in the second time through the loop.
WORK_REC is updated to reflect the change and TRIANGLE_TYPE remains the same
because 789 equals a type 3 triangle. Refer to Figure 3-10 on page 3-7.
Figure 3-10. Seeing Data Change in the Keep Window
------------------------- XPEDITER/TSO - SOURCE ------------------------------
COMMAND ===>
SCROLL===> CSR
BEFORE BREAKPOINT ENCOUNTERED
IN_REC @00221C10
000011 K 05 SIDE_A
> 7
ZONED
IN_REC @00221C10
000011 K 05 SIDE_B
> 8
ZONED
IN_REC @00221C10
000011 K 05 SIDE_C
> 9
ZONED
000010 K
TRIANGLE_TYPE
> +3
PACKED
------------------------------------------- Before TRIMINP1:25/AMODE 31 <>
If you continue pressing PF12, you will see the value of TRIANGLE_TYPE change when
the value of WORK_REC changes to a different type of triangle.
Debugging Subroutines
Statement 29 shows that the program TRIMAINP calls TRITSTP and passes parameters
WORK_REC and TRIANGLE-TYPE (see Figure 3-5 on page 3-5). In order to examine how
TRITSTP is processing these parameters, you can set a breakpoint at the beginning of
TRITSTP to gain control of the execution when the call is made. Enter the following
command on the primary command line:
BEFORE TRITSTP:
The colon (:) after the program name indicates that a module-level breakpoint is
requested. Press PF12 (GO) to execute the program. Xpediter/TSO pauses execution at the
TRITSTP procedure as shown in Figure 3-11. Note the automatic keeps displayed in the
Keep window.
3-8
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure 3-11. Execution Stopped at the TRITSTP Procedure
------------------------- XPEDITER/TSO - SOURCE ------------------------------
COMMAND ===>
SCROLL===> CSR
BEFORE BREAKPOINT ENCOUNTERED
---
000002
01 TST_REC
> 124
TYPE_OF_TRIANGLE
> +0
PACKED
** END **
------------------------------------------------ Before TRITSTP1/AMODE 31 <>
=====> B TRITSTP: PROC(TST_REC, TYPE_OF_TRIANGLE);
------
000002
DCL 1 TST_REC,
4-1
Chapter 4.
Getting Started
Chap 4
This chapter discusses the following:
• The Xpediter/TSO Primary Menu.
• Preparing your programs to be processed with Xpediter/TSO and Xpediter/IMS. Refer
to “Preparing Your Programs” on page 4-3.
• Starting an Xpediter debugging session in interactive mode. Refer to “Starting an
Interactive Session” on page 4-5.
• Starting an Xpediter debugging session through the Batch Connect facility (for
interactive or unattended batch debugging). Refer to “Starting a Batch Connect
Session” on page 4-10.
• Starting an Xpediter debugging session through the Multi-Batch Facility (for
interactive or unattended batch debugging). Refer to “Starting a Multi-Batch Session”
on page 4-32.
• Manually changing your execution JCL to debug with Xpediter/TSO in interactive
(Batch Connect) or unattended batch mode. Refer to “Starting a Session with Batch
JCL” on page 4-37.
Note:
Xpediter/IMS can only be invoked in interactive mode.
• Using script files for test session management. Refer to “Test Session Management
Using Scripts” on page 4-42.
• Accessing other systems from Xpediter. Refer to “Accessing Other Systems from
Xpediter/TSO” on page 4-47.
The Xpediter/TSO Primary Menu
The Primary Menu is the first screen displayed upon entry to Xpediter/TSO. The options
on the Primary Menu are used to prepare the programs for execution, provide all the
information needed to execute the program, and invoke the test session. It also provides
a gateway to other Compuware products. The Primary Menu for Xpediter is shown in
Figure 4-1 on page 4-2.
Notes:
1. Only the options that have been installed at your site appear on your Primary Menu.
2. First time users will automatically see the bulletin containing the new features for
this release.
4-2
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure 4-1. Primary Menu for Xpediter
-------------------OPTION ===>
0
1
2
3
4
5
F
FA
FI
C
CS
T
X
XPEDITER/TSO 17.02.00 - PRIMARY MENU
DEFAULTS
PREPARE
TSO
BATCH
STORED PROC
UTILITIES
FADB2
FILE-AID
FILE-AID/IMS
CODE COVERAGE
CICS
TUTORIAL
EXIT
Profile ===> DEFAULT
-
-------------------
Specify defaults
Prepare programs for debugging
Debug programs interactively under TSO
Debug programs interactively under batch
Debug DB2 Stored Procedures interactively
Perform utility functions
Invoke File-AID for DB2
Invoke File-AID for MVS
Invoke File-AID for IMS
Code Coverage Reports and Utilities
Connect to a CICS region
Display information about XPEDITER/TSO
Exit primary menu
- *** NO DESCRIPTION ***
For Online Technical Support Reference: http://frontline.compuware.com
COPYRIGHT (C) 2016, Compuware Corporation. All rights reserved.
(800) 538-7822
Press ENTER to process
or
enter END command to terminate
The Primary Menu has the following options:
0 DEFAULTS
Specifies defaults for your terminal, PF keys, profile, and screen colors. Refer to
Appendix D, “Specifying Session Defaults”.
1 PREPARE
Accesses the Program Preparation Menu where you can:
– Convert your JCL to compile your programs with the Compuware Shared Services
PL/I language processor.
– DB2 precompile, compile, link-edit, and EXEC CICS translation.
– Bind application plans or packages with File-AID for DB2.
– Create and edit lists of the files and databases that have to be allocated for your
program to execute properly.
2 TSO
Invokes an interactive Xpediter/TSO and Xpediter/IMS debugging session. Refer to
“Starting an Interactive Session” on page 4-5.
3 BATCH
Accesses the Batch menu where you can choose Batch Connect or the Multi-Batch
Facility to invoke an Xpediter/TSO test session in batch that allows you to
interactively connect to the batch job for debugging. Refer to “Starting a Batch
Connect Session” on page 4-10 and “Starting a Multi-Batch Session” on page 4-32.
4 STORED PROC
Invokes a DB2 Stored Procedure debugging session.
5 UTILITIES
Accesses miscellaneous utility functions that can be used to query available region
size, list dataset allocations, maintain DDIO datasets, and merge profiles from
alternate users. Refer to Appendix E, “Xpediter/TSO Utilities”.
Getting Started
4-3
F FADB2
Invokes File-AID for DB2, which is Compuware’s powerful and easy to use DB2
database management, application development, and performance analysis tool.
Refer to the File-AID for DB2 Reference Manual for information about using File-AID for
DB2.
FA FILE-AID
Invokes File-AID for MVS. Refer to the File-AID for MVS Reference Manual for
information about using File-AID for MVS.
FI FILE-AID/IMS
Invokes File-AID for IMS. Refer to the File-AID for IMS Reference Manual for information
about using File-AID for IMS.
C CODE COVERAGE
Invokes Xpediter/Code Coverage, a product which is only available if you have
purchased it. When you run a test using Code Coverage, you are able to track every
statement you have executed in the normal work flow while running the test. Refer
to the Xpediter/Code Coverage Mainframe User/Reference Guide for more information about
using Xpediter/Code Coverage.
CS CICS
Connects to a CICS region for testing or any other CICS function. Refer to “Accessing
Other Systems from Xpediter/TSO” on page 4-47.
B BULLETIN
Displays a summary of changes for this release. This option is automatically
displayed when you first log onto the system. A similar version of this information is
contained in the “What’s New” section of the Xpediter/TSO and Xpediter/IMS Release
Notes.
T TUTORIAL
Provides general or specific information about an Xpediter/TSO command, screen, or
message.
Note: Help can also be accessed by pressing PF1 or entering HELP on the command
line of any screen.
Once you are in the Tutorial, you can continue to press Enter to see subsequent pages
of help text. The UP, BACK, NEXT, INDEX, and HELP subcommands can be used to
quickly locate a particular topic.
Use the END command to terminate the HELP function.
X EXIT
Exits Xpediter/TSO.
Profile
Specifies the current profile. Refer to “Using Profiles” on page 4-5.
Preparing Your Programs
Xpediter/TSO provides an interface to Compuware Shared Services (CSS) online program
preparation facilities that can be used to precompile, compile, and link-edit your
programs or convert your existing JCL to compile your programs with CSS’s PL/I
language processor. Xpediter/TSO has a native preparation facility to bind programs for
DB2 processing and prepare file allocation lists.
4-4
Xpediter/TSO and Xpediter/IMS PL/I User Guide
To debug a program symbolically at the source level with Xpediter, it must be compiled
with the PL/I language processor. When activated, the language processor (LP) accepts
the source code, invokes the specified compiler, and waits until the compile step is
complete. It then analyzes the program listing, produces a source listing member, and
writes the source listing member to the DDIO file. Xpediter refers to the symbolic
information and maps the source representation to the load module, so that you can
then debug your program interactively at the source level.
Notes:
1. Xpediter requires specific compile options which may vary depending on the
language type and actual version being used. A user should always refer to the
appropriate CSS User/Reference Guide for information related to any required compiler
options. Examples are: (1) Options NOTEST and NONUMBER are required for
COBOL; (2) Option NOTEST is required for PL/I, and (3) Options ESD and LIST are
required for Assembler. The Guide is required to assist users in manually converting
Compile and Link JCL to execute the CSS Language Processor. The Guide also gives
users information on how to set up the Language Processor parameters to write a
matching source listing to a DDIO file.
2. If you use a postprocessed source listing with Xpediter/TSO, you may lose some
Xpediter/TSO functions. The postprocessed source listing must be compiled with the
options required for Xpediter/TSO; otherwise, the results are unpredictable.
To access the program preparation facilities, type 1 (PREPARE) on the Xpediter/TSO
Primary Menu and press Enter. The Program Preparation Menu shown in Figure 4-2 is
displayed.
Figure 4-2. Program Preparation Menu
------------------ XPEDITER/TSO - PROGRAM PREPARATION MENU ------------------
OPTION ===>
1 CONVERT COMPILE JCL - Convert compile JCL for XPEDITER
2 COMPILE FACILITY
- Compile programs for XPEDITER
3 BIND FACILITY MENU
- Bind application plans or packages
4 EDIT ALLOCATION LIST - Edit or Create file allocation lists
Both the CONVERT COMPILE JCL and the COMPILE FACILITY now invoke
the CSS (Compuware Shared Services) Compile Utilities. Those
utilities also have a Profile facility that allows you to save
the compile parameters under a name of your choice.
The facility also allows you to display a member list of existing
names permitting profiles to be selected, displayed or
maintained (i.e., COPY, RENAME, DELETE, etc.).
Press ENTER to process
or
enter END command to terminate
The options on this menu are:
1 CONVERT COMPILE JCL
Automatically converts your compile JCL to compile your programs with the PL/I
language processor. After the JCL is converted, it can be submitted for processing.
2 COMPILE FACILITY
Precompiles DB2 statements, translates CICS commands, compiles, and link-edits
your programs based on the information you enter. If you are processing in batch,
the JCL is automatically built to compile with the language processor and the job is
Getting Started
4-5
submitted. If you are processing in foreground, the compile is performed using ISPF
and TSO command functions.
3 BIND FACILITY MENU
Displays the BIND FACILITY MENU, which has two options: 1 BIND PLAN FACILITY
and 2 BIND PACKAGE FACILITY. The first helps you set up DB2 bind plan options,
specify DBRM libraries, and submit the bind. The second helps you set up DB2 bind
package options and submit the bind. For more information about binding, refer to
Appendix F, “Binding the Application Plan or Package”.
4 EDIT ALLOCATION LIST
Invokes the File Allocation Utility (FAU) to create and allocate the files your program
will need to execute. The FAU is only used when you are debugging in interactive
mode, and usually only when you want to create a file list, or when problems are
encountered while allocating the files. Refer to Appendix A, “Using the File
Allocation Utility” for information about using the FAU.
The file allocation enhancement which provides your user the ability to point Xpediter
at the JCL needed to run a test is known as Quickstart. Quickstart eliminates the need to
utilize the File Allocation Utility (FAU) for DB2.
Options 1 and 2 are both compile facilities and are provided by linking to the
corresponding CSS facility. Refer to the Compuware Shared Services User/Reference Guide for
information related to these options. Refer to the referenced appendices for information
about options 3 and 4.
Starting an Interactive Session
To start an interactive debugging session, do the following:
1. Access the Xpediter/TSO Primary Menu.
Note:
If you want to change the defaults for your terminal, PF keys, screen colors,
profile, etc., use option 0. Refer to Appendix D, “Specifying Session
Defaults” for more information.
2. Optionally, specify a new or existing profile for the debugging session. When a
profile is not specified, a default profile is used. Refer to “Using Profiles” on page 4-5.
3. Use option 2 (TSO) on the Xpediter/TSO Primary Menu. Secondary screens are
displayed for specifying the program name and information about the environment
in which the program will execute.
The SETUP command shown on some of the secondary screens can be used to
override the installed setup options, such as the name of the load library and DDIO
dataset, session log disposition, and so on. The Setup Facility is discussed in detail in
Appendix C, “Specifying Setup Options”.
4. Allocate the files and databases that your program will need to execute. Refer to
“Allocating the Required Files” on page 4-8.
Using Profiles
The information you specify for a debugging session is recorded in a user profile that can
be used each time you want to execute the same test session again. This information
includes the name of the program, the list of files and databases that must be allocated
for the program to execute, the setup options for the environment in which the program
will execute, and the Xpediter/TSO defaults to be associated with the test session. It also
contains the defaults established by your systems programming staff during installation
of Xpediter/TSO.
4-6
Xpediter/TSO and Xpediter/IMS PL/I User Guide
The profile identifier and description are displayed in the Profile field on the Primary
Menu. The Profile field can be used to:
• Create a New Profile
• Use an Existing Profile
• Obtain a List of Profiles.
Changes to a user profile are made through the Xpediter Profile screen shown in Figure
D-5 on page D-4. This screen can also be accessed through option 0 (Defaults) on the
Primary Menu or by entering the PROFILE command from the Primary Menu or any test
screen. Refer to “Specifying User Profiles” on page D-6 for information about the Profile
facility.
Invoking the Test Session
The first time you invoke an Xpediter test session using option 2 (TSO) on the Primary
Menu, the Environments Menu screen shown in Figure 4-3 on page 4-6 is displayed.
Note:
Subsequent invocations of Xpediter/TSO will display the last environment test
screen that was used. The Environments Menu is only displayed again when you
are creating a new profile or when you access it through the setup facility using
the SETUP command. The SETUP command is discussed briefly later in this
section and in more detail in Appendix C, “Specifying Setup Options”.
Figure 4-3. Environments Menu Screen
Profile: DEFAULT ----- XPEDITER/TSO - ENVIRONMENTS MENU ------------------------
OPTION ===>
XPEDITER/TSO
1
STANDARD - Test a program with no special environment services
2
DIALOG
- Test programs that make ISPF dialog manager calls
3
IMS
- Test a program that makes IMS/DB calls
4
BTS
- Test programs using BTS
5
BATCHPEM - Test a program in a Hogan BATCHPEM environment
6
DLIPEM
- Test a program in a Hogan DLIPEM/BMPPEM environment
7
IMSPEM
- Test a program in a Hogan BTS IMSPEM environment
XPEDITER/IMS
8
MPP
- Test programs in an IMS message region
9
BMP/IFP
- Test a program in a BMP or Fast Path region
10 IMSPEM
- Test Hogan IMSPEM in an IMS message region
11 BMPPEM
- Test Hogan BMPPEM in a BMP region
DB2 STORED PROCEDURES
12 DB2SP
- Test DB2 Stored Procedure interactively
Note: The environment highlighted is currently selected.
Press ENTER to process or enter END command to terminate
The range of environment options shown on this menu depends on the site defaults set
by your installer. More information about the environments is provided in “Guidelines
for Selecting an Environment”.
Each option on the Environments menu accesses an environment test screen on which
you enter information about your program and the test session. For example, if you are
testing a program in the standard environment with no special services, you would type
option 1 (STANDARD) in the Environments Menu OPTION field, press Enter, and the
Standard Test screen would be displayed.
Environment test screens are used to specify all of the information required about the
program and test session. All environment test screens are described in Appendix B,
“Xpediter/TSO Environment Test Screens”.
Getting Started
4-7
If you type SETUP on the command line of the Environment test screen, the Setup Menu
is displayed. The options on the Setup Menu provide additional screens on which you
can change the installed values for the listed options, such as load library names, DDIO
file name, session log disposition, and so on. All setup menus and screens are described
in Appendix C, “Specifying Setup Options”.
When you complete the test screen and specify all setup information, an Xpediter/TSO
test session is started. Your source is displayed on the Xpediter/TSO source display where
all debugging functions are available for your use. The debugging functions are discussed
in Chapter 5, “Debugging Interactively”.
Guidelines for Selecting an Environment
The Xpediter/TSO options (1 through 7) on the Environments Menu displayed in Figure
4-3 invoke a debugging session and execute the application program in the TSO address
space. The Xpediter/IMS options (8 through 11) on the Environments Menu invoke a
debugging session and execute the IMS/DC application program in the message region,
the BMP region, and the Fast Path region.
If you are developing IMS/DC applications, Xpediter/IMS provides the capability of
debugging IMS/DC programs that are actually running in the IMS dependent regions,
whereas Xpediter/TSO provides the capability of debugging IMS/DC applications with
the use of a simulator (BTS) under TSO. Operations of Xpediter/IMS, however, require at
least one logical TSO terminal and one logical IMS terminal (it can be an ATM terminal),
both on the same CPU.
Table 4-1 summarizes the environment options to choose, depending on the type of
application you want to debug:
Table 4-1.
Guidelines for Choosing an Environment
Environment Option Type of Application Program
STANDARD
•
Batch programs that process QSAM and VSAM files.
•
Batch programs that issue EXEC SQL (DB2) statements.
•
Batch programs that issue third-party database calls (IDMS/DB, ADABAS,
TOTAL, TIS, SUPRA, DATACOM/DB, System 2000).
•
Dialog applications composed of screens, CLISTs, load modules, messages,
command tables, and file-tailoring skeletons.
•
Programs that run as part of a user-provided system involving multiple tasks.
•
Batch programs that issue CBLTDLI (IMS/DB) calls.
•
Batch programs that issue CBLTDLI (IMS/DB) calls and EXEC SQL (DB2)
statements.
•
IMS BMP programs. Refer to BMP/IFP.
BTS
•
IMS/DC MPP programs with the use of BTS. Refer to MPP option.
BATCHPEM
•
Hogan BATCHPEM applications or the BATCHPEM driver module itself.
DLIPEM
•
Hogan DLIPEM applications or the DLIPEM driver module itself.
IMSPEM
•
Hogan IMSPEM applications or the driver module itself with the use of BTS.
MPP
•
IMS/DC MPP programs in the IMS message region. Refer to BTS option.
BMP/IFP
•
IMS BMP programs. Refer to IMS option.
•
Fast Path programs in the IMS Fast Path region.
•
Hogan IMSPEM applications or the driver module itself in the IMS MPP
region.
DIALOG
IMS
IMSPEM
4-8
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Table 4-1.
Guidelines for Choosing an Environment
Environment Option Type of Application Program
BMPPEM
•
Hogan BMPPEM applications or the driver module itself in the IMS BMP
region.
Allocating the Required Files
This section tells you how to interactively specify a file list to be used at execution time
to allocate the files and databases your program needs.
Note: All files used by your program must be allocated, or your program will abend as if
you had omitted a DD statement from a batch run.
Allocating the files your program will need is as easy as entering the dataset name of an
existing file list, a CLIST, or your execution JCL (also identified as Quickstart) in the File
List/JCL Member field on the environment test screen.
There may be times when you may need to allocate files after starting a test session. This
can be done with the ALLOCATE command, which can be entered from any
Xpediter/TSO screen.
At other times, you may need to use the File Allocation Utility (FAU), a file list editor that
lets you create and edit file lists. The FAU is accessed through option 1 on the
Xpediter/TSO Primary Menu. When errors occur during file allocations while using the
test screen or the ALLOCATE command, the FAU is automatically accessed to assist you
in resolving the problem.
Each of these methods is used for a somewhat different purpose. The first two methods
are described below. A description of the File Allocation Utility is provided in Appendix
A, “Using the File Allocation Utility”.
Allocating From the Test Screen
The easiest and most commonly used way to allocate the files your program will need is
to enter the name of the dataset containing the file list, CLIST, or the program execution
JCL (also identified as Quickstart) in the File List/JCL Member field on the environment
test screen as shown in the following example:
File List/JCL Member ===> ’XT.XT70.FAU(TRIMAIN)’
If the dataset contains a file list or CLIST and there are no errors, the files are
automatically allocated.
If the dataset contains JCL, the following occurs before the files are allocated:
1. If the JCL executes a PROC, the PROC is automatically expanded. Refer to “Things to
Know About JCL Expansion” on page A-16 for more information.
2. JCL DD statements are automatically converted to the file list format. The conversion
rules are as follows:
– SMS keywords, in-stream data, ROUND (and other space parameters), SYSOUT
related parameters (HOLD, COPIES, DEST, etc.) are processed.
– JCL statements that do not have the corresponding SVC 99 support are processed
by ignoring the keywords and parameters. This situation will take place, for
instance, when VSAM AMP parameters are encountered.
– The program references EXEC PGM=*.xxx.yyy cannot be processed. Processing
will pause, the FAU is accessed, and the appropriate screens that will allow you to
correct the problem are displayed.
Getting Started
4-9
– When the program name on the test screen does not match the EXEC PGM in
the JCL, an error message is displayed and the FAU is automatically accessed.
3. Automatic Task Library/Parm setup as follows:
– If the program name that follows the PGM= keyword of one of the steps is equal
to the module name to be tested, then Xpediter/TSO will dynamically allocate
the DDs contained in that step. If the JCL PROC expansion option CONVERT is
being used, then the STEPLIB or JOBLIB datasets will be concatenated to
Xpediter’s Task Library after the libraries that are specified on the Setup.1 screen.
– If none of the program names that follow the PGM= keyword of one of the steps
is equal to the module name to be tested, then Xpediter/TSO copies the JCL to
the File Allocation Utility work area, prompts for DD selection, and dynamically
allocates the selected files. If the JCL PROC expansion option CONVERT is being
used, a STEP (as opposed to DDs) must be selected in order to have the
corresponding STEPLIB or JOBLIB datasets concatenated to Xpediter’s Task
Library after the libraries that are specified on the Setup.1 screen.
– If the JCL PROC expansion option CONVERT is being used, and the step you are
testing has the PARM= or PARMDD= keyword, Xpediter/TSO will use the JCLsupplied parm values (as long as the PARM String field on the screen is blank). To
override the use of the JCL-supplied PARM, put two single quotes in the PARM
String field to pass a null parameter or supply parm values in the PARM String
field.
If no errors occur, the files for the debugging session are automatically allocated. If a
problem occurs, the FAU is automatically accessed, and you are presented with the
screens needed to correct the problem.
Allocating With the ALLOCATE Command
The ALLOCATE command is generally used to allocate files from within an Xpediter test
session. It can be entered on the command line of any Xpediter screen. If entered
without a dataset name, the FAU is accessed and you can specify the information about
the file to be allocated. When you exit the FAU, the files are automatically allocated.
If you enter the ALLOCATE command with a dataset name, the dataset is automatically
accessed. If the dataset contains a file list and the allocations are successful, you will not
see any FAU facilities.
If the dataset contains JCL, the FAU is accessed and the JCL dataset is displayed on the
Select DDNAME screen. On this screen, you can select the DD statements to be copied to
the file list. Refer to “Converting JCL to a File List” on page A-15.
If an error occurs during the allocation, the Edit File List screen is displayed with an error
message. At this time, you can correct the problem. When you enter END, the files are
allocated.
Usage Note
Even if your application programs would normally find any required Language
dependent run-time subroutines (including LE - Language Environment), without being
included in the JOBLIB/STEPLIB of the batch JCL (usually from the LINKLIST or (E)LPA),
the libraries must still be specified as part of the test session setup. This will ensure that
Xpediter’s Task Library will be properly configured.
Using Xpediter/TSO Commands in Interactive Mode
In interactive mode, debugging is performed by entering Xpediter/TSO commands
online.
4-10
Xpediter/TSO and Xpediter/IMS PL/I User Guide
You can also use script files in interactive mode. However, keep in mind that only
primary commands can be entered in a script file.
• An initial script member name can be specified in the Initial Script field on the
selected environment test screen.
• A test script member name can be specified by using the INCLUDE command on the
command line during the test session.
• A post script member name can be specified in the Post Script field on the selected
environment test screen.
• An abend script is not applicable in interactive mode.
For information about using scripts, refer to “Test Session Management Using Scripts” on
page 4-42.
Starting a Batch Connect Session
Batch Connect sessions can be started under TSO/E as described below, or under ROSCOE
as described in “Batch Connect Under ROSCOE” on page 4-22.
Batch Connect
With the Batch Connect facility, you can submit your execution JCL in batch and
connect directly to the job as it executes in its native environment, the MVS batch
initiator.
Notes:
1. In Batch Connect mode, you do not have to allocate the files and databases required
for your program to run. They are automatically allocated to the batch address space
via the DD statements in the JCL.
2. No change in the TSO logon size is required for large programs.
3. Batch Connect is also available for the ROSCOE environment. Refer to “Batch
Connect Under ROSCOE” on page 4-22.
4. The Batch Connect facility does not use ISPF services.
5. The CICS interface to DLI driver (DFHDRP) is not supported in Batch Connect.
The Batch Connect facility presents several screens that are used to automate the process
of starting the session. The following summarizes the process:
Note: If the installer specified M for the keyword MULTI-BATCH/BATCH_CONNECT in
the CMSC PARMLIB member, the Batch menu will not be displayed in the
following step, and Xpediter/TSO’s Multi-Batch Facility will not be available. For
more information, contact the installer or refer to the appendix entitled
“Establishing Parameter Values for Xpediter/TSO” in the Xpediter/TSO and
Xpediter/IMS Installation and Configuration Guide.
1. Access the facility: Type option 3 (BATCH) on the Xpediter/TSO Primary Menu and
press Enter to access the Batch menu (Figure 4-4). Type option 1 (Batch) on the Batch
menu and press Enter to access the Batch Connect facility. The Process Execute JCL
screen (Figure 4-5 on page 4-12) is displayed.
Note:
For more information on option 2 (Multi-Batch), see “Starting a Multi-Batch
Session” on page 4-32.
Getting Started
4-11
Figure 4-4. Batch Menu
Profile: DEFAULT ------OPTION ===>
Xpediter/TSO 17.02.00 - Batch
----------------------
1
Batch
- Debug programs interactively under batch
2
Multi-Batch
- Debug multiple jobs interactively under batch
2. Process the execution JCL: The Process Execute JCL screen is used to identify the
execution JCL for the debugging session. You can also access the ISPF editor to view
and make changes to the JCL.
The JCL statements are scanned, expanded if the JCL is a procedure, and the job steps
are extracted. A list of the job steps is then displayed on the Select Job Step screen
(Figure 4-8 on page 4-14).
Note:
As part of the process to retrieve the job steps of the expanded procedure,
Xpediter inserts a /*ROUTE PRINT LOCAL card into a JCL job stream. The
option to “insert” or “not insert” the card is controlled by the CTLROUTE
option in the JCLRA093 member. Refer to the Xpediter/TSO and Xpediter/IMS
Installation and Configuration Guide Appendix entitled “Optional
Postinstallation Procedures”, under the heading “Establishing Site Defaults Customizing the Run-time Environment” for more information.
3. Convert and submit the JCL: The Select Job Step screen is used to specify how you
want each job step to execute (in interactive or unattended mode). When a job step
is selected for interactive debugging, the source for that step is displayed at your
terminal. When a step is selected to run in unattended mode, you cannot interact
with the step from your terminal. If you want to debug the step, Xpediter debugging
commands must be read from a test script and the output results from the test
session are then written to the session log.
You can submit the job from this screen or you can edit the JCL. When you submit
the job, the Batch Connect JCL scanner automatically converts each step to execute
in the specified mode (interactive or unattended). Refer to “JCL Conversion” on page
4-30 for information about JCL conversion.
4. Connect to the job: If you submit the job with the RUN command, you are
automatically connected to the job steps that were specified to execute in interactive
mode. If you submit the job with the SUBMIT command, you must use the
CONNECT or STATUS command to connect your terminal to the job steps selected
for interactive debugging.
5. Edit the JCL: Optionally, you can access the edit facility from the Process Execute
JCL or Select Job Step screen to view and confirm the JCL conversion or to make
changes to the JCL.
6. Access the Setup Facility: Optionally, you can use the SETUP command on the
Process Execute JCL screen or the Select Job Step screen to access the Setup Menu.
From the Setup Menu, you can view and change your job card information and
change the installed defaults, such as the load libraries, DDIO dataset, and so on.
Refer to Appendix C, “Specifying Setup Options” for a description of the setup
screens.
Processing the JCL
The Process Execute JCL screen shown in Figure 4-5 is used to specify the name of the JCL
to be used for the debugging session and to specify what you want to do with the JCL.
4-12
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure 4-5. Process Execute JCL Screen
-------------------- XPEDITER/TSO - PROCESS EXECUTE JCL -----------------------
COMMAND ===>
Primary Commands: blank (Process JCL)
Browse
Edit
SEtup
STatus
ISPF Library:
Project ===> PFHABC0
Group
===> BATCON
===>
===>
===>
Type
===> JCL
Member ===>
(Blank for member selection list)
Other Partitioned or Sequential Dataset:
Dataset Name ===>
Volume Serial ===>
(If not cataloged)
Press ENTER to process or enter END command to terminate
There are two things you need to do on this screen:
1. Enter the name of the dataset containing your execution JCL either in the ISPF
Library field or in the Other Partitioned or Sequential Dataset field.
2. Use one of the following commands on the command line:
blank
Leave the command line blank to scan the specified JCL and extract the job step
information. If the JCL is a procedure, it is expanded prior to scanning. When
processing is complete, the Select Job Step screen shown in Figure 4-8 on page
4-14 is displayed.
Browse
Invokes the ISPF browse facility and displays the specified JCL.
Edit
Invokes the ISPF edit facility and displays the specified JCL. You can edit the JCL.
Refer to “Editing the JCL” on page 4-18 for more information.
SEtup
Accesses the Test Setup Menu from which you can access the job card
information needed to process JCL PROCs. Refer to Appendix C, “Specifying
Setup Options” for more information.
STatus
Displays the status of any submitted job(s). You can connect to a job from the
Status screen.
Member List Selection Processing
The screen shown in Figure 4-6 is displayed if a PDS dataset was entered without a
member.
Getting Started
4-13
Figure 4-6. Process Execute JCL Screen for Batch Connect
----------------- XPEDITER/TSO - PROCESS EXECUTE JCL ------- ROW 00001 OF 00031
COMMAND ===>
SCROLL ===>
Line Commands:
B (Browse)
E (Edit)
S (Select for processing)
Dataset: 'USER001.ACCT.TEST.CNTL'
Name
Prompt
Size
Created
Changed
ID
------------------------------------------------------------------------------
-
_
_
_
_
_
_
_
_
_
_
_
_
_
_
ACCTAP01
ACCTAP02
ACCTBCM1
ACCTZZZS
BINSTACK
CROSSTRN
FINDGL
GLBALPGK
GLBAPPGK
INITMON
INITYR
LASTRUN
LASTRUN1
LSTDEBT1
7
26
26
27
28
44
34
21
128
19
109
2007/12/06
2001/11/29
2001/11/29
2001/11/29
2001/11/29
2007/12/04
2008/04/18
2001/11/29
2007/08/28
2001/04/30
2000/05/22
2007/12/06
2001/11/29
2001/11/29
2001/11/29
2008/04/18
2008/04/18
2009/09/22
2001/11/29
2007/09/04
2006/01/31
2000/05/22
11:06:29
10:26:04
10:24:37
10:24:29
07:46:24
07:25:06
09:01:10
10:26:32
14:10:53
09:53:30
14:15:33
USER001
USER001
USER001
USER001
USER001
USER001
USER001
USER001
USER001
USER001
USER001
24
2004/09/15
2004/09/23 11:56:24
USER001
One of the following actions must be taken:
•
•
•
•
Select a member for processing by typing an S in front of it.
Select a member to Browse by typing a B in front of it.
Select a member to Edit by typing an E in front of it.
Return to the previous panel by pressing the PF3/PF15 keys.
In addition, the selection list can be manipulated by using the FIND, LOC or SORT
commands.
Establishing the Batch Connect Environment
The Setup Menu for Batch Connect is shown in Figure 4-7. The Setup screens allow the
user to customize the Batch Connect environment. Additional STEPLIB datasets can be
specified, and the Xpediter required datasets can be customized. As part of the Xpediter
install, system defaults will be initialized for each of these categories. Each user can
further customize the environment using this setup facility. Selecting the desired option
will display a screen that allows modification to both user overrides and the system
defaults (for the specific user only).
4-14
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure 4-7. Setup Menu for Batch Connect
------------------------ XPEDITER/TSO - SETUP MENU --------------------------
OPTION ===>
0 JOB CARD
- JOB processing parameters
1 LOADLIBS
- Application load module libraries
2 DDIO
- DDIO files
3 INCLUDES
- Test script libraries
4 LOG
- Session log dataset disposition
5 SCRIPT
- Test script dataset disposition
6 DSNLOAD
- DB2 system names and DSNLOAD libraries
C CODE COVERAGE- Code Coverage setup options
D DOCUMENT
- Document dataset disposition
E EXTENDED
- Extended Setup Menu
A ALL
- Display all of the above in succession (except 0)
Press ENTER to process or enter END command to terminate
Converting and Submitting the JCL
When JCL processing is completed, the job steps in the specified JCL are displayed on the
Select Job Step screen shown in Figure 4-8.
Figure 4-8. Select Job Step Screen
----------------------COMMAND ===>
XPEDITER/TSO - SELECT JOB STEP
Line Commands:
I - Interactive testing
U - Unattended testing
Followed optionally by:
C - Code Coverage
T - Code Coverage, plus TDO
F - System Flow (F, CF or TF)
---- Row 1 to 9 of 20
SCROLL ===> CSR
Primary Commands:
Edit
- Display converted selected steps
END
- Exit without processing
RUN
- Submit and connect
SEtup - Setup work datasets
SUBmit - Convert selected steps and submit
STatus - Display status of submitted job(s)
Dataset: 'PFHABC0.BATCON.JCL'
PROGRAM
INITSCR POSTSCR
----------------------------------___
GENLABEL
________ ________
___
SORTMSTR
________ ________
___
PRINTCHK
________ ________
___
IDCAMS
________ ________
___
TRIIMSM
________ ________
___
TRIBMP
________ ________
___
DFSRRC00
________ ________
___
PQ1CPINQ
________ ________
___
TRIMAIN
________ ________
STEPNAME PROCNAME PROCSTEP EXEC PGM
-----------------------------------------
XMULTI
MULTI
STEP1
XMULTI
MULTI
STEP2
XMULTI
MULTI
STEP3
XMULTI
MULTI
STEP4
XMULTI
MULTI
BATCHDLI
XMULTI
MULTI
BATCHIMS
XMULTI
MULTI
DB2DLI
XMULTI
MULTI
CICSDLI
XMULTI
MULTI
XBATCONI
This screen is used two ways:
1. Use the I or U line command to specify how you want each job step to execute: in
interactive or unattended mode. The JCL will then be converted to run with
Xpediter/TSO in the specified execution mode. Refer to “JCL Conversion” on page
4-20 for information about JCL conversion.
2. Use the RUN or SUBMIT primary command to convert and submit the JCL, the EDIT
command to view or edit the JCL, the SETUP command to access and change your
job card information, the STATUS command to display the status of submitted jobs,
or the END command to exit.
Getting Started
4-15
For example, a completed Select Job Step screen is shown in Figure 4-9.
Figure 4-9. Completed Select Job Step Screen
----------------------COMMAND ===>
XPEDITER/TSO - SELECT JOB STEP
Line Commands:
I - Interactive testing
U - Unattended testing
Followed optionally by:
C - Code Coverage
T - Code Coverage, plus TDO
F - System Flow (F, CF or TF)
---- Row 1 to 9 of 20
SCROLL ===> CSR
Primary Commands:
Edit
- Display converted selected steps
END
- Exit without processing
RUN
- Submit and connect
SEtup - Setup work datasets
SUBmit - Convert selected steps and submit
STatus - Display status of submitted job(s)
Dataset: 'PFHABC0.BATCON.JCL'
PROGRAM
INITSCR POSTSCR
----------------------------------I__
GENLABEL
________ ________
___
SORTMSTR
________ ________
ITF
PRINTCHK
________ ________
___
IDCAMS
________ ________
UC_
TRIIMSM
________ ________
UF_
TRIBMP
________ ________
___
DFSRRC00
________ ________
___
PQ1CPINQ
________ ________
___
TRIMAIN
________ ________
STEPNAME PROCNAME PROCSTEP EXEC PGM
-----------------------------------------
XMULTI
MULTI
STEP1
XPTSO
XMULTI
MULTI
STEP2
XMULTI
MULTI
STEP3
XPTSO
XMULTI
MULTI
STEP4
XMULTI
MULTI
BATCHDLI XPBATCH
XMULTI
MULTI
BATCHIMS XPBATCH
XMULTI
MULTI
DB2DLI
XMULTI
MULTI
CICSDLI
XMULTI
MULTI
XBATCONI
Line Commands
I (Interactive) testing
Selects the step to run in interactive mode.
U (Unattended) testing
Selects the step to run in unattended mode.
IC (Interactive Code Coverage) testing
Selects the step to run in interactive mode (with Code Coverage active).
UC (Unattended Code Coverage) testing
Selects the step to run in unattended mode (with Code Coverage active).
IT (Interactive Test Data Optimization) testing
Selects the step to run in interactive mode (with Code Coverage and TDO active).
UT (Unattended Test Data Optimization) testing
Selects the step to run in unattended mode (with Code Coverage and TDO active).
IF (Interactive System Flow) testing
Selects the step to run in interactive mode (with System Flow active).
UF (Unattended System Flow) testing
Selects the step to run in unattended mode (with System Flow active).
ICF (Interactive Code Coverage/System Flow) testing
Selects the step to run in interactive mode (with Code Coverage and System Flow
active).
UCF (Unattended Code Coverage/System Flow) testing
Selects the step to run in unattended mode (with Code Coverage and System Flow
active).
4-16
Xpediter/TSO and Xpediter/IMS PL/I User Guide
ITF (Interactive Test Data Optimization/System Flow) testing
Selects the step to run in interactive mode (with Code Coverage, TDO, and System
Flow active).
UTF (Unattended Test Data Optimization/System Flow) testing
Selects the step to run in unattended mode (with Code Coverage, TDO, and System
Flow active).
blank (Reset I/U/C/T/F)
Blank the line command area and press Enter to remove any line command set on a
job step.
Notes:
1. For a step that is already converted (EXEC PGM=XPTSO or EXEC PGM=XPBATCH), a
question mark (?) is displayed and the step is not selectable.
2. If a job step cannot be resolved during JCL processing, the program name will be
preceded by a question mark (?) and no line command can be used. Refer to “JCL
Conversion” on page 4-20 for additional information.
Primary Commands
Edit
Accesses the ISPF edit facility. The JCL is automatically converted and displayed on
the ISPF edit screen. You can view and confirm the JCL conversion and make
additional modifications to the converted JCL. However, the changes made to the
converted JCL will not be saved when you CANCEL or PF3 (END) from the edit
screen. Refer to “Editing the JCL” on page 4-18 for more information and an example
of the ISPF edit screen.
You can submit the JCL from the edit screen using the RUN or SUBMIT command.
END
Exits without converting the JCL, saving any modifications, or submitting the job,
and returns you to the Process JCL screen.
RUN
Converts the steps selected by the I and U line commands to Xpediter/TSO steps and
submits the JCL. When the job processes successfully, you are automatically
connected to the job steps selected to run in interactive mode and the Source screen
is displayed.
If the job is a long-running job, the Connect Status screen is displayed showing the
job status.
Note:
The terminal cannot be used while the job is running.
If the JCL is already converted, the RUN command (with a DSNAME) can be entered
on any screen except an Xpediter test session screen. Refer to the Xpediter/TSO and
Xpediter/IMS Reference Manual for more information about the RUN command.
SEtup
Displays the Setup Menu from which you can select to view and change the job card
and library information, such as the DDIO file (XPSL000n) and the test script
libraries (XINCLUDE). Refer to Appendix C, “Specifying Setup Options” for more
information.
SUBmit
Converts the steps selected by the I and U commands to Xpediter/TSO steps and
submits the job. A job submitted with the SUBMIT command is not automatically
Getting Started
4-17
connected. To connect to a job submitted with the SUBMIT command, you must use
the CONNECT or STATUS command. Refer to “Connecting to a Job” on page 4-17.
Note:
While the job is running, you can continue using your terminal.
STatus
Displays the status of a job. You can connect to the job directly from the Status
screen.
The fields displayed on the Select Job Step screen are:
Dataset
This field is pre-filled with the dataset name of the JCL being processed.
PROGRAM
The name of the program to be tested. The program name does not necessarily match
the EXEC PGM name.
INITSCR
The INITSCR field can be typed over to specify a test script member which can be
processed at the beginning of a debugging session. The script must reside in one of
the libraries defined on the Test Script Libraries screen (option 3 on the Setup Menu).
POSTSCR
The POSTSCR field can be typed over to specify a test script member which can be
processed at the end of a debugging session. The script must reside in one of the
libraries defined on the Test Script Libraries screen (option 3 on the Setup Menu).
STEPNAME
The job step name.
PROCNAME
The in-stream or cataloged procedure name.
PROCSTEP
The step name within the called procedure.
EXEC PGM
The name of the EXEC program that is executed for the step. XPTSO if I (Interactive)
was specified for the step. XPBATCH if U (Unattended) was selected for the step. The
field is left blank if the name is the same as the one entered in the PROGRAM field.
Connecting to a Job
When you use the RUN command to submit the job, the steps that are selected for
interactive debugging are automatically displayed at your terminal.
When you use the SUBMIT command to submit the job, there are two ways to connect to
a job: the CONNECT command and the STATUS command.
CONNECT Command
Use the CONNECT command on any screen (except the source display) to connect a
VTAM terminal to a job submitted through Xpediter/TSO’s Batch Connect facility. You
can connect to a job with multiple steps or to a single step job. For information on the
CONNECT command syntax, refer to the Xpediter/TSO and Xpediter/IMS Reference Manual.
4-18
Xpediter/TSO and Xpediter/IMS PL/I User Guide
STATUS command
The STATUS command is used to display the Status screen containing a list of the jobs in
the system. The STATUS command can be entered from any screen.
The ATTACH line command on the Status screen is used to connect to a job and display
the source of each job step for which the I (Interactive) command was specified. A
message is displayed notifying you that the job step selected for testing is executing.
Connection Security Check
Connection can be made to any job, including production jobs, as long as your site
security grants the authority. The Batch Connect facility is shipped with a default
security exit routine that allows connection to a job if the JOBNAME, without the last
character, matches the TSO ID where the STATUS panel is accessed. When a connection
cannot be made, the messages CANNOT CONNECT... or SECURITY CHECK FAILED...
are issued.
The site installer can customize the security exit routine to tailor the security level for
certain groups or individuals. When an asterisk (*) is entered in the JOBNAME field on
the Status screen, all jobs that are waiting for connection or being tested under Batch
Connect are listed. System programmers are able to connect to a remote job and use the
facility as a help desk feature in debugging application programs.
Editing the JCL
There are two points at which the Batch Connect facility lets you edit your JCL.
1. Primary editing is available by entering the EDIT primary command on the Process
Execute JCL screen. An ISPF edit session is invoked and the specified JCL is displayed.
If your site security permits, changes will be saved to the original JCL when the edit
session ends.
2. Secondary editing is available by entering the EDIT primary command on the Select
Job Step screen. An ISPF edit session is invoked and a temporary copy of the JCL is
displayed. JCL statements for the steps selected for testing, using the I (Interactive) or
U (Unattended) line commands, are already converted when the edit screen is
displayed.
Note: If you have selected a step that uses the IMS batch region controller program,
the Xpediter/TSO TEST command will display ???????? as the program name.
It is not necessary to replace the question marks with the name of the
program you want to debug. When the job is submitted, Xpediter/TSO will
use the step’s PARM information to determine the name of the program.
After editing is complete, you can submit the job from this screen with the RUN or
SUBMIT command.
Note: Entering END (PF3) or CANCEL returns to the Select Job Step screen without
saving the changes. To save the converted JCL, use the ISPF CREATE
command and copy the contents to a dataset. The saved JCL can be
submitted at any time with the RUN or SUBMIT command.
Figure 4-10 on page 4-19 shows an example of the Edit screen. In this example, Step 1 is
converted to run in interactive mode because the I line command was entered next to the
job step on the Select Job Step screen.
Getting Started
4-19
Figure 4-10. Edit Screen
EDIT ---- SYS92189.T124302.RA000.PFHABC0.RA0000018 ------------ COLUMN 001 072
COMMAND ===>
SCROLL ===> PAGE
JCL HAS BEEN MODIFIED TO DEBUG WITH XPEDITER.
==MSG> *=======================================================================*
==MSG> * COMMANDS:
*
==MSG> * SUB - SUBMIT THIS JOB
*
==MSG> * RUN - SUBMIT THIS JOB AND CONNECT
*
==MSG> * END - RETURN TO PREVIOUS PANEL
*
==MSG> *=======================================================================*
000001 //ASJRNS1Z JOB (ASJRNS1, 298),'MULTISTEP',MSGLEVEL=(1,1),
000002 //
MSGCLASS=X,NOTIFY=ASJRNS1,TIME=(,30),GROUP=$$PP
000004 //********************************************************************//
000006 //
STEP 1 - PRINT LABELS IN THE 3-UP FORMAT
*//
000008 //********************************************************************//
000009 //*
000011 //STEP1
EXEC PGM=XPTSO,REGION=512K,
000012 //
PARM='ATLCTLMTNPAC'
000013 //*
000014 //XDYNAMIC DD
DISP=(NEW,DELETE),SPACE(TRK,(10,10,10)),
000015 //
DCB=(RECFM=U,BLKSIZE=18432),UNIT=SYSDA
000016 //STEPLIB DD
DISP=(OLD,DELETE),DSN=*.XDYNAMIC,VOL=REF=*.DYNAMIC
000017 //
DD
DSN=AXPTSO.XPPROD.CUSTLOAD,DISP=SHR
Disconnecting the Terminal
Enter the DISC primary command from the Source display screen to disconnect the
VTAM terminal from the batch job and return to the Status screen in TSO. The job can be
reconnected by entering the A line command. A disconnect can also be accomplished by
pressing the attention key twice.
General Information About Batch Connect
Testing Multiple Job Steps
The Batch Connect facility makes system testing easier for multiple step jobs by
providing the capability of intercepting running batch applications and starting
interactive debugging sessions. To understand how the facility works, consider the
environment in which batch applications are executed.
Batch applications are processed by submitting jobs through JCL statements. A job can be
simple or complex. It can consist of a single step or multiple steps that call in-stream and
cataloged procedures. An example of a multiple step job is one that creates input control
cards in the first step, processes the transaction file in the second step, and updates the
master file in the third step.
In Xpediter/TSO interactive mode, to debug a specific step in a job with multiple steps
may require that you unit test the step by creating the necessary files and establishing
the appropriate conditions to simulate that the previous steps were executed. You may
also have to write a driver or stub routine to simulate the logic state that was set prior to
reaching the step you want to test. This requires extensive planning and setup before
debugging can begin.
Using the Batch Connect facility, you do not need to prepare a unit testing environment.
When a job is submitted, steps that are selected for unattended testing execute normally.
When a step is selected for interactive testing, Xpediter/TSO gains control and connects
the batch address space to a VTAM terminal. In effect, you are presented with an online
debugging session that reads commands from and writes results to the screen while the
program is actually executing in the batch region.
Xpediter/TSO releases control when you resume execution by entering the GO command
from the last logical statement in the program. Execution is passed to subsequent steps
until an end-of-job is encountered.
4-20
Xpediter/TSO and Xpediter/IMS PL/I User Guide
JCL Conversion
Job steps selected on the Select Job Step screen are changed to Xpediter/TSO steps in the
JCL and generated to a temporary file. JCL conversion is as follows:
• Xpediter/TSO work file DDs (XPSL000n, XPIN, XDYNAMIC, XINCLUDE, XOPTIONS,
XPOUT, XPSHOW, XPHELP, XPDOC, and XPSCRIPT) are inserted.
• If a STEPLIB exists in the user’s JCL, the following concatenations are generated:
–
–
–
–
XDYNAMIC
Application load libraries specified on the SETUP screen
Libraries specified on the Base Products screen
Product-specific libraries
• Xpediter/TSO
• CSS
• Code Coverage (if installed)
– User load libraries from the JCL’s STEPLIB
If a STEPLIB does not exist in the user’s JCL, a STEPLIB is generated with the
following concatenations:
–
–
–
–
XDYNAMIC
Application load libraries specified on the SETUP screen
Libraries specified on the Base Products screen
Product-specific libraries
• Xpediter/TSO
• CSS
• Code Coverage (if installed)
– JOBLIB libraries, if applicable
Xpediter/TSO looks in the STEPLIB when attempting to intercept a program for
debugging and analysis.
• EXEC PGM= is updated as follows to point to the appropriate Xpediter/TSO module
name.
– EXEC PGM=XPTSO (for interactive mode)
– EXEC PGM=XPBATCH (for unattended mode).
• XPIN control cards are built. The control cards tell Xpediter what environment and
program to test.
If the JCL scanner did not parse the program name to be tested under Xpediter, a
question mark (?) is displayed in the column preceding the step on the Select Job Step
screen. In this case, the I or U line command is not accepted and no conversion is made
to allow interactive or unattended mode testing. Press the PF1 key for an explanation.
Following is a list of reasons why a step is not selectable:
1. Step executes Xpediter unattended batch
This step executes PGM=XPBATCH, the Xpediter unattended batch program. A
probable cause could be attempting to convert JCL that has already been modified to
run Xpediter unattended batch.
2. Step executes Xpediter interactive batch
This step executes PGM=XPTSO, the Xpediter interactive batch program. A probable
cause could be attempting to convert JCL that has already been modified to run
Xpediter interactive batch.
3. PROC not found
The procedure cannot be found. A JCL error can occur if you submit this job.
4. Stepname on an EXEC statement within a PROC must not be a blank
Getting Started
4-21
Unless it is the first step in a procedure, there must be a step name on the EXEC
statement for a procedure step to be selected. Code a step name on the EXEC
statement in the procedure definition and try again.
5. No space in EXEC card for PGM substitution
The EXEC card did not have enough free space on it to allow conversion. Try
splitting it into more than one card.
6. PGM=DFHDRP is not supported
This step executes PGM=DFHDRP, the CICS batch interface to DLI driver. JCL that
uses the batch interface to DLI cannot be converted.
7. PGM=BTSRC000 is not supported
This step executes PGM=BTSRC000, the IMS Batch Terminal Simulator (BTS). JCL that
uses BTS cannot be converted.
Note:
You can access the editor and manually convert JCL that uses BTS by
following the instructions in “Editing the JCL” on page 4-18.
Using Xpediter/TSO Commands in Batch Connect Mode
Interactive Debugging
When you use the I (Interactive) line command to select a job step for interactive
debugging, all Xpediter/TSO PL/I commands except the following can be used during the
debugging session:
ALLOC
SET PFnn
You can also use script files in interactive mode.
• An initial script member name can be specified in the INITSCR field on the Select Job
Step screen or you can edit your execution JCL and use the INITSCR parameter on the
TEST or INTERCEPT command.
• A test script member name can be specified by using the INCLUDE command on the
command line during the test session.
• A post script member name can be specified by editing your execution JCL and using
the POSTSCR parameter on the TEST or INTERCEPT command.
• An abend script is not applicable in interactive mode.
For information about using commands in script files, refer to “Test Session Management
Using Scripts” on page 4-42.
Unattended Debugging
When you use the U (Unattended) line command to select a job step for unattended
testing, Xpediter/TSO must read the predefined commands from a script file and write
the results to the session log file.
• An initial script member name can be specified in the INITSCR field on the Select Job
Step screen or you can edit your execution JCL and use the INITSCR parameter on the
TEST or INTERCEPT command.
• A test script member name can be specified by using the INCLUDE command in the
job stream.
• A post script member name can be specified in the POSTSCR field on the Select Job
Step screen, or you can edit your execution JCL and use the POSTSCR parameter on
the TEST or INTERCEPT command.
4-22
Xpediter/TSO and Xpediter/IMS PL/I User Guide
• An abend script member name can be specified with the SET ABENDSCR command in
the job stream.
For information about using scripts, refer to “Test Session Management Using Scripts” on
page 4-42.
Intercepting Abends in Batch Connect Mode
Abend processing in a Batch Connect interactive session behaves the same way as an
Xpediter/TSO interactive session. When an abend occurs, a message is displayed at the
top of the screen informing you that you can use the AA SNAP command (if you have
Abend-AID Release 8.0.4 or above installed at your site) or the LOG command to view
information about the abend. See Chapter 6, “Handling Run-Time Errors” for more
information.
In an unattended debugging session, the SET ABENDSCR command can be used in the
job stream to specify the member containing the commands to be executed when an
abend occurs. For example, in the following SET ABENDSCR command,
SET ABENDSCR TRIMABN1
TRIMABN1 is a member of a partitioned dataset allocated to the XINCLUDE DD.
The commands specified in an abend script are executed following the abend. This allows
you to specify unique abend scripts containing special commands to be executed at
different points in your code if an abend occurs.
For information about using abend scripts, refer to “Test Session Management Using
Scripts” on page 4-42.
In an interactive or unattended session, the following information is written to the
session log when an abend occurs:
• Normal abend output.
• Source line where the abend occurred.
• A display for each field referenced in the source line where the abend occurred.
Usage Note
Even if your application programs would normally find any required Language
dependent run-time subroutines (including LE - Language Environment) without being
included in the JOBLIB/STEPLIB of the batch JCL (usually from the LINKLIST or (E)LPA),
the libraries must still be specified as part of the test session setup. This will ensure that
Xpediter’s Task Library will be properly configured. For Batch Connect, the preferred
method is to include the run-time libraries in the STEPLIB DD statement concatenations
of the JCL step(s) that are being intercepted.
Batch Connect Under ROSCOE
Note:
References to Batch Connect in this section refer to Batch Connect under
ROSCOE unless specifically stated otherwise.
With the Batch Connect facility, you can submit your execution JCL in batch and
connect directly to the job as it executes in its native environment, the MVS batch
initiator.
Notes:
1. In Batch Connect mode, you do not have to allocate the files and databases required
for your program to run. They are automatically allocated to the batch address space
via the DD statements in the JCL.
2. The size of programs which can be tested will not be limited by the size of the
ROSCOE region.
Getting Started
4-23
3. The Batch Connect facility does not utilize ISPF services.
4. Batch Connect does not support nested procedures.
5. The CICS interface to DLI driver (DFHDRP) is not supported in Batch Connect.
The Batch Connect facility presents several screens that are used to automate the process
of starting the session. The following summarizes the process:
1. Access the facility: From the ROSCOE command line enter the command
XBATCON. The Process Execute JCL screen is displayed.
2. Process the execution JCL: The Process Execute JCL screen is used to identify the
execution JCL for the debugging session. You can also use ROSCOE services to view
and make changes to the JCL. The JCL statements are scanned, expanded if the JCL is
a procedure, and the job steps are extracted. A list of the job steps is then displayed
on the Select Job Step screen.
3. Convert and submit the JCL: The Select Job Step screen is used to specify how you
want each job step to execute (in interactive or unattended mode). When a job step
is selected for interactive debugging, the source for that step is displayed at your
terminal. When a step is selected to run in unattended mode, you cannot interact
with the step from your terminal. If you want to debug the step, Xpediter debugging
commands must be read from a test script and the output results from the test
session are written to the session log file. You can submit the job from this screen or
you can edit the JCL. When you submit the job, the Batch Connect JCL scanner
automatically converts each step to execute in the specified mode (interactive or
unattended).
4. Connect to the job: If you submit the job with the PROCESS command, your job is
submitted and you are taken directly to the STATUS screen with your job being
displayed. If you use the SUBMIT command, you must use the STATUS command to
connect your terminal to the job steps selected for interactive debugging.
5. Edit the JCL: Optionally, you can access the edit facility from the Process Execute
JCL or Select Job Step screen to view and confirm the JCL conversion or to make
changes to the JCL.
6. Access the Setup Facility: Optionally, you can use the SETUP command on the
Process Execute JCL screen or the Select Job Step screen to access the Setup Menu.
From the Setup Menu, you can view and change the installed defaults such as the
load libraries, DDIO dataset, etc.
Processing the JCL
The Process Execute JCL screen shown in Figure 4-11 on page 4-24 is used to specify the
name of the JCL to be used for the debugging session and to specify what you want to do
with the JCL:
4-24
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure 4-11. Process Execute JCL for Batch Connect Under ROSCOE
---------------------- XPEDITER/ROS - PROCESS EXECUTE JCL ---------------------
A.A BBBB CCC COPYRIGHT (C) 2011 BY COMPUWARE CORPORATION. ALL RIGHTS RESERVED.
COMMAND ===>
PRIMARY COMMANDS: blank - process JCL BRowse EDit SEtup STatus
ENTER/VERIFY THE ROSCOE JCL FILE TO BE PROCESSED:
MEMBER NAME ===> WW2.
Prefix(.) for Member List
DESCRIPTION:
==============================================================================
DATA SET NAME ===>
If PDS is entered with no member name
a selection list will be displayed
VOLUME ===>
If not cataloged
PRESS ENTER TO PROCESS, END TO TERMINATE, OR, PF4 TO SWITCH BETWEEN ROSCOE
MEMBERS AND O/S DATASETS
Note: In the upper left hand corner of the Process Execute JCL screen, A.A is the current
release level, BBBB is the PTF level, and CCC is the RPF prefix.
There are two things you need to do on this screen:
1. Enter the name of the dataset or ROSCOE member that contains the execution JCL
for the program(s) you wish to debug. ROSCOE library members are entered in the
top half of the panel and O/S datasets are entered in the bottom half. If a ROSCOE
user prefix is entered with a period (ABC.), a ROSCOE library selection list will be
shown. If an O/S PDS dataset is entered without a member name, a PDS selection list
will be displayed. Pressing the PF4 key will switch between ROSCOE and O/S
resources.
2. Use one of the following commands on the command line:
blank
Leave the command line blank to scan the specified JCL and extract the job step
information. If the JCL is a procedure, it is expanded prior to scanning.
BRowse
Invokes a controlled ROSCOE browse facility and displays the specified JCL.
EDit
Invokes a controlled ROSCOE edit facility and displays the specified JCL. You can
edit the JCL.
SEtup
Accesses the Test Setup Menu which will allow you to specify Xpediter and user
libraries that are to be used.
STatus
Displays the status of any submitted job(s). You can connect to a job from the
Status screen.
Getting Started
4-25
Member List Selection Processing
Figure 4-12. Process JCL Screen for Batch Connect Under ROSCOE
--------------------------- XPEDITER/ROS - PROCESS JCL -----------------------
COMMAND ===>
SCROLL ====> CSR
LINE COMMANDS: S (Select Member) PRIMARY COMMANDS: END (Return to Process JCL)
E (Edit
Member) PF5/17=Repeat LOC LOC (Locate next String)
B (Browse Member)
MEMBER NAME
DESCRIPTION
UPDATE
ACCESS
RECS ATTR
-------------------------------------------------------------------------------
WW2.$DPTNX
Curr-dev ptns for reports
10/08/1996
68
SHR
WW2.$DPTNXA Arch-dev ptns for reports
03/02/1995 03/02/1995
65
SHR
WW2.$DPTNXB Bkup-dev ptns for reports
03/02/1995 03/02/1995
63
SHR
WW2.$DPTNXO Old -dev ptns for reports
03/02/1995 03/02/1995
62
SHR
WW2.$DPTNXR Rcvr-dev ptns for reports
03/02/1995 03/02/1995
70
SHR
WW2.$EPTNX
01/25/1995 07/23/1996
22
SHR
WW2.$EPTNX2
02/10/1995 03/02/1995
25
SHR
WW2.$FPTNX
01/24/1995 07/24/1996
11
SHR
WW2.$PFKS$
12/16/1994 11/11/1996
45
SHR
WW2.$PFKSUB$
12/16/1994 11/11/1996
98
SHR
WW2.$PTNX1
01/25/1995 04/03/1995
10
SHR
WW2.$PTNX2
03/02/1995
10
SHR
WW2.$T921215 TIMESHEET DATA
08/22/1994 08/22/1994
155
SHR
WW2.$T931215 TIMESHEET DATA
08/22/1994 08/22/1994
155
SHR
WW2.$T940215 TIMESHEET DATA
08/22/1994 08/22/1994
155
SHR
This panel (Figure 4-12) is displayed if a ROSCOE prefix was entered in the previous panel
(E.G. WW2.) or if a PDS dataset was entered without a member that had previously been
specified.
One of the following actions must be taken:
•
•
•
•
Select a member for processing by typing an S in front of it.
Select a member to Browse by typing a B in front of it.
Select a member to Edit by typing an E in front of it.
Return to the previous panel by pressing the PF3/PF15 keys.
In addition, the selection list can be searched by using the LOC primary command
followed by the search argument. The command LOC JCL will reposition the display to
start with the first line that contains the string JCL. Pressing the PF5 key will repeat the
LOC command.
Establishing the Batch Connect Environment
The Setup Menu for Batch Connect under ROSCOE is shown below in Figure 4-13 on
page 4-26. The Setup screens allow the user to customize the Batch Connect
environment. Additional STEPLIB datasets can be specified and the Xpediter required
datasets can be customized. As part of the Xpediter install, system defaults will be
initialized for each of these categories. Each user can further customize the environment
using this setup facility. Except for the session log and script files, selecting the desired
option will display a screen that allows modification to both user overrides and the
system defaults (for the specific user only). The PROCLIBS option allows the user to
specify an additional dataset that Xpediter should use in resolving procedures.
4-26
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure 4-13. Setup Menu Screen For Batch Connect Under ROSCOE
--------------------------- XPEDITER/ROS - SETUP MENU -----------------------
OPTION ===>
1 LOADLIBS
- Application load module libraries
2 DDIO
- DDIO files
3 INCLUDES
- Test script libraries
4 PROCLIBS
- Proclibs to search to expand procedures
5 LOG
- Session log dataset disposition
6 SCRIPT
- Test script dataset disposition
C CODE COVERAGE- Code Coverage Setup Options
A ALL
- Display all of the above in succession
Press ENTER to process or enter END command to terminate
Converting and Submitting the JCL
When JCL processing is completed, the job steps in the specified JCL are displayed on the
Select Job Step screen as shown below in Figure 4-14:
Figure 4-14. Select Job Step Screen for Batch Connect Under ROSCOE
------------------------- XPEDITER/ROS - SELECT JOB STEP ----- ROW 1 TO 9 OF 20
COMMAND ===>
SCROLL ==> CSR
Line Commands:
Primary Commands:
I - Interactive Testing
Edit
- Display Converted Selected Steps
U - Unattended Testing
END
- Exit Without Processing
IC - Interactive Code Coverage PROcess - Submit and STatus
UC - Unattended Code Coverage SEtup
- Setup Work Datasets
SUBmit - Convert Selected Steps and Submit
blank - Reset I/U/C
STatus - Display Status of Submitted job(s)
Roslib:
WW2.JCL
PROGRAM
INITSCR
STEPNAME
PROCNAME
PROCSTEP
EXEC PGM
------------------------- --------------------------------------------------
__ GENLABEL
________ XMULTI
MULTI
STEP1
__ SORTMSTR
________ XMULT1
MULT1
STEP2
__ PRINTCHK
________ XMULT1
MULT1
STEP3
__ IDCAMS
________ XMULT1
MULT1
STEP4
__ TRIIMSM
________ XMULT1
MULT1
BATCHDLI
__ TRIBMP
________ XMULT1
MULT1
BATCHIMS
__ DFSRRC00
________ XMULT1
MULT1
DB2DLI
__ PQ1CPINQ
________ XMULT1
MULT1
CICSDLI
__ TRIMAIN
________ XMULT1
MULT1
XBATCONI
This screen is used two ways:
1. Use the I, U, IC, or UC line commands to specify how you want each job step to
execute, in interactive or unattended mode. The JCL will be converted to run with
Batch Connect under ROSCOE in the specified execution mode.
2. Use the PROCESS or SUBMIT primary command to convert and submit the JCL, the
EDIT command to view or edit the JCL, the SETUP command to access and change
the Batch Connect under ROSCOE environment, the STATUS command to display
the status of submitted jobs, or the END command to exit.
Getting Started
4-27
For example, a completed Select Job Step screen is shown in Figure 4-15:
Figure 4-15. Completed Select Job Step Screen for Batch Connect Under ROSCOE
------------------------- XPEDITER/ROS - SELECT JOB STEP ----- ROW 1 TO 9 OF 20
COMMAND ===>
SCROLL ==> CSR
Line Commands:
Primary Commands:
I - Interactive Testing
Edit
- Display Converted Selected Steps
U - Unattended Testing
END
- Exit Without Processing
IC - Interactive Code Coverage PROcess - Submit and STatus
UC - Unattended Code Coverage SEtup
- Setup Work Datasets
SUBmit - Convert Selected Steps and Submit
blank - Reset I/U/C
STatus - Display Status of Submitted job(s)
Roslib:
WW2.JCL
PROGRAM
INITSCR
STEPNAME
PROCNAME
PROCSTEP
EXEC PGM
------------------------- --------------------------------------------------
I_ GENLABEL
________ XMULTI
MULTI
STEP1
XPTSO
__ SORTMSTR
________ XMULT1
MULT1
STEP2
IC PRINTCHK
________ XMULT1
MULT1
STEP3
XPTSO
__ IDCAMS
________ XMULT1
MULT1
STEP4
UC TRIIMSM
________ XMULT1
MULT1
BATCHDLI
XPBATCH
__ TRIBMP
________ XMULT1
MULT1
BATCHIMS
__ DFSRRC00
________ XMULT1
MULT1
DB2DLI
__ PQ1CPINQ
________ XMULT1
MULT1
CICSDLI
__ TRIMAIN
________ XMULT1
MULT1
XBATCONI
Line Commands
I (Interactive) testing
Selects the step to run in interactive mode.
U (Unattended) testing
Selects the step to run in unattended mode.
IC (Interactive Code Coverage) testing
Selects the step to run in interactive mode (with Code Coverage active).
UC (Unattended Code Coverage) testing
Selects the step to run in unattended mode (with Code Coverage active).
blank (Reset I/U/C)
Blank the line command area and press Enter to remove an I, I/C, U, or U/C line
command set on a job step.
Note:
If a job step cannot be resolved during JCL processing, the program name will be
preceded by a question mark (?) and no line command can be used.
Primary Commands
Edit
Accesses a controlled RPF edit facility. The JCL is automatically converted and
displayed on the controlled RPF edit screen. You can view and confirm the JCL
conversion and make additional modifications to the converted JCL. However, the
changes made to the converted JCL will not be saved when you CANCEL or PF3
(END) from the edit screen.
You can submit the JCL from the edit screen using the SUBMIT command.
END
Exits without converting the JCL, saving any modifications, or submitting the job
and returns you to the Process JCL screen.
4-28
Xpediter/TSO and Xpediter/IMS PL/I User Guide
PROcess
Converts the steps selected by the I and U line commands to Batch Connect under
ROSCOE steps and submits the JCL. It then automatically displays the status screen
to allow monitoring the job’s process.
SEtup
Displays the Setup Menu from which you can select to view and change the job card
information and library information, such as the DDIO file (XPSL000n) and the
SCRIPT file (XINCLUDE).
SUBmit
Converts the steps selected by the I, IC, U, and UC commands to Batch Connect
under ROSCOE steps and submits the job. A job submitted with the SUBMIT
command is not automatically connected. To connect to a job submitted with the
SUBMIT command, you must use the CONNECT or STATUS command.
Note:
While the job is running, you can continue using your terminal.
STatus
Displays the status of a job. You can connect to the job from the Status screen.
The fields on the Select Job Step screen are:
Dataset/Roslib
This field is pre-filled with the dataset name or ROSCOE library name of the JCL
being processed.
PROGRAM
The name of the program to be tested. The program name does not necessarily match
the EXEC PGM name.
INITSCR
The member name of the script in the INCLUDE library specified on the Setup panel.
The INITSCR field can be typed over to specify a test script member which can be
processed at the beginning of a debugging session.
STEPNAME
The job step name.
PROCNAME
The in-stream or cataloged procedure name.
PROCSTEP
The step name within the called procedure.
EXEC PGM
The name of the EXEC program that is executed for the step. XPTSO if I (Interactive)
or IC (Interactive Code Coverage) was specified for the step. XPBATCH if U
(Unattended) or UC (Unattended Code Coverage) was selected for the step. The field
is left blank if the name is the same as the one entered in the PROGRAM field.
Connecting to a Job
When you use the PROCESS command to submit the job, the job is submitted and the
status screen is displayed.
When you use the SUBMIT command to submit the job, the STATUS command must then
be used to connect to the job.
Getting Started
4-29
STATUS Command
The STATUS command is used to display the Status screen containing a list of the jobs in
the system.
The ATTACH line command on the Status screen is used to connect to a job and display
the source of each job step for which the I (Interactive) command was specified.
Although no message is generated when a job is ready to attach, it is safe to assume that
when a job is no longer using CPU time, that job is ready to attach.
Connection Security Check
Connection can be made to any job, including production jobs, as long as your site
security grants the authority. The Batch Connect facility is shipped with a default
security exit routine that allows connection to a job if the JOBNAME, without the last
character, matches the TSO ID where the STATUS panel is accessed. When a connection
cannot be made, the message CANNOT CONNECT... is issued.
The site installer can customize the security exit routine to tailor the security level for
certain groups or individuals.
Editing the JCL
There are two points at which the Batch Connect facility allows you to edit your JCL.
1. Primary editing is available by entering the EDIT primary command on the Process
Execute JCL screen. A controlled RPF edit facility session is invoked and the specified
JCL is displayed. If your site security permits, changes will be saved to the original
JCL when the edit session ends.
2. Secondary editing is available by entering the EDIT primary command on the Select
Job Step screen. A controlled RPF edit facility session is invoked and a temporary
copy of the JCL is displayed. JCL statements for the steps selected for testing, using
the I (Interactive) or U (Unattended) line commands, are already converted when the
edit screen is displayed.
Note: If you have selected a step that uses the IMS batch region controller program, the
Xpediter/TSO TEST command will display ???????? as the program name. It is not
necessary to replace the question marks with the name of the program you want
to debug. When the job is submitted, Xpediter/TSO will use the step’s PARM
information to determine the name of the program.
After editing is complete, you can submit the job from this screen with the RUN or
SUBMIT command.
Note:
Entering END (PF3) or CANCEL returns to the Select Job Step screen without
saving the changes. To save the converted JCL, use the normal ROSCOE SAVE,
UPDATE, or EXPORT commands. The saved JCL can be submitted at any time
with the SUBMIT command.
Figure 4-16 on page 4-30 shows an example of the Edit screen. In this example, Step1 is
converted to run in interactive mode because the I line command was entered next to the
job step on the Select Job Step screen.
4-30
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure 4-16. Edit Screen for Batch Connect Under ROSCOE
> ----------Use Your Normal PF Keys to SCROLL - Press PF3/15 TO END-----------
> AWS(BCM.@@XPJOB1)
SCRL FULL COLS 00001 00072 PGM(X77.XBATEDT) A<@XP1@>4
>
<...+....1....+....2....+....3....+....4....+....5....+....6....+....7..
...... ================================ T O P =================================
001000 //ASJRNS1Z JOB (ASJRNS1,298),'MULTISTEP',MSGLEVEL=(1,1),
002000 //
MSGCLASS=X,NOTIFY=ASJRNS1,TIME=(,30),GROUP=$$PP
002001 //*
002002 //@COMPXT@ EXEC PGM=IEFBR14
002003 //*
002004 //XPOUT
DD DISP=(NEW,PASS),DSN=&&XPLOG,
002005 //
UNIT=DISK,
002006 //
SPACE=(TRK,(15,5))
002007 //*
003000 //STEP1
EXEC PGM=XPTSO,REGION=512K,
004000 // PARM='ATLCTLMTNPAC'
004001 //XDYNAMIC DD DISP=(NEW,DELETE),
004002 //
UNIT=VIO,
004003 //
DCB=(RECFM=U,DSORG=PO,BLKSIZE=32760),
004004 //
SPACE=(CYL,(5,0,10))
004005 //STEPLIB DD DISP=(SHR,PASS),DSN=*.XDYNAMIC,VOL=REF=*.XDYNAMIC
004006 //
DD DISP=SHR,DSN=AXPTSO.XPPROD.CUSTLOAD
General Information About Batch Connect
Testing Multiple Job Steps
The Batch Connect facility makes system testing easier for multiple step jobs by
providing the capability of intercepting running batch applications and starting
interactive debugging sessions. To understand how the facility works, consider the
environment in which batch applications are executed.
Batch applications are processed by submitting jobs through JCL statements. A job can be
simple or complex. It can consist of a single step or multiple steps that call in-stream and
cataloged procedures. An example of a multiple step job is one that creates input control
cards in the first step, processes the transaction file in the second step, and updates the
master file in the third step.
In Batch Connect under ROSCOE interactive mode, to debug a specific step in a job with
multiple steps may require that you unit test the step by creating the necessary files and
establishing the appropriate conditions to simulate that the previous steps were
executed. You may also have to write a driver or stub routine to simulate the logic state
that was set prior to reaching the step you want to test. This requires extensive planning
and setup before debugging can begin.
Using the Batch Connect facility, you do not need to prepare a unit testing environment.
When a job is submitted, steps that are selected for unattended testing execute normally.
When a step is selected for interactive testing, Batch Connect under ROSCOE gains
control and connects the batch address space to a VTAM terminal. In effect, you are
presented with an online debugging session that reads commands from and writes results
to the screen while the program is actually executing in the batch region.
Batch Connect under ROSCOE releases control when you resume execution by entering
the GO command from the last logical statement in the program. Execution is passed to
subsequent steps until an end-of-job is encountered.
JCL Conversion
Job steps marked with the I, IC, U, or UC line command on the Select Job Step screen are
changed to Batch Connect under ROSCOE steps in the JCL and generated to a temporary
file. JCL conversion is as follows:
Getting Started
4-31
1. Batch Connect under ROSCOE work file DDs (XPSL000n, XPIN, XDYNAMIC,
XINCLUDE, XPOUT, XPSHOW, XPHELP, XPSCRIPT) are inserted.
2. If a STEPLIB exists in the user’s JCL, the following concatenations are generated:
– XDYNAMIC
– From the SETUP screen, option 1, the libraries specified on the Base Products
screen
– Product-specific libraries
• Xpediter/TSO
• CSS
• Code Coverage (if installed)
– User load libraries from the JCL’s STEPLIB
3. If a STEPLIB does not exist in the user’s JCL, a STEPLIB is generated with the
following concatenations:
– XDYNAMIC
– From the SETUP screen, option 1, the libraries specified on the Base Products
screen
– Product-specific libraries
• Xpediter/TSO
• CSS
• Code Coverage (if installed)
– JOBLIB libraries, if applicable
Batch Connect under ROSCOE looks in the STEPLIB when attempting to intercept a
program for debugging and analysis.
4. EXEC PGM= is updated as follows to point to the appropriate Batch Connect under
ROSCOE module name.
– EXEC PGM=XPTSO (for interactive mode)
– EXEC PGM=XPBATCH (for unattended mode).
5. XPIN control cards are built. The control cards tell Xpediter what environment and
program to test.
Using Batch Connect Under ROSCOE Commands in Batch Connect Mode
Interactive Debugging
When you use the I (INTERACTIVE) line command to select a job step for interactive
debugging, all Batch Connect under ROSCOE commands except the following can be
used:
ALLOC
SET PFnn
You can also use script files in interactive mode. However, keep in mind that only
primary commands can be used in a script file.
• An initial script member name can be specified in the INITSCR field on the Select Job
Step screen or you can edit your execution JCL and use the INITSCR parameter on the
TEST or INTERCEPT commands.
• A test script member name can be specified by using the INCLUDE command on the
command line during the test session.
• A post script member name can be specified by editing your execution JCL and using
the POSTSCR parameter on the TEST or INTERCEPT commands.
• An abend script is not applicable in interactive mode.
4-32
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Intercepting Abends in Batch Connect Mode
Abend processing in a Batch Connect interactive session behaves the same as an
Xpediter/TSO interactive session. When an abend occurs, a message is displayed at the
top of the screen informing you that you can use the AA SNAP command (if you have
Abend-AID Release 8.0.4 or above installed at your site) or the LOG command to view
information about the abend. See Chapter 6, “Handling Run-Time Errors” for more
information.
In an unattended debugging session, the SET ABENDSCR command can be used in the
job stream to specify the member containing the commands to be executed when an
abend occurs. For example, in the following SET ABENDSCR command,
SET ABENDSCR TRIMABN1
TRIMABN1 is a member of a partitioned dataset allocated to the XINCLUDE DD.
The commands specified in an abend script are executed following the abend. This allows
you to specify unique abend scripts containing special commands to be executed at
different points in your code if an abend occurs.
For information about using abend scripts, refer to “Test Session Management Using
Scripts” on page 4-42.
In an interactive or unattended session, the following information is written to the
session log when an abend occurs:
• Normal abend output
• Source line where the abend occurred
• A display for each field referenced in the source line where the abend occurred.
Usage Note
Even if your application programs would normally find any required Language
dependent run-time subroutines (including LE - Language Environment) without being
included in the JOBLIB/STEPLIB of the batch JCL (usually from the LINKLIST or (E)LPA),
the libraries must still be specified as part of the test session setup. This will ensure that
Xpediter’s Task Library will be properly configured. For Batch Connect, the preferred
method is to include the run-time libraries in the STEPLIB DD statement concatenations
of the JCL step(s) that are being intercepted.
Starting a Multi-Batch Session
The Multi-Batch Facility (MBF) enables you to connect to a submitted batch job, see the
source, and manipulate data as it executes in its native environment. It differs from the
Batch Connect facility in the following ways:
• Multiple jobnames, stepnames, and programs can be selected for debugging by
Xpediter with a single Multi-Batch request.
• By default, Multi-Batch requests are persistent until they are deleted by the owner of
the request, the user who created the request, or an administrator.
• Each Multi-Batch request can be inactivated, activated, or activated for only a
specified number of intercepts.
• Users submit their current test or production JCL. If the jobname, stepname, and
program matches an active Multi-Batch request, Xpediter automatically intercepts
the program and begins the debugging session (unattended test) or provides the user
with an opportunity to connect to the batch job and interactively debug it. The
program must be running on the same LPAR as the Multi-Batch Facility, unless the
Multi-Batch Communication Task is active on the current LPAR and the LPAR(s) on
which the test will run.
Getting Started
Note:
4-33
The LIBRARY keyword of the DSN command (used in DB2 Batch programs that
use IKJEFT01 to establish a connection to DB2) is not supported. If your program
is in the library indicated by the LIB keyword, that library must be specified in
the STEPLIB or the Xpediter SETUP library list.
To debug your programs with Xpediter/TSO’s Multi-Batch facility in unattended or
interactive batch, follow the steps listed below:
Note:
If the installer specified B for the keyword MULTI-BATCH/BATCH_CONNECT in
the CMSC PARMLIB member, the Batch menu will not be displayed in the
following step, and Xpediter/TSO’s Multi-Batch Facility will not be available. For
more information, contact the installer or refer to the appendix entitled
“Establishing Parameter Values for Xpediter/TSO” in the Xpediter/TSO and
Xpediter/IMS Installation and Configuration Guide.
1. Access the facility: Type option 3 (BATCH) on the Xpediter/TSO Primary Menu and
press Enter to access the Batch menu (Figure 4-4 on page 4-11). Type option 2 (MultiBatch) on the Batch menu and press Enter to access the Multi-Batch Facility. The
Multi-Batch screen (Figure 4-17 on page 4-33) is displayed.
Note:
If your site is not licensed for Xpediter/Code Coverage, the C, T, and F
options will not be displayed on the Multi-Batch screen.
Figure 4-17. Multi-Batch Screen
-------------------- Xpediter/TSO 17.02.00 - Multi-Batch -------- Row 1 of 6
COMMAND ===>
SCROLL ===> CSR
Initial Test Environment Data will be taken from profile: DEFAULT
Line Commands:
Test Type:
A - Activate
An - Activate for n times
I - Interactive testing
D - Delete entry I - Inactivate
U - Unattended testing
S - Single Profile Override
Followed optionally by:
Primary Commands:
C - Code Coverage
SEtup - Setup profile DEFAULT
T - Code Coverage, plus TDO
STatus - Display status of submitted job(s)
F - System Flow (F, CF or TF)
Press ENTER to Process or Enter END Command to Terminate
(Y=Yes)
Test
Initial DB2
CMD Status Type Owner
Jobname
Stepname Program
Script
DSN IMS
__
___
________ ________ ________ ________ ________ N
N
__
A
I__
PFHABC0 PFHABC0B ******** TRIMAIN_ ________ N
N
__
A
I__
PFHABC1 PFHABC1I ******** TRIMPP__ ________ N
Y
__
A
I__
PFHABC1 PFHABC1D ******** TRIDB28F DYNAMIC_ Y
N
__
A
I__
PFHABC0 PFHABC0* TRIMAIN* TRIMAIN* TRIMAIN_ N
N
__
A
IT_
VFHABC0 VFHABC0* LOGTASK_ SUM***** ________
******************************* Bottom of data ********************************
2. Create Multi-Batch entries: Type values for owner (if authorized), jobname,
stepname, program, and (optionally) initial script in the corresponding fields.
Indicate whether the test will be interactive or unattended in the Test Type field and
press Enter. An entry will be created and stored in the MBF staging VSAM file.
Using Multi-Batch Entries
The following sections describe the primary commands, line commands, and screen
fields used on the Multi-Batch screen.
Note: If the CMD field contains a ? then an error has occurred on that line. Correct the
error and clear the ? from the CMD field to proceed.
4-34
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Line Commands
A - Activate
Makes the Multi-Batch request active for an unlimited number of intercepts (the
default).
An - Activate for n times
Makes the Multi-Batch request active for only the specified n number of intercepts,
which can be as many as 9. When n intercepts have occurred, the request is
automatically made inactive.
D - Delete entry
Deletes a single Multi-Batch request. The request is marked deleted on the panel and
is deleted from the Multi-Batch VSAM file.
I - Inactivate
Makes the Multi-Batch request inactive, so it no longer intercepts the designated job.
If a request has been activated for n times, making it inactive also removes that
intercept count.
S - Single Test Profile Override
Invokes Xpediter setup panels to change the Test Environment Data for that single
Multi-Batch request. Each Multi-Batch request has associated with it Test
Environment Data (profile information) that is stored with the request on the MultiBatch VSAM file. When a Multi-Batch request is first written to the VSAM file, the
data is taken from the Xpediter profile indicated at the top of the panel. If you want
to change this Test Environment Data, use the S line command. This command
changes only the selected request. The Xpediter profile is not changed.
Primary Commands
SEtup
Invokes Xpediter setup panels. Any changes made will be used for future Multi-Batch
requests.
STatus
Displays status of submitted jobs. Connect/Attach can be done from the Status panel.
Status can be invoked anywhere in the product for the convenience of the user.
Input Fields
Create Multi-Batch entries by typing values in the appropriate input fields as follows:
Test Type
The first character of the Test Type is required and indicates whether the Xpediter
test is to be interactive or unattended. Allowable values are:
– I - Modify JCL step to invoke Xpediter in an interactive mode
– U - Modify JCL step to invoke Xpediter in unattended mode.
The second and third characters of the Test Type are optional and are only displayed
on the Multi-Batch panel if the site is licensed for Code Coverage. To use them, the
required data (Repository name, etc.) must be present in the record. The allowable
values are:
–
–
–
–
–
C - Add Code Coverage Collection
CF - Add Code Coverage Collection and System Flow
T - Add Code Coverage with Test Data Optimization (TDO) collection
TF - Add Code Coverage with TDO and System Flow collection
F - Add System Flow collection.
Getting Started
4-35
Owner (if authorized to modify)
The owner of the Multi-Batch request is the TSO userid of the person submitting the
batch job matching the request. If entered, it may not be wildcarded. If left blank, it
will default to the TSO userid of the person creating the Multi-Batch request. If the
owner is different from the user who creates the request, then the Test Type must be
UC, UT, UF, UCF, or UTF. There are two types of users of the Multi-batch Facility:
administrators and non-administrators. The administrative user will see all users’
Multi-Batch requests that exist in the Multi-Batch VSAM file. In addition, an
administrative user can delete any or all requests. The non-administrative user will
see any request whose owner matches their TSO userid in addition to any request
that they create, and therefore can only delete these requests. See the Xpediter/TSO and
Xpediter/IMS Installation and Configuration Guide for information on granting the
administrator and owner modification privilege.
Jobname
The Jobname field contains the name of the step(s) you want the Multi-Batch Facility
to intercept. This is a required field. If DB2 DSN and/or IMS is set to Y, this field
must be fully qualified - no wildcard characters are allowed. If neither field is set to
Y, Jobname may be wildcarded by supplying leading asterisk(s), embedded asterisk(s),
or trailing asterisk(s). An embedded asterisk represents a single character. A trailing
asterisk represents one or more characters. Jobname, Stepname, and Program cannot
all be fully wildcarded. The following are examples of valid jobnames:
–
–
–
–
–
–
* - Matches all jobnames
TEST - Matches only jobs whose jobname is TEST
*EST - Matches four character jobnames, for example BEST, REST, etc.
TEST* - Matches jobs whose jobnames begin with TEST, for example TESTJOB1.
T*ST - Matches four-character jobnames, for example TOST.
T*ST* - Matches four- to eight-character jobnames containing T, S, and T in
positions 1, 3, and 4 respectively.
Stepname
The Stepname field contains the name of the step(s) you want the Multi-Batch
Facility to intercept. This is a required field. This field may be wildcarded by
supplying leading asterisk(s), embedded asterisk(s) or trailing asterisk(s). An
embedded asterisk represents a single character. A trailing asterisk represents one or
more characters. Jobname, Stepname, and Program cannot all be fully wildcarded.
The following are examples of valid stepnames:
–
–
–
–
–
–
* - Matches all stepnames
TEST - Matches only jobs whose stepname is TEST
*EST - Matches four character stepnames, for example BEST, REST, etc.
TEST* - Matches jobs whose stepnames begin with TEST, for example TESTJOB1.
T*ST - Matches four-character stepnames, for example TOST.
T*ST* - Matches four- to eight-character stepnames containing T, S, and T in
positions 1, 3, and 4 respectively.
Program
The Program field contains the name of the program(s) you want the Multi-Batch
Facility to intercept. This is a required field. This field may be wildcarded by
supplying leading asterisk(s), embedded asterisk(s) or trailing asterisk(s). An
embedded asterisk represents a single character. A trailing asterisk represents one or
more characters. Jobname, Stepname, and Program cannot all be fully wildcarded.
The following are examples of valid program names:
–
–
–
–
* - Matches all programs
TEST - Matches only jobs whose program name is TEST
*EST - Matches four-character program names, for example BEST, REST, etc.
TEST* - Matches jobs whose program names begin with TEST, for example
TESTJOB1
– T*ST - Matches four-character program names, for example TOST
4-36
Xpediter/TSO and Xpediter/IMS PL/I User Guide
– T*ST* - Matches four- to eight-character program names containing T, S, and T in
positions 1, 3, and 4 respectively.
Initial Script
The optional Initial Script field is used to specify an initial set of Xpediter commands
to be executed before the Source display screen appears at the start of the test session.
This field cannot be wildcarded.
A test script must be a member of an INCLUDE library that is listed on the Test Script
Libraries screen (Test Setup Option 3).
DB2 DSN/IMS
These fields indicate the testing of DB2 batch (using DSN connect) jobs and IMS
batch jobs (executing the IMS pre-preprocessor). They are initialized to N (No). Since
a DB2 DSN batch job typically executes PGM=IKJEFT01 and an IMS batch job usually
executes PGM=DFSRRC00, the Y indicator instructs Multi-Batch to look for these
programs and not the entry in the Program field on that line. When Y is specified,
the Program name and Jobname must be fully specified, no generics or wildcards are
allowed.
The Program name field contains the name of the program that will be invoked in
the DB2 or IMS environment.
Notes:
• When the IMS field is set to Y and the DB2 DSN field is set to Y, the second field of
the PARM on the EXEC card must be DSNMTV01 (the DB2 processor for IMS).
• When the IMS field is set to Y and the DB2 DSN field is set to N, the second field of
the PARM on the EXEC card must match the name in the Program field.
Output Fields
The Multi-Batch screen includes the following display-only fields:
Owner (if not authorized to modify)
The owner of the Multi-Batch request is the TSO userid of the person creating the
Multi-Batch request. This is a display-only field and cannot be entered or altered.
There are two types of users of the Multi-batch Facility: administrators and nonadministrators. The administrative user will see all users’ Multi-Batch requests that
exist in the Multi-Batch VSAM file. In addition, an administrative user can delete any
or all requests. The non-administrative user will see just their requests on the MultiBatch screen and therefore can only delete their own requests. See the Xpediter/TSO
Installation and Configuration Guide for information on granting the administrator
privilege.
Status
This field displays both the status of the last action taken against an entry and the
overall status of the entry. It is a display-only field and cannot be overtyped.
Potential values for the first three characters are:
–
–
–
–
DEL - The record has been deleted from the Multi-Batch VSAM file.
ADD - The record has been added to the Multi-Batch VSAM file.
UPD - The record has been updated in the Multi-Batch VSAM file.
REB - The S line command was used, and the record has been rebuilt (using the
altered variables) in the Multi-Batch VSAM file.
Potential values for the last character are:
– I - The record is inactive and ineligible for intercept.
– A - The record is active and eligible for intercept.
– n - The record is limited to n number of intercepts, then becomes ineligible for
intercept. Valid values are 1 through 9.
Getting Started
4-37
Starting a Session with Batch JCL
This section discusses how to manually change your execution JCL to invoke an
Xpediter/TSO debugging session in unattended or interactive (Batch Connect) batch
modes. No file allocation utility is required and you can even use your production JCL for
IMS/DB, BTS, and DB2 programs.
To debug your program with Xpediter/TSO in unattended or interactive batch, follow the
steps listed below:
1. Retrieve your standard TSO program execution JCL.
2. Follow the instructions in member BATCHTSO from the SLXTSAMP dataset and make
the appropriate changes to the JCL.
3. Submit the job. If you are running unattended batch, the test results will be saved in
the XPOUT file. If you are using interactive batch, you must connect to the job to
complete testing.
Figure 4-18 on page 4-37 shows JCL that runs a simple job without Xpediter/TSO. Figure
4-19 on page 4-38 is an example of the JCL after it is modified to run with Xpediter/TSO.
For this simple example, the session log, script, and document datasets are printed, then
deleted. The actual modifications to your JCL will vary from those shown. Refer to
“Setting Up the Batch JCL” on page 4-39 for an explanation of the modifications.
Figure 4-18. JCL to Run a Program Without Xpediter/TSO
//MYJOB
JOB (ACCOUNTING),
//*
NOTIFY=TSOUSER,
//
CLASS=A,MSGCLASS=A,
//
MSGLEVEL=(1,1),TIME=(,10)
//*
//* RUN TRIMAIN IN BATCH WITHOUT XPEDITER/TSO
//*
//MYTEST
EXEC PGM=TRIMAIN
//STEPLIB DD DSN=USER.LOADLIB,DISP=SHR
//*
//*
ALLOCATE ALL INPUT AND OUTPUT DDNAMES
//*
//INFILE
DD DSN=SYS2.XPEDITER.V16R05M00.SLXTSAMP(TRIDATA),
//
DISP=SHR
//OUTFILE DD SYSOUT=(*)
//SYSOUT
DD SYSOUT=(*)
4-38
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure 4-19. JCL to Run a Program With Xpediter/TSO
//MYJOB
JOB (ACCOUNTING),
//*
NOTIFY=TSOUSER,
//
CLASS=A,MSGCLASS=A,
//
MSGLEVEL=(1,1),TIME=(,10)
//*
//* RUN TRIMAIN IN INTERACTIVE BATCH WITH XPEDITER/TSO
//*
//CREATE
EXEC PGM=IEFBR14
//XPSCRIPT DD DISP=(NEW,PASS),
//
UNIT=SYSDA,
//
SPACE=(TRK,(2,2)),
//
DSN=&&XPSCR
//XPDOC
DD DISP=(NEW,PASS),
//
UNIT=SYSDA,
//
SPACE=(TRK,(2,2)),
//
DSN=&&XPDOC
//XPOUT
DD DISP=(NEW,PASS),
//
UNIT=SYSDA,
//
SPACE=(TRK,(2,2)),
//
DSN=&&XPLOG
//MYTEST
EXEC PGM=XPTSO,REGION=4098K
//XDYNAMIC DD DISP=(NEW,DELETE),
//
UNIT=SYSDA,
//
DCB=(RECFM=U,BLKSIZE=BBBBB,DSORG=PO),
//
SPACE=(CYL,(5,1,10))
//STEPLIB DD DISP=(OLD,DELETE),DSN=*.XDYNAMIC,VOL=REF=*.XDYNAMIC
//
DD DSN=SYS2.XPEDITER.V16R05M00.LOADLIB,DISP=SHR
//
DD DSN=CPWR.CSS.LOADLIB,DISP=SHR
//
DD DSN=YOUR.USER.LOADLIB,DISP=SHR
//*
//*
ALLOCATE ALL INPUT AND OUTPUT DDNAMES
//*
//INFILE
DD DSN=SYS2.XPEDITER.V16R05M00.SLXTSAMP (TRIDATA),
//
DISP=SHR
//OUTFILE DD SYSOUT=(*)
//SYSOUT
DD SYSOUT=(*)
//XPSL0001 DD DISP=SHR,DSN=COMMON.DDIO
//XINCLUDE DD DISP=SHR,DSN=SYS2.XPEDITER.V16R05M00.INCLUDE
//XPHELP
DD DISP=SHR,DSN=SYS2.XPEDITER.V16R05M00.HELP
//XOPTIONS DD DISP=SHR,DSN=SYS2.XPEDITER.V16R05M00.XOPTIONS
//XPSCRIPT DD DISP=(MOD,PASS),DSN=&&XPSCR
//XPDOC
DD DISP=(MOD,PASS),DSN=&&XPDOC
//XPOUT
DD DISP=(MOD,PASS),DSN=&&XPLOG
//XPSHOW
DD DISP=(NEW,DELETE),UNIT=SYSDA,
//
DCB=(RECFM=FB,BLKSIZE=6160,LRECL=80),
//
SPACE=(TRK,(2,2))
//XPIN
DD *
XPED TSO
TEST TRIMAIN
//PRINTLOG EXEC PGM=IEBGENER,COND=EVEN
//SYSPRINT DD
SYSOUT=*
//SYSIN
DD
DUMMY
//SYSUT1
DD
DISP=(OLD,PASS),DSN=&&XPLOG
//SYSUT2
DD
SYSOUT=*
//*
//PRINTDOC EXEC PGM=IEBGENER,COND=EVEN
//SYSPRINT DD
SYSOUT=*
//SYSIN
DD
DUMMY
//SYSUT1
DD
DISP=(OLD,PASS),DSN=&&XPDOC
//SYSUT2
DD
SYSOUT=*
//*
//PRINTSCR EXEC PGM=IEBGENER,COND=EVEN
//SYSPRINT DD
SYSOUT=*
//SYSIN
DD
DUMMY
//SYSUT1
DD
DISP=(OLD,PASS),DSN=&&XPSCR
//SYSUT2
DD
SYSOUT=*
NOTE 1
NOTE 2
NOTE 3
NOTE 4
NOTE 5
NOTE 6
NOTE 7
NOTE 8
NOTE 9
Getting Started
4-39
Setting Up the Batch JCL
The numbers listed above in Figure 4-19 correspond to the following notes:
Notes:
1. TSO users should modify this to their TSO User ID.
2. Change to your site’s standard values.
3. Add this step before the step that executes your program. The CREATE EXEC step
creates the session log, script, and document datasets.
4. Change to PGM=XPTSO to run interactive batch. Change to PGM=XPBATCH to run
unattended batch. The region size may need to be increased. See “Displaying
Available Memory (REGION SIZE)” on page E-1 for region recommendations. Keep
the original parameter list, if any.
5. This DD statement creates a dynamic work area that Xpediter/TSO requires to
execute. Place it before the STEPLIB concatenation. This is a temporary PDS that will
be deleted when the job ends. Change the BLKSIZE to be equal to the largest
blocksize of any library in the STEPLIB concatenation for the test. This step is
required.
6. In the STEPLIB ddname, concatenate the Xpediter/TSO work dataset created by the
XDYNAMIC ddname at the beginning of STEPLIB. The Xpediter/TSO LOADLIB and
the CSS LOADLIB must also be in the STEPLIB concatenation.
7. Change to your user LOADLIB.
8. Specify your library.
9. Add the following nine ddnames after the last standard ddname. Make sure the
Xpediter/TSO ddnames are allocated to the correct dataset names.
XPSL000n DD
DDIO dataset that contains the source listing members of the compiled modules.
XINCLUDE DD
Optional script file (PDS) to be used with the INCLUDE, INITSCR, and POSTSCR
commands. This ddname can be omitted if your site does not support INCLUDE
scripts or if INCLUDE, INITSCR, and POSTSCR are not used. If the site-wide script
library is desired, it should be first in the concatenation.
XPHELP DD
Xpediter/TSO help dataset.
XOPTIONS DD
Enhanced FIND function parameters file.
XPSCRIPT DD
The generated script dataset. All Xpediter input commands are recorded in this
file. System responses are not recorded.
XPDOC DD
The document dataset. This dataset should only be utilized under the direction
of Xpediter Technical Support.
XPOUT DD
The output (session log file) from this job. If running an interactive batch job,
XPOUT must be directed to a dataset with DISP=MOD.
If you direct the output of XPOUT ddname to a dataset rather than to SYSOUT,
specify the disposition as MOD. The DCB attributes are:
DCB=(RECFM=VBA,LRECL=137,BLKSIZE=6854)
4-40
Xpediter/TSO and Xpediter/IMS PL/I User Guide
XPSHOW DD
A temporary work file used in processing Xpediter SHOW commands.
XPIN DD
Enter the commands to execute the test session. The first command must be
XPED with the appropriate environment parameter. Then, the TEST command
with the program name and any required parameters. When running an
interactive batch test, this is the only input required. The XPED and TEST
commands are described in the Xpediter/TSO and Xpediter/IMS Reference Manual.
If running unattended batch, the debugging commands follow the TEST
command. The debugging commands can be included as a command stream after
the TEST command, or a dataset containing the commands can be specified on
the TEST command. Refer to “Creating a Command Stream” below for more
information.
Usage Notes
1. If you are using a PROC, remember that JCL rules for PROCs prohibit the use of DD *
inline data streams. For that reason, each reference to XPIN should be coded:
//XPIN DD DUMMY
or
//XPIN DD DDNAME=SYSIN
or omitted entirely.
Then, in the actual JCL that invokes your new PROC, you must override the XPIN
ddname with your inline XPED and TEST (or INTERCEPT for BTS) commands.
When you execute the PROC, insert the //stepname.XPIN DD * statement in the
override JCL.
2. If you are using a job that checks condition codes or abends for recovery or follow-up
steps, be aware that Xpediter/TSO usually produces a condition code of zero
regardless of how the application program or Xpediter/TSO actually ends.
3. Even if your application programs would normally find any required Language
dependent run-time subroutines (including LE - Language Environment), without
being included in the JOBLIB/STEPLIB of the batch JCL (usually from the LINKLIST
or (E)LPA), the libraries must still be specified as part of the test session setup. This
will ensure that Xpediter’s Task Library will be properly configured. For manually
altered Batch JCL, you should include the run-time libraries in the STEPLIB DD
statement concatenations of the JCL step(s) that were altered to be intercepted.
Creating a Command Stream
Batch mode Xpediter/TSO reads in a command stream from the XPIN DD, performs the
debugging functions, and writes the results to the XPOUT DD. A command stream is a
predefined set of Xpediter/TSO commands stored in a PDS member or a sequential file, or
included as instream data.
The first step in creating a command stream is to specify the environment in which the
program is to be debugged. Enter the XPED command with the type of environment (for
example, TSO corresponds to the interactive STANDARD environment).
The next step is to specify the name of the program to be debugged. Enter the TEST
command along with the program name if the execution environment was specified as
BATCH or IMS. Enter the INTERCEPT command along with the program name if the
execution environment was specified as BTS.
Example 1:
Getting Started
4-41
XPED TSO
TEST TRIMAIN
Example 2:
XPED IMS
TEST TRIMAIN
Example 3:
XPED BTS
INTERCEPT TRIMAIN
The third step is to list all the debugging tasks to be performed during the batch
debugging session. Under the BATCH or IMS environment, you can enter other
Xpediter/TSO commands following the TEST command; however, you can also
alternatively execute a test script stored in a separate file.
All Xpediter/TSO commands must be entered in uppercase when creating a command
stream. At least one space is required to delimit the keyword from its value. Commands
can be entered on one line or on consecutive lines.
Specifying Multiple Debugging Sessions in One Job Stream
Although you cannot change environments during a debugging session, it is expected
that you will debug various programs, thus TEST or INTERCEPT can be used as many
times as necessary.
Multiple programs within the same environment can be debugged in one batch run. The
TEST command is used to specify the program to be debugged in batch mode. Any
number of debugging sessions can be run within a single job stream (except for IMS
debugging sessions). All Xpediter/TSO commands following a TEST command are
executed in relation to the program specified by the TEST command, until another TEST
or INTERCEPT command is encountered.
The INTERCEPT command is used to change module qualification. Any commands
entered following the INTERCEPT command and before another TEST, INTERCEPT, or
EXIT command are executed in relation to the program specified on the INTERCEPT
command.
For BTS debugging, only the XPED and INTERCEPT commands are allowed within a
command stream. All debugging session commands are included in a test script
associated with the program specified on the INTERCEPT command.
Creating Batch JCL for Xpediter/TSO Options
Database Support (Including IMS/DB and IMS/DB with DB2 Testing Under TSO)
To test your IMS/DB program with unattended or interactive batch, use the steps listed
below:
1. Retrieve your IMS/DB program execution JCL.
2. Copy the member BATCHIMS from the SLXTSAMP dataset and follow the
instructions in it.
3. If you are using a PROC, change the XPIN ddname to:
//XPIN DD DUMMY
4. When you are executing the PROC, insert the //stepname.XPIN DD * statement in the
override JCL.
For more information regarding the use of the //XPIN DD statement in a PROC, refer
to “Usage Notes” on page 4-40.
4-42
Xpediter/TSO and Xpediter/IMS PL/I User Guide
5. Submit the job. If you are running unattended batch, the test results will be saved in
the XPOUT file. If you are using interactive batch, you must connect to the job to
complete testing.
BTS Support
To test your BTS program with unattended or interactive batch, use the steps listed
below:
1. Retrieve your BTS program execution JCL.
2. Copy the member BATCHBTS from the SLXTSAMP dataset and follow the
instructions in it.
3. If you are using a PROC, change the XPIN ddname to:
//XPIN DD DUMMY
4. When you are executing the PROC, insert the //stepname.XPIN DD * statement in the
override JCL.
For more information regarding the use of the //XPIN DD statement in a PROC, refer
to “Usage Notes” on page 4-40.
5. Submit the job. If you are running unattended batch, the test results will be saved in
the XPOUT file. If you are using interactive batch, you must connect to the job to
complete testing.
DB2 Support
To test your DB2 program with unattended or interactive batch, use the steps listed
below:
1. Retrieve your DB2 program execution JCL.
2. Copy the member BATCHDB2 from the SLXTSAMP dataset and follow the
instructions in it.
3. If you are using a PROC, change the XPIN ddname to:
//XPIN DD DUMMY
4. When you are executing the PROC, insert the //stepname.XPIN DD * statement in the
override JCL.
For more information regarding the use of the //XPIN DD statement in a PROC, refer
to “Usage Notes” on page 4-40.
5. Submit the job. If you are running unattended batch, the test results will be saved in
the XPOUT file. If you are using interactive batch, you must connect to the job to
complete testing.
Test Session Management Using Scripts
A script is a predefined stream of Xpediter/TSO commands that can be used to:
1.
2.
3.
4.
Initialize a debugging session (initial script).
Execute a set of commands during the debugging session (test script).
Execute a set of commands at the end of a session (post script).
Execute a set of commands when an abend occurs in an unattended batch session
(abend script).
Scripts enable you to:
Getting Started
4-43
• Eliminate redundant keystrokes.
• Play back the commands established during a previous session.
• Run regression testing.
You create and maintain the scripts and the script libraries you use. A script library is a
partitioned dataset (PDS) that can be FB 80 (fixed block with a record length of 80) or a
VB 255 (variable blocked with a maximum record length of 255). If you use FB 80, only
the data in columns 1 through 72 is recognized.
If you intend to use a script during the test session, the script library must be
preallocated before the session begins. Use the SETUP command and select Option 3
(INCLUDES) on the Setup Menu to allocate the library, unless the script member is
contained in a site-wide library specified at installation time. Refer to “Saving and Using
Generated Scripts” on page 4-45 for steps on using a generated script.
Initial Scripts
An initial script is executed at the beginning of the debugging session or at the before
breakpoint of each module. It can be used to:
• Set initial PF key values.
• Specify Xpediter/TSO debugging session processing options with the SET command.
• Set initial breakpoints in modules.
In interactive mode, the initial script member name is specified in the Initial Script field
on the selected environment test screen.
In Batch Connect interactive or unattended mode, the initial script member name is
specified in the INITSCR field on the Select Job Step screen, or you can edit your
execution JCL and use the INITSCR parameter on the TEST or INTERCEPT command.
The Multi-Batch screen (Figure 4-17 on page 4-33) includes an optional Initial Script field
in which you can enter an initial script member name.
The ability to process SET commands before the program is loaded is the most useful
feature of the initial script. The following SET commands either configure Xpediter/TSO
or control the manner in which Xpediter/TSO loads programs:
SET CBLTRAP
SET DYNAMIC
SET EXCLUDE
SET STATIC
SET TRANSFER
The following commands determine the size of the session log and the way information
is represented.
SET HEXMODE
SET LOGSIZE
SET NONDISP
Refer to the Xpediter/TSO and Xpediter/IMS Reference Manual for further information
regarding the use of the SET command parameters.
Test Scripts
A test script is used to execute Xpediter/TSO debugging commands during a debugging
session. The commands in the test script are executed in the order they are read, as if
they had been entered serially from the terminal.
In interactive mode or Batch Connect interactive, use the INCLUDE command with the
test script member name at any time within the session to execute a test script command
stream.
4-44
Xpediter/TSO and Xpediter/IMS PL/I User Guide
In unattended batch, the test script member name is specified by using the INCLUDE
command in the JCL job stream.
In interactive mode, Xpediter/TSO automatically generates a test script of all the
commands entered during the debugging session. The generated file can be edited and
copied into a script library for later use when you want to duplicate the debugging
session. The generated test script is accessed by typing the SCRIPT command on the
command line of the Test screen after a debugging session. Refer to “Saving and Using
Generated Scripts” on page 4-45 for additional information.
Post Scripts
A post script is comprised of a command or set of commands that are executed when the
end of the program is encountered. The commands are effectively executed after the
debugging session is ended, but before the Xpediter/TSO environment is exited.
A post script has many purposes. For instance, it lets you display (PEEK) the value of
variables at the close of the debugging session and show the COUNT tallied on program
statements.
In interactive mode, a post script member name is specified in the Post Script field on the
selected environment test screen.
In Batch Connect interactive or unattended mode, a post script member name is
specified in the POSTSCR field on the Select Job Step screen, or by editing your execution
JCL and using the POSTSCR parameter on the TEST or INTERCEPT commands.
Note:
It is suggested that you use PEEK instead of KEEP in a post script.
Abend Scripts
An abend script is an Xpediter/TSO command or set of commands that are executed
when an abend occurs. You can use an abend script only when debugging in unattended
mode.
Use the SET ABENDSCR command in the JCL job stream to specify the abend script to be
executed when an abend occurs. The commands included in that script are executed
whenever an abend occurs until another SET ABENDSCR command is executed. Any
number of SET ABENDSCR commands can be included in a job stream.
Note:
It is suggested that you use PEEK instead of KEEP in an abend script.
Creating and Editing Scripts
In a script, the following must be observed:
• Commands cannot exceed 100 characters.
• Only one Xpediter/TSO command can be entered on a single line.
• A command can be continued beyond a single line without a continuation character.
• A quoted string must be contained on one line.
• Test scripts can be nested without limit by inserting additional INCLUDE commands
within the test script.
• Comment lines can be included by entering an asterisk (*) in column 1.
• When used within inserted code, the INCLUDE command is executed when the
inserted code is executed.
Scripts are extremely useful under certain debugging circumstances. For example,
suppose you end a debugging session knowing that at some later time you intend to
Getting Started
4-45
retest the program along the same lines. A script is an efficient way to quickly reproduce
that session without having to reenter the commands individually.
Saving and Using Generated Scripts
In interactive mode, Xpediter/TSO automatically generates a test script of all the
commands entered during the debugging session. The following steps will show you how
to save and use the script for later use when you want to duplicate the debugging session.
Option 1 - Batch Connect Under Xpediter/TSO
The following steps apply to Xpediter/TSO only:
1. When the debugging session is completed, the message Log and Script Created
appears in the upper right corner of the Test screen. Enter SCRIPT on the command
line of the Test screen.
2. Edit the displayed script according to the guidelines in “Creating and Editing Scripts”
on page 4-44.
3. Press PF3 to save the edited script.
4. On the Data Set Disposition Screen, enter C in the Process Option field to copy the
edited script to a partitioned dataset (PDS).
5. If you have already allocated a PDS for this purpose, enter the PDS name in the
DSNAME field of this screen and a name for the edited script in the Member Name
field. Press Enter and skip to Step 7. Otherwise, go to the next step.
6. If you have not allocated a PDS, you can do so at this time by entering a library name
in the DSNAME field of the screen and a name for the edited script in the Member
Name field. Press Enter and the New Dataset Allocation screen is displayed with the
dataset name you selected pre-filled in the Dataset Name field. Enter the parameters
for the dataset according to your site standards and press Enter to process.
7. You are returned to the Test screen and a message specifying the number of lines that
were copied is displayed in the upper right corner of the screen. If your PDS is not
specified in setup on the Test Script Libraries screen, enter SETUP from the Test
screen and enter option 3 on the Setup Menu screen. Then enter the PDS name on
the Test Script Libraries screen. Press Enter to process.
8. Press PF3 to return to the Test screen.
9. When you want to use the script for a subsequent test session, specify the PDS
member name of the script in the Test screen’s Initial Script field or use the INCLUDE
command followed by the PDS member name to execute the script after the source is
displayed.
Note:
The LOG and SCRIPT commands are still displayed on the Test screen. This
means that the session log and script files from the previous session are still
active. If you intend to start another debugging session and want to use fresh
session log and script files, press PF3 to return to the Xpediter/TSO Primary
Menu and then enter option 2 to return to the Test screen. This deletes the
previous session log and script files, and you are ready to begin a new
session.
Option 2 - Batch Connect Under ROSCOE
The following steps apply when using the Batch Connect under ROSCOE Environment:
1. Create a dataset that will be used in the test session while the Batch Connect job is
running. This dataset should be allocated as follows: DSORG=PS, RECFM=FB,
LRECL=80, and BLKSIZE=3120
4-46
Xpediter/TSO and Xpediter/IMS PL/I User Guide
2. Go to the SETUP menu on any of the ROSCOE Front End screens and go to the
OPTION field and select 6 from the menu choices.
3. Press Enter and you will view the Batch Connect under ROSCOE Script Dataset screen
as displayed in Figure 4-20.
Figure 4-20. Batch Connect Under ROSCOE Script Dataset Screen
-------------------------- XPEDITER/ROS-SCRIPT DATASET -----------------------
COMMAND ===>
Script Dataset Name: (DSNAME must be pre-allocated as:
DSORG=PS,RECFM=FB,LRECL=80,BLKSIZE=3120)
DSNAME ===>
Allocation Parameters:
Process Options: A (Append)
Data Class ===>
D (Delete)
Space Units ===>
Primary ===>
Secondary ===>
Storage Class ===>
Unit ===>
Volume ===>
Disposition Before Test:
Process Option ===>
(A,D Used only if DSNAME is specified)
Press ENTER to process or enter END command to terminate
4. Specify the dataset name allocated in Step 1 and set the process option based on
whether you wish to append or delete the old content.
5. Run your test and upon completion, copy the data from the dataset on the XPSCRIPT
to a member in your INCLUDE dataset.
6. From this point forward, you need to include the script on the Select Job Step screen
as your initial script or you must issue the INCLUDE script name while in the source.
Script Example
Suppose you want to set a number of breakpoints that are sufficiently spaced apart and
require you to scroll up after setting each breakpoint. A script comprised of these
breakpoint commands could initialize the session, setting the breakpoints. This would
eliminate the need to scroll in order to enter the commands. Such a script is illustrated as
follows.
BEFORE 24 30 TRIMAINP:
AFTER TRITSTP:DETERMINE_TYPE
COUNT 24 30
Using Xpediter/TSO Commands in a Script (Interactive)
Refer to the INCLUDE command in the Xpediter/TSO and Xpediter/IMS Reference Manual for a
list of the commands that can and cannot be included in a script for interactive
debugging of PL/I programs.
Using Xpediter/TSO Commands in a Script (Unattended)
Since all of the commands entered in a script for unattended debugging are executed
before the first statement in the program is encountered, careful planning of the
debugging session is critical. Here are some considerations:
Getting Started
4-47
• Store all your command streams as members of your INCLUDE library. Then you are
able to keep track of all data streams you have used. It also saves time by not having
to reenter all the commands for each session.
• AFTER, BEFORE, ONETIME, and TRACE commands give approximately the same
information. All three update the Keep window.
When an AFTER command is executed and changes are logged, the session log entry
for the command identifies the statements before and after the place where
execution is paused. Therefore, use of the AFTER command is a good means of
tracking the flow of execution. It is particularly useful following a conditional
statement when you are uncertain of the execution path.
• To track a value change in a variable, using the WHEN command is better than using
the TRACE command, which produces a large amount of output in the session log
file.
• PEEK is an immediate command, which means the display to the session log occurs
as soon as the PEEK command is encountered. PEEK is most useful if you want to see
a field at the very beginning or at the very end of a program, and you only want to
see the value once. It can be useful within inserted code. You could insert a PEEK
after the statement you want executed. The PEEK command would be executed each
time the statement was executed.
• In general, the KEEP command is used more often than the PEEK command because a
keep causes the value of a data item to be displayed repeatedly. KEEP displays a value
only at the location of a breakpoint and only when a value has changed. Therefore
the best way to watch data change within a program is to set breakpoints (AFTER,
BEFORE, or TRACE) on key statements and keep all the data items you want to
monitor.
CAUTION:
In post and abend scripts, use the PEEK command instead of the KEEP command.
• The COUNT command can be used to monitor statement execution in a batch
program that processes large amounts of data. To see the results of the COUNT
command, issue the SHOW COUNTS command in a post script at the end of the
debugging session.
• One of the problems with unattended debugging is that normally all commands need
to be executed at the beginning of the debugging session. This can create more
output than the user needs. An INSERT command allows Xpediter/TSO commands to
have delayed execution. The Xpediter/TSO commands within an INSERT are not
executed until the inserted code is executed; that is, when the previous statement is
executed. INSERT can be a very powerful command in an unattended batch
debugging session.
Refer to the INCLUDE command in the Xpediter/TSO and Xpediter/IMS Reference Manual for a
list of the commands that can and cannot be used in a script for an unattended
debugging session for PL/I programs.
Accessing Other Systems from Xpediter/TSO
Accessing File-AID for DB2
This section describes how to access and exit File-AID for DB2 from Xpediter/TSO. FileAID for DB2 is Compuware’s interactive DB2 database management tool that lets you
create, view, change, and customize the DB2 table data associated with your program
without coding SQL. File-AID for DB2 also provides facilities for interactive SQL
development and analysis and a host of utilities. Refer to the File-AID for DB2 Reference
Manual for information about using File-AID for DB2.
4-48
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Xpediter/TSO’s DB2 capabilities are greatly enhanced when you have Xpediter for DB2
Extension and File-AID for DB2 installed at your site. This versatile union lets you debug,
prototype SQL calls, and analyze PL/I DB2 programs in Xpediter/TSO. At the same time,
you are also permitted to dynamically access File-AID for DB2, Compuware’s interactive
DB2 database management tool that lets you create, view, change, and customize the
DB2 table data associated with the program without coding SQL. File-AID for DB2 also
provides facilities for interactive SQL development and analysis and a host of utilities.
Refer to “Using Xpediter for DB2 Extension” on page 5-33 for information about how to
browse and edit DB2 table data while testing your program, analyze SQL statement
execution with the XT (EXPLAIN) line command, and prototype SQL logic by inserting
SQL statements.
Notes:
1. Xpediter/TSO supports debugging of any DB2 program within all execution
environments selectable under the Environments Menu, with the following
exceptions:
– The first exception to this Xpediter/TSO support rule is the Xpediter/TSO dialog
environment.
– A second exception to normal debugging is that Xpediter for DB2 Extension
cannot be accessed when using the Batch Connect facility.
2. You must bind your program application plan with File-AID for DB2 if any of the
following apply:
– The program executes statically compiled SQL statements. If the program
executes only dynamically inserted SQL statements, you can either bind your
application plan with File-AID for DB2 or use the File-AID for DB2 default plan in
place of your application plan.
– The program executes in the IMS environment.
Refer to Appendix F, “Binding the Application Plan or Package” for information about
binding.
The following accesses File-AID for DB2 from Xpediter/TSO:
• Select the FADB2 menu item on the Xpediter/TSO Primary Menu.
• Enter the FADB2 command on any Xpediter/TSO Source display screen.
The File-AID for DB2 Primary Option Menu is displayed. The menu lists all File-AID for
DB2 facilities.
Notes:
1. The SQL Development and Analysis facility is available from Xpediter/TSO only
when File-AID for DB2 is accessed by entering F (FADB2) on the Xpediter/TSO Primary
Menu.
2. The plan name and DB2 subsystem you specified to start your Xpediter/TSO test
session are also in effect when you invoke File-AID for DB2 from an Xpediter/TSO
Source display screen. However, a subsystem switch is not permitted under File-AID
for DB2 when it is accessed from Xpediter/TSO.
You can bypass the File-AID for DB2 Primary Option Menu by entering the FADB2
command with the keyword or 1-character number or letter that directly accesses a
specific File-AID for DB2 function. For example, to directly access the File-AID for DB2
Browse function from Xpediter/TSO, enter:
FADB2 BROWSE
The keywords and 1-character numbers or letters that access File-AID for DB2 functions
are listed on the File-AID for DB2 Primary Menu.
Getting Started
4-49
Exiting File-AID for DB2
When you finish using File-AID for DB2 functions, you can either:
1. Enter =X to return to the Xpediter/TSO Source display screen displaying your source
program.
2. Enter END, which will take you to the File-AID for DB2 Primary Option Menu from
which you can select another File-AID for DB2 function.
Connecting to CICS
Option CS (CICS) on the Primary Menu displays the TSO to CICS Connect Support screen
shown in Figure 4-21. This screen lets you select a CICS system and subsequently connect
to a CICS session. It also lets you specify a PF key that enables you to easily return to
TSO.
Figure 4-21. TSO to CICS Connect Support Screen
------------------------ XPEDITER/TSO - CICS CONNECT ------------ Row 1 of 3
COMMAND ===>
SCROLL ===> CSR
TOGGLE pf key: ===> PF 24
LogMode ===>
(Optional)
Please enter an S or ? by the desired system
SEL
CICS SYSTEM
CICS System Description
--------------------------------------------------------------
_
CICX170P
PRODUCTION CICS REGION
_
CICX170T
TEST CICS REGION
_
CICS170S
SALES CICS REGION
******************************* Bottom of data ********************************
Specify a PF key that you can use to toggle from CICS to TSO. Then, enter S in the SEL
area of the CICS system you want to access. Press Enter and the CICS-VS screen of the
selected region is displayed.
Optionally, a logmode can be entered in the LogMode field and Xpediter/TSO will
attempt to connect to CICS using the indicated mode. To use the default VTAM defined
logmode, clear the LogMode field.
To return to TSO, press the selected PF key from any screen in your CICS session. When a
currently connected CICS session is ended, the message SESSION TERMINATED appears
in the upper right corner of the CICS Connect screen.
4-50
Xpediter/TSO and Xpediter/IMS PL/I User Guide
5-1
Chapter 5.
Debugging Interactively
Chap 5
This chapter describes how to use Xpediter/TSO to interactively debug your PL/I
programs.
Debugging PL/I Programs
This chapter discusses:
• The source display.
• Using Xpediter/TSO commands.
• Controlling program execution with the AFTER, BEFORE, GO, INTERCEPT,
ONETIME, PAUSE, RETURN, TRACE, AT, COUNT MAX, WHEN, RETEST, SKIP, and
SOURCE commands.
• Inspecting and manipulating data (variables, registers, and memory) with the
Automatic Keep function and the KEEP, PEEK, MOVE, MEMORY, and GPREGS
commands.
• Analyzing program logic (data flow, execution path, and execution coverage) using
the FIND, EXCLUDE, TRACE, SHOW, LOCATE, and COUNT commands.
• Modifying program logic with the SKIP, INSERT, and GT (GOTO line command)
commands.
• Displaying file allocations.
• Debugging and testing programs that do not have the source (no source listing)
available with the AT command.
• Displaying subsystem related debugging information for VSAM, IDMS, IMS, and DB2
and environment specific run-time characteristics during a test session. Available
only if you have Abend-AID Release 7.0.2 or above installed at your site.
• Using test scripts (a predefined stream of Xpediter/TSO commands) to automate the
test session (INCLUDE command).
In addition, Xpediter/TSO supports debugging of any DB2 program within any execution
environment selectable under the Environments Menu.
If you have Xpediter for DB2 Extension and File-AID for DB2 installed at your site, you
can also interactively insert SQL statements in your program, retrieve Explain
information about SQL statements, and browse and edit DB2 table data. A series of
FADB2 commands are available for these functions. Refer to “Using Xpediter for DB2
Extension” on page 5-33 for more information.
The Source Display
When you start a debugging session, Xpediter/TSO displays the program source listing as
shown in Figure 5-1 on page 5-2.
5-2
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure 5-1. Xpediter/TSO Source Display Screen
------------------------- XPEDITER/TSO - SOURCE ------------------------------
COMMAND ===>
SCROLL===> CSR
BEFORE BREAKPOINT ENCOUNTERED
** END **
---------------------------------------------- Before TRIMINP1/AMODE 31 <>
=====> B TRIMAINP: PROC OPTIONS(MAIN);
------
000002
DCL INFILE INPUT RECORD FILE;
000003
DCL IN_REC
CHAR(80);
-----/*
*/
-----/*
*/
-----/*
DECLARE EXTERNAL ENTRY PROGRAMS
*/
-----/*
*/
-----/*
*/
------
000004
DCL TRITSTP EXTERNAL ENTRY;
000005
DCL TRIRPTP EXTERNAL ENTRY;
000006
DCL ADDR BUILTIN;
------
000007
DCL 1 N_N_C_TABLE,
A before breakpoint is automatically set at the main procedure and its entry points and
an after breakpoint is set at the RETURN or END procedure statements.
Figure 5-2 shows an example of entering the SHOW BREAKS command for the program
above.
Figure 5-2. Result of Using the SHOW BREAKS Command
------------------------------ XPEDITER/TSO - SOURCE ---------------------------
COMMAND ===>
SCROLL===> CSR
SPECIFIED STATEMENTS ARE SHOWN - RESTORE SOURCE WITH ’END’
** END **
---------------------------------------------- Before TRIMINP1/AMODE 31 <>
************************************* TOP OF MODULE ****************************
=====> B TRIMAINP: PROC OPTIONS(MAIN);
- - - - - - - - - - - - - - - - - 73 LINES NOT DISPLAYED
000038 A END TRIMAINP;
************************************ BOTTOM OF MODULE **************************
The execution status field on the ninth line indicates the current execution position and
the <> at the end of line indicates that the screen can be scrolled. An arrow points to the
statement where execution is paused. The breakpoint indicator areas in column 9 and
columns 74 through 80 show the breakpoints that have been set.
Using Xpediter/TSO Commands
Xpediter/TSO commands are used to interactively test and debug your programs and to
perform other functions associated with your test session. Some Xpediter/TSO commands
are primary commands that must be entered on the command line. In many cases, a
command will also have a corresponding line command that can be entered in the
designated line command area on a screen.
Please refer to the Xpediter/TSO and Xpediter/IMS Reference Manual for detailed information
about each command.
Debugging Interactively
5-3
Controlling Program Execution
This section describes the Xpediter/TSO commands that let you control program
execution. Some of these commands, called breakpoint commands, are used to start and
stop execution at any time or when a specified condition occurs. Breakpoint commands
let you designate the location of the pause by statement number, label name, procedure
name, or by the occurrence of a particular event. The other commands that control
execution are used to specify the procedure to be displayed as the active procedure.
When program execution is paused, you can enter other Xpediter/TSO debugging
commands to examine program data, analyze and follow program logic, and many other
debugging functions. Execution resumes when you enter GO or press PF12.
Execution is automatically stopped when an abend occurs. Xpediter/TSO intercepts
program abends and automatically pauses at the failing statement. Some abends can be
corrected dynamically, and execution can be resumed without terminating the session.
Commands That Control Execution
The following are Xpediter/TSO commands that control execution.
Note:
Breakpoint commands can be removed with the DELETE command.
AFTER
Stops execution after the specified line of code is executed. An after module
breakpoint is automatically set at the main procedure before the program begins
executing. An after breakpoint is set on each RETURN or END procedure-name in the
procedure when an AFTER module breakpoint is requested.
An after breakpoint set at a call to an external procedure stops after completing the
call. An after breakpoint set on a call to an internal procedure stops before executing
the first statement in the procedure.
AT
Sets breakpoints in a sourceless main or fetched procedure. Sourceless debugging and
using the AT command are discussed in “Debugging a Sourceless Program” on page
5-37.
BEFORE
Stops execution before a specified line of code is executed. A before module
breakpoint is automatically set at the main procedure before the program begins
executing. A before breakpoint is set on the PROCEDURE and ENTRY statement in
the procedure when a before module breakpoint is requested. You must set a before
breakpoint at the beginning of a called procedure if you want to stop execution
before the procedure executes.
COUNT
Counts the number of times a statement is executed. Optionally stops execution
when a statement executes a specified number of times.
GO
Begins execution and resumes execution after a pause. Conditionally executes a
specified number of statements or labels.
INTERCEPT
Loads the specified external procedure and sets a before and after module breakpoint
at the PROCEDURE and END statements before the program begins executing.
5-4
Xpediter/TSO and Xpediter/IMS PL/I User Guide
ONETIME
Is functionally equivalent to a before breakpoint, stopping before a specified line of
code is executed. However, the onetime breakpoint is removed automatically after it
is encountered.
PAUSE
Pauses execution within a block of code that has been inserted.
PSEUDOSOURCE
Generates pseudo-assembler code for a program with no DDIO listing member. Using
the PSEUDOSOURCE command is discussed in “Creating Pseudo-Assembler Source”
on page 5-41.
RETEST
Reloads the procedure you are debugging and restarts the test session.
SKIP
Bypasses execution of source code, which can include bypassing a procedure.
SOURCE
Displays the specified external procedure and makes it the qualified procedure. Any
subsequent Xpediter/TSO commands that are entered are applied to the specified
external procedure.
TRACE
Traces the flow of control as the program executes.
WHEN
Suspends execution when a specified condition occurs.
Entering Program Control Commands
A simple way to enter a breakpoint command is to scroll to the source line where you
want execution to pause, type the command in the line command area, and press Enter.
You will see an indication of the breakpoint in column 9 on the Source screen.
To set a breakpoint at a specific location or occurrence of a specified event, enter the
breakpoint command from the primary command line with a location operand or a
condition for the stop. Refer to the Xpediter/TSO and Xpediter/IMS Reference Manual for the
valid location operands and parameters for a command.
If the primary command line is too small to list breakpoints or to stack commands, enter
the SET CMDSIZE command to expand the command line to up to three lines.
When you set a breakpoint on a line that has multiple statements, execution only stops
at the first code statement on the line. You must use GO 1 to stop at every statement on
the line. For example, Figure 5-3 shows a before breakpoint on statement 25 (STAKMNTH
= MONTH_CODE). Although you cannot set a breakpoint on statement 26
(RECORD_CTR = RECORD_CTR +1), you can use GO 1 to stop at that statement.
Debugging Interactively
5-5
Figure 5-3. Setting Breakpoints on Lines with Multiple Statements
------------------------------ XPEDITER/TSO - SOURCE ---------------------------
COMMAND ===>
SCROLL ===> CSR
BEFORE BREAKPOINT ENCOUNTERED
** END **
------------------------------------------------ Before MAINPLI1/AMODE 31 <>
=====> B CALC_VACATION: PROC:
000024
ALLOCATE STAKMNTH;
=====> B
STAKMNTH = MONTH_CODE; RECORD_CTR = RECORD_CTR + 1;
000027
MONTH = SUBPXXXXONG(MONTH_CODE);
000028
R_EMP_NO = EMPLOYEE_NUMBER_WITH
When a statement continues across multiple lines, the breakpoint indicator is displayed
on the line where the statement began.
To set a breakpoint on a statement that is preceded by a label, you must set the breakpoint next to the label. For example, in Figure 5-4 below, the breakpoint is set on the
label in order to stop execution at the assignment statement TOTAL_NET_PAY =
TOTAL_CTR.
Figure 5-4. Setting a Breakpoint on a Label
------------------------------ XPEDITER/TSO - SOURCE ---------------------------
COMMAND ===>
SCROLL===> CSR
2 COMMAND(S) COMPLETED
** END **
------------------------------------------------ Before MAINPLI1/AMODE 31 <>
=====>
END CALC_VACATION;
000067 B WRITE_TOTAL:
-----TOTAL_NET_PAY = TOATL_CTR;
000068
WRITE FILE (OUTLIST) FROM (FINAL_LINES);
000069
CLOSE FILE(MASTER);
000070
CLOSE FILE(TIMECRD);
A breakpoint set on a compounded statement will treat that statement as a unit. For
example, an explicit breakpoint will stop execution before or after an assignment
statement is executed, if the assignment statement contains a function that returns a
value.
Using the BEFORE and AFTER Commands
The following commands will stop execution before every procedure is executed and
after statements 26 and 29 have executed:
BEFORE ALL LABEL;AFTER 26 29
The message 2 COMMAND(S) COMPLETED is displayed. When Enter is pressed and you
scroll forward, you can see the results of the commands. Refer to Figure 5-5.
5-6
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure 5-5. Result of Setting Before and After Breakpoints
000020
000021
000022
000023
000024
------
000025
000026
000027
000028
000029
-----000030
000031
000032
B
INIT_PARA: PROC;
N_CNTR = 0;
OPEN FILE(INFILE);
OUT_OF_RECS = ’0’B;
END INIT_PARA;
B
A
ANALYZE_NEXT_REC: PROC;
READ FILE(INFILE) SET(IN_REC_PTR);
IF ¨OUT_OF_RECS THEN DO;
TRIANGLE_TYPE = 0;
CALL TRITSTP (WORK_REC,
TRIANGLE_TYPE);
TX = TRIANGLE_TYPE;
N_CNTR(TX) = N_CNTR(TX) + 1;
END;
A
The after breakpoint on statement 26 will cause execution to pause after the READ
statement is executed and before the next statement is executed. The after breakpoint on
statement 29 causes execution to pause after the call to the external procedure TRITSTP is
completed.
To stop execution on a statement in a procedure that is not currently displayed, you must
qualify the procedure name using a colon (:). After the procedure name, enter the
location where you want the breakpoint to be set. For example, the following:
BEFORE TRITSTP:DETERMINE_TYPE;SOURCE TRITSTP
sets a before breakpoint in the external procedure TRITSTP at the label
DETERMINE_TYPE. The SOURCE command displays the external procedure TRITSTP.
Figure 5-6 shows the result of the command.
Figure 5-6. Result of Qualifying a Breakpoint Command
------------------------- XPEDITER/TSO - SOURCE --------------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: TRITSTP1
MODULE: TRIMAINP COMP DATE: 08/07/1995 COMP TIME: 12:15:45
** END **
---------------------------------------------- Before TRIMINP1/AMODE 31 <>
000011
A_N_C = A + C;
000012
B_N_C = B + C;
000013
IF (B_N_C ¨> A) | (A_N_C ¨> B) | (A_N_B ¨> C) THEN
-----TYPE_OF_TRIANGLE = 4;
000014
END VALIDATE_TRIANGLE;
------
000015 B
DETERMINE_TYPE: PROC;
000016
SELECT;
000017
WHEN (TYPE_OF_TRIANGLE=4) ;
000028
WHEN (A = B & B = C)
TYPE_OF_TRIANGLE = 1;
000019
WHEN (A = B | B = C | A = C)
-----TYPE_OF_TRIANGLE = 2;
000020
OTHERWISE
TYPE_OF_TRIANGLE = 3;
000021
END;
000022
END DETERMINE_TYPE;
****************************** BOTTOM OF MODULE ****************************
Alternatively, you can establish qualification by using the SOURCE external procedure
name command to display the source of a procedure that will be called and then set
breakpoints at the desired locations. If the external procedure is not yet loaded in
memory, or you need to qualify the procedure name by the load module in case of
duplicates, enter SOURCE load module name::procedure name.
Refer to the Xpediter/TSO and Xpediter/IMS Reference Manual for detailed information about
qualification rules for Xpediter/TSO commands.
Debugging Interactively
5-7
You can enter the SOURCE command without a keyword or press PF6 (LOCATE *) to
return to the active procedure (TRIMAINP) where execution is currently paused.
You can use the DELETE command to remove breakpoints. The SHOW BREAKS
command can be used to display a list of the breakpoints that are currently specified.
Using the INTERCEPT Command
The INTERCEPT command loads the specified procedure and sets a before breakpoint at
the beginning of the procedure and an after breakpoint at the end. For example, if the
following is entered,
INTERCEPT TRIRPTP
the TRIRPTP procedure is displayed as shown in Figure 5-7 on page 5-7.
Figure 5-7. Result of the INTERCEPT Command
------------------------- XPEDITER/TSO - SOURCE --------------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: TRIRPTP
MODULE: TRIMAINP COMP DATE: 08/07/1995 COMP TIME: 12:15:45
** END **
---------------------------------------------- Before TRIMINP1/AMODE 31 <>
000001 B TRIRPTP: PROC(TABLE_OF_NAMES_N_CNTRS);
------
000002
DCL OUTFILE OUTPUT RECORD FILE
-----ENVIRONMENT(FB RECSIZE(80));
------
000003
DCL HDR_LINE STATIC
CHAR(80) INIT
-----(’ *** TRIANGLE REPORT ***’);
000004
DCL 1 DTL_LINE,
-----5 FILLER1
CHAR(11)
INIT (' NUMBER OF '),
-----5 DTL_TITLE
CHAR(21),
-----5 FILLER2
CHAR(05)
INIT (''),
-----5 DTL_CNTR
PIC’ZZZZZ’,
-----5 FILLER3
CHAR(38)
INIT ('');
------
000005
DCL BLANK_LINE STATIC
CHAR (80) INIT ('');
Using the GO Command
The GO command (PF12/PF24) is used to begin or resume execution of your procedure.
The procedure will execute until a breakpoint is reached or an abend is intercepted by
Xpediter/TSO.
For example, in the TRIMAINP procedure, execution pauses when the before breakpoint
is reached at the beginning of the main procedure. If the following is entered on the
command line,
AFTER 22 25;BEFORE 25;GO
execution pauses at the after breakpoint on statement 22 as shown in Figure 5-8.
The double execution arrow indicates an after breakpoint has been reached. A single
execution arrow indicates a before breakpoint has been reached. The at sign (@) on
statement 25 indicates that a before breakpoint was placed on the same line as the after
breakpoint.
5-8
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure 5-8. Result of Setting Breakpoints and Entering GO
000021
====>> A
000023
000024
------
000025 @
000026
N_CNTR = 0;
OPEN FILE(INFILE);
OUT_OF_RECS = ’0’B;
END INIT_PARA;
ANALYZE_NEXT_REC: PROC;
READ FILE(INFILE) SET(IN_REC_PTR);
At this point, you could do any of the following:
•
•
•
•
•
Set additional breakpoints
Enter GO to resume execution
Enter GO 1 to step through the procedure line-by-line
Enter EXIT to exit from the debugging session
Enter the RETEST command to obtain a fresh copy of the program.
Note:
If you want to reproduce any of the examples in this section, enter the RETEST
command before each example.
Setting Conditional Breakpoints
The GO n, COUNT, WHEN, and TRACE commands are used to stop execution when a
specified condition occurs.
Using the GO n Command
Using the GO command without any arguments resumes execution until the next
breakpoint is reached, until Xpediter/TSO intercepts an abend, or the procedures
complete execution. The GO command can also conditionally execute a specified
number of statements or procedures if an integer argument is entered with the
command. For example,
GO 5
executes five statements before pausing and
GO 5 LABEL
executes five labels before pausing.
Using the GO 1 command or pressing PF9 lets you single-step through the code to
understand the effect of executing each statement. GO 1 single-steps at the statement
level.
When a GO 1 command is issued from a statement that transfers control to an external
procedure, execution pauses when control returns to the current procedure, unless a
breakpoint is encountered within the called external procedure. For example, Figure 5-9
shows the result of entering the GO 1 command when execution is paused at the CALL to
TRITSTP (statement 29) and no breakpoints are set in TRITSTP. Execution pauses at
statement 30 when control returns to the main procedure TRIMAINP.
Debugging Interactively
5-9
Figure 5-9. Single Stepping Within the Current Procedure
------------------------- XPEDITER/TSO - SOURCE --------------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: TRIMINP1
MODULE: TRIMAINP COMP DATE: 08/07/1995 COMP TIME: 12:15:45
000007
TX
> +00003
HALFWORD
000010
TRIANGLE_TYPE
> +4
PACKED
** END **
------------------------------------------- Before TRIMINP1:30/AMODE 31 <>
------
000025
ANALYZE_NEXT_REC: PROC;
000026
READ FILE(INFILE) SET(IN_REC_PTR);
000027
IF ¨OUT_OF_RECS THEN DO;
000028
TRIANGLE_TYPE = 0;
000029
CALL TRITSTP (WORK_REC,
-----TRIANGLE_TYPE);
=====>
TX = TRIANGLE_TYPE;
000031
N_CNTR(TX) = N_CNTR(TX) + 1;
000032
END;
000033
END ANALYZE_NEXT_REC;
------
000034
ENDING_PARA: PROC;
000035
CLOSE FILE(INFILE);
000036
CALL TRIRPTP (N_N_C_TABLE);
Figure 5-10 demonstrates the same example. However, enter the following to set a before
breakpoint at the beginning of TRITSTP.
BEFORE TRITSTP:
Note:
Failing to qualify the procedure name using the single colon (:) results in the
following message:
PROCEDURE NAME NOT FOUND IN MODULE SOURCE LISTING
Then, enter GOTO 29 to return to the CALL to TRITSTP statement. Now, when you press
PF9 (GO 1), execution pauses in TRITSTP as shown in Figure 5-10.
Figure 5-10. Stepping Into an External Procedure Using the GO 1 Command
------------------------- XPEDITER/TSO - SOURCE ------------------------------
COMMAND ===>
SCROLL ===> CSR
BEFORE BREAKPOINT ENCOUNTERED
---
0000002
01 TST_REC
> 123
0000003
TYPE_OF_TRIANGLE
> +0
PACKED
** END **
----------------------------------------------- Before TRITSTP1/AMODE 31 <>
=====> B TRITSTP: PROC(TST_REC, TYPE_OF_TRIANGLE);
------
000002
DCL 1 TST_REC,
-----5 A
PIC’9’;
-----5 B
PIC’9’;
-----5 C
PIC’9’;
000003
DCL TYPE_OF_TRIANGLE
FIXED DEC(1);
------
000004
DCL A_N_B
PIC’999’;
000005
DCL B_N_C
PIC’999’;
000006
DCL A_N_C
PIC’999’;
------
-----/*
*/
-----/*
*/
-----/*
START OF THE MAINLINE CODE
*/
5-10
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Using the COUNT MAX Command
The COUNT command is used to monitor execution coverage by reporting the number of
times a statement executes. When the MAX keyword is used with the COUNT command,
you can specify the maximum number of times you want statements to execute. When
the limit is reached, execution pauses and the message SPECIFIED EXECUTION MAX
HAS BEEN REACHED is displayed. For example, to count the number of times
statements 15 and 17 execute, up to a maximum of 3 times, enter the following:
COUNT 15 17 MAX 3;GO
When the COUNT command is issued, a 7-digit counter appears in columns 74 through
80 as shown in Figure 5-11. The counter field can be typed over to set or remove the
limit. For example, you can type over the counter with a higher limit and press Enter to
raise the preset maximum limit, or you can zero out the counter and press Enter to
remove the limit.
Figure 5-11. Result of Counting Statements With the MAX Keyword
000015
000016
=====>
000018
000019
CALL INIT_PARA;
DO WHILE (¬OUT_OF_RECS);
CALL ANALYZE_NEXT_REC;
END;
CALL ENDING_PARA;
00000001
00000003
Using the WHEN Command
The WHEN command lets you stop execution when a variable changes value or when a
specified condition takes place. Xpediter/TSO checks the condition after every statement
in the current procedure and pauses if the condition is met. The WHEN command can be
used with the following arguments:
Note:
If your WHEN command arguments do not fit on the primary command line,
expand the primary command line using the SET CMDSIZE command.
Variable-name
Suspends execution when a statement altering the value of the variable is executed.
The variable can be monitored by opening a Keep window and displaying the values.
For example:
WHEN
WHEN
WHEN
WHEN
WORK_REC
GRAND_TOTAL.TOTAL_SUM
PCB_PTR->IOPCB
PROCESS_CUST_DATA:CUST_REC
Condition
Suspends execution when the specified condition is met. You can enter a relational
condition using expressions such as the following:
WHEN WORK_REC = ’345’
WHEN GRAND_TOTAL.TOTAL_SUM > 50000
For example, the following WHEN command will conditionally pause execution when
the value of either the array N_CNTR changes or the subscript TX changes. The KEEP
commands display the values of the variables.
WHEN N_CNTR(TX)
KEEP TX
KEEP N_CNTR(TX)
Figure 5-12 shows the result of resuming execution with PF12 (GO).
Debugging Interactively
5-11
Figure 5-12. Result of Entering the When Command
------------------------- XPEDITER/TSO - SOURCE ------------------------------
COMMAND ===>
SCROLL ===> CSR
WHEN N_CNTR (TX) CHANGES
000007 K
TX
> +00002
HALFWORD
S=2
OCCURS
000007 K 10 N_CNTR
> 0001
ZONED
000007
TX
> +00002
HALFWORD
000010
TRIANGLE_TYPE
> +2
PACKED
---------------------------------------------- After TRIMINP1:30/AMODE 31 <>
-----TRIANGLE_TYPE);
====>>
TX = TRIANGLE_TYPE;
000031
N_CNTR(TX) = N_CNTR(TX) + 1;
000032
END;
The DELETE WHEN command can be used to remove the when condition. The SHOW
WHEN command can be used to display a list of the when conditions that are currently
specified.
You can set a WHEN data change breakpoint before the addressability is established for
the data. However, the following rules will apply:
• When will stop when storage is explicitly allocated and freed for a controlled
variable.
• When will stop when the value of a pointer changes from SYSNULL (X’00000000’) or
NULL (X’FF000000’) for a based variable, but it will not change when the address of
the pointer changes.
• When will not stop when the addressability is gained or lost for automatic and static
variables.
• WHEN conditional expression cannot evaluate the condition until the variables
referenced establishes addressability.
Using the Inserted PAUSE Command
The PAUSE command can be dynamically inserted in the PL/I source code to set a
breakpoint following the execution of a statement. You can specify a condition in which
the pause breakpoint is to occur, by also inserting the IF...ELSE construct associated with
it.
The PAUSE command must be used in conjunction with the INSERT command. For
information on the usage convention of the INSERT command, refer to “Inserting
Statements” on page 5-31.
Figure 5-13 shows the effect of inserting a PAUSE command within a block of inserted
Xpediter/TSO commands.
5-12
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure 5-13. Result of Encountering a Pause Breakpoint
------------------------------ XPEDITER/TSO - SOURCE ---------------------------
COMMAND ===>
SCROLL===> CSR
PAUSE REQUESTED BY INSERTED COMMAND
IN_REC_PTR =00207D50
----+----1----+----2----+----3
SAME-> K
IN_REC
> 111
** END **
--------------------------------------------- Before TRIMINP1:28/AMODE 31 <>
------
000025
ANALYZE_NEXT_REC: PROC;
000026
READ FILE(INFILE) SET(IN_REC_PTR);
000027
IF ¬OUT_OF_RECS THEN DO;
000028
TRIANGLE_TYPE = 0;
''''''
IF IN_REC = '345'
''''''
KEEP IN_REC
''''''
MOVE '111' TO IN_REC
=====>
PAUSE
''''''
END-IF
000029
CALL TRITSTP (WORK_REC,
-----TRIANGLE_TYPE);
000030
TX = TRIANGLE_TYPE;
000031
N_CNTR(TX) = N_CNTR(TX) + 1;
000032
END;
Using the TRACE Command
The TRACE command is used to monitor the execution of statements, labels, and
external procedures. The specified statements are highlighted as they are executed until a
breakpoint is reached, an abend is intercepted by Xpediter/TSO, a terminal I/O is issued,
or a keyboard interrupt is detected.
Tracing is recorded in the session log. Use the LOG command to view the results of the
trace.
When the TRACE command is used with the MAX keyword, the tracing function pauses
when the number of executions reaches the preset limit. The default maximum limit is
25.
For example, if you request Xpediter/TSO to trace execution at the statement level for a
procedure that does not have any breakpoints set and to resume execution, the procedure
will pause following the execution of 25 statements. Figure 5-14 demonstrates the result
of entering the following command and pressing PF12 (GO):
TRACE ALL STATEMENTS
Figure 5-14. Result of Entering the TRACE ALL STATEMENTS and GO Commands
------------------------- XPEDITER/TSO - SOURCE ------------------------------
COMMAND ===>
SCROLL ===> CSR
25 TRACE BREAKPOINTS HAVE BEEN EXECUTED
IN_REC @00218C10
---
000011
01 WORK_REC
> 124
000010
TRIANGLE_TYPE
> +0
PACKED
** END **
-------------------------------------------- Before TRIMINP1:29/AMODE 31 <>
000026
READ FILE(INFILE) SET(IN_REC_PTR);
000027
IF ¬OUT_OF_RECS THEN DO;
000028
TRIANGLE_TYPE = 0;
=====>
CALL TRITSTP (WORK_REC,
-----TRIANGLE_TYPE);
000030
TX = TRIANGLE_TYPE;
000031
N_CNTR(TX) = N_CNTR(TX) + 1;
Debugging Interactively
5-13
In order to override the default maximum limit, you must enter the MAX keyword with
an integer other than 25 as an argument with the TRACE command.
The tracing speed can be controlled by using the SET DELAY command prior to entering
the TRACE command. For instance, entering the following command will slow down the
execution speed to one second:
SET DELAY 1
You can interrupt tracing and suspend execution by using the Attention key. While
tracing is in progress, the keyboard is unlocked and, depending upon your terminal type
and network configuration, you may be able to use other keys to stop tracing. To end a
TRACE command, use DELETE TRACE.
Inspecting Program Data
Xpediter/TSO lets you view and modify the contents of variables, memory, and general
purpose registers associated with your procedures and the argument lists that are passed
as parameters to called procedures.
Described in this section are the Automatic Keep function and the Xpediter/TSO
commands KEEP, PEEK, MEMORY, and GPREGS.
When you have Xpediter for DB2 Extension and File-AID for DB2 installed, you can also
browse and edit DB2 table data during an Xpediter/TSO session. Refer to “Using Xpediter
for DB2 Extension” on page 5-33 for more information.
Displaying and Modifying Variables
Xpediter/TSO automatically displays the values of data items referenced by the current
execution statement whenever execution halts. These values are displayed in a Keep
window at the top of the source display as shown in Figure 5-15 on page 5-13. Each time
the program halts, a new set of variables and their values are displayed.
Figure 5-15. Keep Window Displaying Automatic Keeps
------------------------- XPEDITER/TSO - SOURCE --------------------------------
COMMAND ===>
SCROLL===> CSR
PROGRAM: TRIMINP1
MODULE: TRIMAINP COMP DATE: 08/07/1995 COMP TIME: 12:15:45
IN_REC @00200BC0
---
000011
01 WORK_REC
> 123
000010
TRIANGLE_TYPE
> +0
PACKED
** END **
------------------------------------------- Before TRIMINP1:29/AMODE 31 <>
000026
READ FILE(INFILE) SET(IN_REC_PTR);
000027
IF ¬OUT_OF_RECS THEN DO;
000028
TRIANGLE_TYPE = 0;
=====>
CALL TRITSTP (WORK_REC,
-----TRIANGLE_TYPE);
000030
TX = TRIANGLE_TYPE;
000031
N_CNTR(TX) = N_CNTR(TX) + 1;
If a variable of interest is not automatically kept, you can use an explicit KEEP command
or the PEEK command to temporarily display the contents of a variable.
The KEEP command is used when you want to continuously display the contents of a
variable. When the KEEP command is entered, Xpediter/TSO continuously displays and
updates the data values in the Keep window as your program executes. Xpediter inserts a
K in column 9 of the window to differentiate between the explicitly kept items and the
automatically kept items.
5-14
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Note:
You have the option of creating a separate window located at the bottom of the
source display to hold the automatically kept items. To do this, use the SET
AUTOKEEP n command. Refer to the SET command in the Xpediter/TSO and
Xpediter/IMS Reference Manual for additional information.
Figure 5-16 shows an example of the Keep Window as produced by a KEEPE WORK_REC
command. Note that the window has been expanded to show all of the kept items
without having to scroll. Refer to the SET (window) command in the Xpediter/TSO and
Xpediter/IMS Reference Manual for information on sizing the Keep window.
Figure 5-16. Keep Window
------------------------- XPEDITER/TSO - SOURCE ------------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: TRIMINP1
MODULE: TRIMAINP COMP DATE: 08/07/1995 COMP TIME: 12:15:45
IN_REC @00202BC0
000011 K 05 SIDE_A
> 3
ZONED
IN_REC @00202BC0
000011 K 05 SIDE_B
> 4
ZONED
IN_REC @00202BC0
000011 K 05 SIDE_C
> 5
ZONED
** END **
------------------------------------------- Before TRIMINP1:25/AMODE 31 <>
-----'SCALENE TRIANGLES',
-----'INVALID TRIANGLES'),
The PEEK command is used when you want to temporarily display the contents of a
variable. When the PEEK command is entered, Xpediter/TSO scrolls to the DECLARE
statement and displays the data values in a window on the right side of the screen. Some
of the DECLARE statement will be overlayed. When you resume execution, the window is
removed from the screen. Figure 5-17 shows an example of the Peek Window as produced
by a PEEKE WORK_REC command.
Figure 5-17. Peek Window
------------------------- XPEDITER/TSO - SOURCE ------------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: TRIMINP1
MODULE: TRIMAINP COMP DATE: 08/07/1995 COMP TIME: 12:15:45
----+---
000008
IN_REC_PTR
> 00203BC0
POINTER
** END **
------------------------------------------- Before TRIMINP1:26/AMODE 31 <>
000008
DCL IN_REC_PTR
POINTER;
------
000009
DCL OUT_OF_RECS
BIT(1);
000010
DCL TRIANGLE_TYPE
FIXED DEC(1);
000011
DCL 1 WORK_REC
BASED(ADDR(IN_REC)),
IN_REC @00202BC0
------ P
5 (SIDE_A, SIDE_B, SID > 3
ZONED
’’’’’’ P 05 SIDE_B
> 4
ZONED
’’’’’’ P 05 SIDE_C
> 5
ZONED
Notes:
1. Use the LOCATE * command (PF6), to return to the location where execution is
paused.
2. Use the DELETE command to remove a Keep or Peek display.
3. Use the SET AUTOKEEP OFF command to turn off the Automatic Keep function.
The Automatic Keep function and the KEEP command display format shows the
statement number where the variable is declared, the level number, the data name, the
current value, and the data type. The level number appears only if the variable is declared
Debugging Interactively
5-15
in the source as a structure with level numbers. The PEEK command for the first (or only)
data item on a line overlays the source line with the data value and type. A PEEK for a
subsequent data item inserts a line with the same format as the KEEP, except the line
number area is filled with tic marks.
Data values are displayed according to scaling and precision attributes. Alphabetic items
are displayed as characters, and numeric items are displayed according to the internal
representation. A column template is displayed to show the length of a character data
item. If the column template is not displayed, you can use the T line command to display
the template. Arrays are shown by rows and columns, rather than in a linear fashion and
are formatted by each dimension when the PEEK or KEEP command is entered at the
elementary level.
The Keep window is both scrollable and adjustable in size. The window becomes
scrollable when the data exceeds the size of the window. Scrolling is cursor sensitive; that
is, the cursor must be in the Keep window for scrolling to take place. Move the cursor to
the window and use the PF7 (UP) and PF8 (DOWN) keys to scroll the data vertically. Use
the PF22 (DRIGHT) and PF23 (DLEFT) keys to scroll the Keep and Peek windows
horizontally. To ensure that the cursor remains in the Keep window while scrolling, put
the cursor on the segmented execution status line before using your scroll keys. You can
do this either with the up and down arrow keys or with the Tab key.
You can set the size of the Source, the Keep window, and the Automatic Keep window.
The automatically kept items can, by default, be displayed in the Keep window at the top
of the screen or in a separate Automatic Keep window at the bottom of the screen. Refer
to the SET command in the Xpediter/TSO and Xpediter/IMS Reference Manual for additional
information.
The contents of variables displayed in a window can be changed by using the MOVE
command or by typing over them (implicit MOVE).
If the OCCURS field is not associated with an index or subscript, it can also be typed over
to browse through the array entries. An occurrence modifier can also be appended to
increment or decrement through the occurrences. Erasing the occurrence indicator (S= or
I=) will disassociate that position with its underlying variable. Refer to the KEEP
command Usage Notes section in the Xpediter/TSO and Xpediter/IMS Reference Manual for
further information about keeping tables and/or arrays and using the OCCURS field.
To change the values for a based pointer (indicated with an = sign) or for an address
based pointer (indicated with an @ sign), you must first disassociate the pointer and then
overtype the pointer value. Or you can just modify the underlying variable. Erasing the
indicator (the = sign or the @ sign) disassociates the pointer from its underlying variable,
enabling overtyping of the pointer value.
Using the PEEK and KEEP Commands
You can enter the PEEK or KEEP primary command with the name of the variable or you
can enter the P and K line commands either in a procedure (where the variable is used or
modified) or on the DECLARE (where the variable is defined). The P* and K* line
commands can be entered on a statement to keep or peek all of the variables on the
statement.
Note:
The P and K line commands cannot be used on lines of inserted code.
There are three forms of the PEEK and KEEP commands, each corresponding to a data
display format. The three forms are:
PEEK and KEEP
The PEEK and KEEP commands display the value of a variable in character or numeric
format.
5-16
Xpediter/TSO and Xpediter/IMS PL/I User Guide
PEEKE and KEEPE
The PEEKE and KEEPE commands display the values of elementary items for a structured
variable.
PEEKH and KEEPH
The PEEKH and KEEPH commands display the value of a variable in the hexadecimal
format.
The commands and examples of the formats are described below.
Figure 5-18 shows the result of entering the KEEP command for N_N_C_TABLE, an array
defined as character data. The MORE-> sign in the statement number area indicates that
you can scroll for additional values. Note the column template displayed above the
value.
Figure 5-18. Result of KEEP for Character Data
MORE-> K 01 N_N_C_TABLE
** END **
>
----+----1----+----2----+----3
EQUILATERAL TRIANGLES0000ISOSC
Figure 5-19 shows the result of entering the PEEK command for TRIANGLE_TYPE, a
variable defined as fixed decimal.
Figure 5-19. Result of PEEK for Fixed Decimal Data
000009
000010 P
000011
------
DCL OUT_OF_RECS
BIT(1);
DCL TRIANGLE_TYPE
> +3
DCL 1 WORK_REC
BASED(ADDR(IN_REC)),
5 (SIDE_A, SIDE_B, SIDE_C)
PIC'9';
PACKED
Figure 5-20 on page 5-16 shows the result of entering the PEEK command for
WORK_REC, a variable based on the address of another variable named IN_REC. The
address of IN_REC is also displayed directly above the variable. The at sign (@) indicates
the number is an address.
Figure 5-20. Result of Entering PEEK for a Based Variable
000009
000010
000011 P
------
DCL OUT_OF_RECS
BIT(1);
DCL TRIANGLE_TYPE
FIXED DEC(1);
IN_REC @0020BBC0
---
DCL 1 WORK_REC
BASED(ADDR > 345
5 (SIDE_A, SIDE_B, SIDE_C)
PIC'9';
Figure 5-21 shows the result of entering the KEEP command for an array named N_N_C.
Debugging Interactively
5-17
Figure 5-21. Result of Entering the KEEP Command for an Array
000007 K 05 N_N_C
** END **
>
1
OCCURS
----+----1----+----2----+
EQUILATERAL TRIANGLES0000
When an array element is displayed, Xpediter/TSO inserts an OCCURS field. Figure 5-21
shows data name N_N_C in the Keep window. N_N_C has an OCCURS field with a value
of 1. The KEEP command for N_N_C did not specify an occurrence, so the default of 1
was used. Because the OCCURS field is disassociated, the value can be typed over with a
numeric value to display another array item. Also, an occurrence modifier can be
appended to the disassociated OCCURS field to permit browsing through the array
elements each time Enter is pressed.
As shown in Figure 5-22, you can add a signed integer (for example, +1, -2) to increment
or decrement the subscript by a specified interval.
Figure 5-22. Appending a Relative Subscript to an Occurrence Number
000007 K 05 N_N_C
** END **
>
1+1
OCCURS
----+----1----+----2----+
EQUILATERAL TRIANGLES0000
Each time you press Enter, the subscript is incremented by the number entered as shown
in Figure 5-23.
Figure 5-23. Browsing Through the Array Elements
000007 K 05 N_N_C
** END **
>
2+1
OCCURS
----+----1----+----2----+
ISOSCELES TRIANGLES 0000
If you want to display the currently referenced data in the array as the subscript or index
changes, enter the KEEP command using a data item qualified with the occurrence
variable.
For instance, a KEEP on N_CNTR displays the data value in the window defaulting to the
first occurrence (refer to Figure 5-24), whereas a KEEP on N_CNTR(TX) displays the
currently referenced data (refer to Figure 5-25).
Figure 5-24. Result of Entering the KEEP Command on Element N_CNTR
000007 K 10 N_CNTR
** END **
>
1
0000
OCCURS
ZONED
5-18
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure 5-25. Result of Entering the KEEP Command on Element N_CNTR(TX)
000007 K 10 N_CNTR
** END **
>
S=3
0002
OCCURS
ZONED
When you enter a PEEK command for an implicitly declared variable (no DCL statement),
a keep window is opened because there is no DCL statement to scroll to. The dashes (-----) in the statement number area in the Keep window indicate the variable is not declared.
Figure 5-26 shows the result of entering the PEEK command on an implicitly declared
variable named TX.
Figure 5-26. Result of Entering PEEK for an Implicitly Declared Variable
------------------------- XPEDITER/TSO - SOURCE ------------------------------
COMMAND ===>
SCROLL===> CSR
PROGRAM: TRIMINP1
MODULE: TRIMAINP COMP DATE: 08/07/1995 COMP TIME: 12:15:45
------ K
TX
> +4.00000E+00
FLOAT1
** END **
--------------------------------------------- Before TRIMAIP1:36/AMODE 31 <>
000030
ANALYZE_NEXT_REC: PROC;
000031
TRIANGLE_TYPE = 0;
000032
CALL TSTPLI (SIDE_A,
-----(SIDE_B,
-----(SIDE_C,
-----(TRIANGLE_TYPE);
000033
TX = TRIANGLE_TYPE;
000034
N_CNTR(TX) = N_CNTR(TX) + 1;
When you enter a PEEK or KEEP command for a structure variable whose elementary
items are unaligned bit strings, bit data (ones and zeros) is displayed.
Figure 5-27 on page 5-18 shows the result of entering the PEEK command for BITS5, a
structure variable with elementary items declared as a bit string.
Figure 5-27. PEEK for a Structured Variable with Unaligned Bit Strings
------
-------------------------------------- Before BITCHAR1:28/AMODE 31 <>
> 1,1
OCCURS
MORE-> P
DCL 1 BITS5 (2,3) STATIC,
> 101110110110101001111000000000 B
------ P
2 BIT_A5 BIT (3) INIT > 101
B
------ P
2 BIT_B5 BIT (7) INIT > 1101101
B
-----2 BIT_C5(5) BIT (5) INIT('10101'B,'00111'B,'1'B),
-----2 BIT_D5 BIT (3) INIT('111'B);
Figure 5-28 shows the result of entering the K* (Keep *) line command on a statement
that has multiple variables. The K* command displays all of the variables in the Keep
window.
Debugging Interactively
Figure 5-28. Result of Entering the K* Line Command
------------------------- XPEDITER/TSO - SOURCE ------------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: TRIMINP1
MODULE: TRIMAINP COMP DATE: 08/07/1995 COMP TIME: 12:15:45
IN_REC @0020BBC0
---
000011 K 01 WORK_REC
> 123
IN_REC_PTR =0020BBC0
----+----1----+----2----+----3
MORE-> K
IN_REC
> 123
------------------------------------------- Before TRIMINP1:25/AMODE 31 <>
000010
DCL TRIANGLE_TYPE
FIXED DEC(1);
000011
DCL 1 WORK_REC
BASED(ADDR(IN_REC)),
-----5 (SIDE_A, SIDE_B, SIDE_C)
PIC'9';
Using the PEEKE and KEEPE Commands
Figure 5-29 shows the result of entering PEEKE for a structured variable whose
elementary items are unvarying character data.
Figure 5-29. Result of Entering the PEEKE Command on a Structured Variable
000011
DCL 1 WORK_REC
BASED(ADDR(IN_REC)),
IN_REC @00202BC0
------ P
5 (SIDE_A, SIDE_B, SID > 3
’’’’’’ P 05 SIDE_B
> 4
’’’’’’ P 05 SIDE_C
> 5
ZONED
ZONED
ZONED
Figure 5-30 shows the result of entering a KEEPE on the structured variable.
Figure 5-30. Result of Entering the KEEPE Command on a Structured Variable
IN_REC @00202BC0
000011 K 05 SIDE_A
>
3
ZONED
>
4
ZONED
IN_REC =00202BC0
000011 K 05 SIDE_B
IN_REC =00202BC0
000011 K 05 SIDE_C
> 5
ZONED
----------------------------------------- Before TRIMINP1:25/AMODE 31 <>
000010
DCL TRIANGLE_TYPE
FIXED DEC(1);
000011
DCL 1 WORK_REC
BASED(ADDR(IN_REC)),
-----5 (SIDE_A, SIDE_B, SIDE_C)
PIC'9';
Using the PEEKH and KEEPH Commands
Figure 5-31 shows the result of entering the PEEKH command on the variable
WORK_REC.
Figure 5-31. Result of Entering the PEEKH Command on a Structured Variable
000010
000011 P
------
DCL TRIANGLE_TYPE
FIXED DEC(1);
IN_REC @00202C10
---
DCL 1 WORK_REC
BASED(ADDR > 345
FFF
345
5 (SIDE_A, SIDE_B, SIDE_C)
PIC'9';
5-19
5-20
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure 5-32 shows the result of entering the KEEPH command on the variable
WORK_REC.
Figure 5-32. Result of Entering the KEEPH Command on a Structured Variable
IN_REC @00202BC0
---
345
FFF
345
------------------------------------ Before TRIMINP1:25/AMODE 31 <>
DCL TRIANGLE_TYPE
FIXED DEC(1);
DCL 1 WORK_REC
BASED(ADDR(IN_REC)),
5 (SIDE_A, SIDE_B, SIDE_C)
PIC'9';
000011 K 01 WORK_REC
-----000010
000011
------
>
The Session Log Entries for PEEK, KEEP, and Automatic KEEP
Every time a PEEK or KEEP command is entered, or an Automatic Keep is displayed in the
Keep window, the command and the value of the data name are entered in the session
log. The format of the session log entry for both the PEEK and KEEP commands is similar.
To reduce the size of the session log, you can turn off the entries of Automatic Keep,
KEEP, and PEEK by using the SET LOG AUTOKEEP OFF, SET LOG KEEP OFF, and SET LOG
PEEK OFF commands.
Since a displayed field is not scrollable in the session log, large alphanumeric items wrap
around to the next line. The number of characters of data per line for an alphanumeric
display is determined by the value specified on the SET LOGSIZE command. The record
length for the session log file can be set to either 80 or 133. If the LOGSIZE is 80, an
alphanumeric display wraps around after 30 characters per line. If the LOGSIZE is 133,
the display wraps around after 80 characters per line.
Figure 5-33 on page 5-20 shows a session log entry for the PEEK command entered for an
array. The LOGSIZE is set to 80. In this example, the values in the displayed array wrap
around every 30 bytes until the entire array of 100 bytes is displayed.
Figure 5-33. Session Log Entry Following Execution of a PEEK Command
------------------------- XPEDITER/TSO - LOG ---------------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: TRIMINP1
MODULE: TRIMAINP COMP DATE: 08/07/1995 COMP TIME: 12:15:45
---------------------------------------------- Before TRIMINP1/AMODE 31 ->
XPED TSO SPF
TEST TRIMAINP
*** TRIMAINP FROM FLGDAA1.PLI.LOADLIB
LINK 08/07/1995
BEFORE TRIMAINP::TRIMINP1:
AFTER TRIMAINP::TRIMINP1:
PAUSE Before TRIMINP1 IN TRIMAINP
BEFORE BREAKPOINT ENCOUNTERED
PEEK N_N_C_TABLE
----+----1----+----2----+----3
000007
01 N_N_C_TABLE
> EQUILATERAL TRIANGLES....ISOSC
----+----4----+----5----+----6
> ELES TRIANGLES ....SCALENE TR
----+----7----+----8----+----9
> IANGLES
.CEEINVALID TRIANGL
----+---10
> ES
....
-------------------------------------------------------------------------------
******************************** BOTTOM OF DATA *******************************
Debugging Interactively
5-21
Unless SET HEXMODE is specified as ON, the session log entry of a displayed field
containing nonrepresentable characters includes the symbol used to represent them:
either periods or the character designated by the SET NONDISP command.
When the SET HEXMODE command is set to ON, nonrepresentable characters are
displayed in hexadecimal format in the session log. SET HEXMODE ON ensures that
sufficient information is provided for a variable containing unprintable characters. All
invalid numeric data (e.g., uninitialized packed data) is represented by question marks
(?).
When an after, before, onetime, trace, when, or GO 1 breakpoint is encountered and the
value of one or more of the kept variables changes, all kept variables are entered in the
session log. The variables whose values have changed are listed first, followed by the
values that have not changed. If none of the values of the kept variables change, a
session log entry is not made.
Using the MOVE Command
You can change the contents of program variables at any time using the MOVE
command. MOVE lets you move either a data name or a literal into another data name.
There are three ways to enter the MOVE command:
1. By typing over a displayed or kept field with a new value, causing an implicit move
2. Directly as a primary command
3. In conjunction with the INSERT command.
The session log entry for all three MOVE command formats is the same.
The following figures show examples of entering the MOVE command in different ways
to produce the same result. The examples will use Figure 5-34 on page 5-21 in which the
variable WORK_REC is displayed.
Figure 5-34. Displaying Variable WORK_RREC Prior to Typing Over Value
000010
000011 P
-----------
000012
DCL TRIANGLE_TYPE
IN_REC @0020FC10
FIXED DEC(1);
DCL 1 WORK_REC
BASED(ADDR) >
5 (SIDE_A, SIDE_B, SIDE_C)
---
345
PIC'9';
ON ENDFILE(INFILE)
Example 1 — Typing Over Value in Variable Field to Cause an Implicit Move:
In Figure 5-35, the displayed value (345) for the variable WORK_REC is typed over with
the new value (999), causing an implicit move.
Figure 5-35. Typing Over Value for Variable WORK_REC
000010
000011 P
-----------
000012
DCL TRIANGLE_TYPE
IN_REC @0020FC10
FIXED DEC(1);
DCL 1 WORK_REC
BASED(ADDR) >
5 (SIDE_A, SIDE_B, SIDE_C)
ON ENDFILE(INFILE)
---
999
PIC'9';
5-22
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Example 2 — Entering MOVE as a Primary Command:
If you enter MOVE ‘345’ TO WORK_REC in the primary command line, the result is an
explicit move. As shown in Figure 5-36, the literal value (345) is moved to the data field
for WORK_REC and the value of WORK_REC is changed from 999 to 345.
Figure 5-36. An Example of MOVE Entered as a Primary Command
000010
000011 P
-----------
000012
DCL TRIANGLE_TYPE
IN_REC @0020FC10
FIXED DEC(1);
DCL 1 WORK_REC
BASED(ADDR) >
5 (SIDE_A, SIDE_B, SIDE_C)
---
345
PIC'9';
ON ENDFILE(INFILE)
Example 3 — Using the MOVE Command in Conjunction with the INSERT Command:
In Figure 5-37, the I (Insert) line command was entered on line 27 to open up a line on
which to insert the MOVE command.A BEFORE breakpoint is also being entered on line
28, following the inserted MOVE command.
Figure 5-37. Inserting a MOVE Command
000025
000026
=====>
’’’’’’
B 028
000029
------
ANALYZE_NEXT_REC: PROC;
READ FILE(INFILE) SE(IN_REC_PTR);
IF ¬OUT_OF_RECS THEN DO;
move ’999’ to work_rec
TRIANGLE_TYPE = 0;
CALL TRITSTP (WORK_REC,
TRIANGLE_TYPE);
When you press Enter, a BEFORE breakpoint will be indicated for line 28. Press PF12 (GO)
and execution pauses following the inserted MOVE command. Refer to Figure 5-38.
Figure 5-38. Source Display After GO is Entered
000025
000026
000027
''''''
=====> B
000029
------
ANALYZE_NEXT_REC: PROC;
READ FILE(INFILE) SE(IN_REC_PTR);
IF ¬OUT_OF_RECS THEN DO;
MOVE '999' TO WORK_REC
TRIANGLE_TYPE = 0;
CALL TRITSTP (WORK_REC,
TRIANGLE_TYPE);
Enter KEEP for WORK_REC. The value indicated on the inserted MOVE command is
displayed in the Keep window as shown in Figure 5-39.
Debugging Interactively
5-23
Figure 5-39. Result of an Inserted MOVE Command
---
000011 K 01 WORK_REC
> 999
000010
01 TRIANGLE_TYPE
> ??
INVALID DECIMAL
** END **
-------------------------------------------- Before TRIMINP1:28/AMODE 31 <>
000025
ANALYZE_NEXT_REC: PROC;
000026
READ FILE(INFILE) SE(IN_REC_PTR);
000027
IF ¬OUT_OF_RECS THEN DO;
''''''
MOVE '999' TO WORK_REC
=====> B
TRIANGLE_TYPE = 0;
000029
CALL TRITSTP (WORK_REC,
-----TRIANGLE_TYPE);
Displaying and Modifying Memory and Registers
Storage areas and general-purpose registers can be accessed if you wish to debug at the
hexadecimal level. The MEMORY command lets you view and modify the storage area
starting from a specified location. A full screen memory display is shown in the dump
format, and any unprotected areas can be typed over to alter the storage content. The
GPREGS command lets you view and modify the registers. A register window is displayed
at the bottom of the screen, and you can type over the hexadecimal values to modify the
registers.
Using the MEMORY Command
The MEMORY command entered without any arguments displays the storage area,
starting from the beginning of the currently displayed procedure.For example, entering
the following command from the primary command line of the TRIMAINP procedure
displays the Memory Display screen shown in Figure 5-40 on page 5-23:
MEMORY
The fourth line on the Memory Display screen contains the base address and a column
template that starts with zero and continues to hexadecimal F. The offsets below the base
address list the displacement from the start of the storage area.
Press PF3 (END) to return to the Source display screen.
Figure 5-40. Result of Entering the MEMORY Command
------------------------ XPEDITER/TSO - MEMORY -------------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: TRIMINP1 MODULE: TRIMAINP COMP DATE: 08/07/1995 COMP TIME: 14:56:06
-------------------------------------------------- Before TRIMINP1/AMODE 31 --
BASE = 07E54FC0 0 - 2 4 - 6 8 - A C - E = 0-2-4-6-8-A-C-E-
******************************* TOP OF DATA **********************************
000000 ===> D4C1C9D5
D7D3C907
90ECD00C
47F0F04C = TRIMAINP..}..000
000010 ===> 07E55638
000001A0
07E554F8
00000000 = .V.......V.8....
000020 ===> 07E54FF4
A8000000
00010100
00000000 = .V|4............
000030 ===> 00000000
00000000
80000000
01002000 = ................
000040 ===> 07E554FC
0000000D
07E54FC8
00000000 = .V.......V|H....
000050 ===> 00000000
5830F010
5810D04C
5800F00C = ......0...}<..00
000060 ===> 1E015500
C00C47D0
F06858F0
C07405EF = ....{..}0..0{...
000070 ===> 58E0D048
18F090E0
104850D0
100441D1 = .\}..0.\..&}....
000080 ===> 000092A0
D0009221
D0019202
D0761B88 = ....}...}...}...
000090 ===> 5080D190
4180D190
5080D060
D203D054 = &.J...J.&.}-K.}.
0000A0 ===> 30785840
30841884
5080D194
9206D199 = ... ....&.J...J.
0000B0 ===> 9213D198
D701D19A
D19A0520
D203D130 = ..J.P.J.J...K.J.
0000C0 ===> 30E0D214
D11B30E4
D203D117
30E0D214 = .\K.J..UK.J..\K.
0000D0 ===> D10230F9
D203D0FE
30E0D214
D0E9310E = J..9K.}..\K.}Z..
0000E0 ===> D203D0E5
30E0D214
D0D03123
947FD0C8 = K.}V.\K.}}..."}.
0000F0 ===> 052000A3
D0D050F0
D0B89216
D1995870 = ....}}&0}...J...
000100 ===> 30105070
D19C181D
185D58F0
301805EF = ..&.J
).0....
5-24
Xpediter/TSO and Xpediter/IMS PL/I User Guide
The MEMORY command can be entered with indirect register addressing to specify a
location. For example, the following command displays memory starting from the
location pointed to by the 24-bit mode address in register 13, as seen in Figure 5-41:
MEMORY R13%
Figure 5-41. Result of Entering MEMORY R13%
------------------------ XPEDITER/TSO - MEMORY -------------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: TRIMINP1 MODULE: TRIMAINP COMP DATE: 08/07/1995 COMP TIME: 14:56:06
-------------------------------------------------- Before TRIMINP1/AMODE 31 --
BASE = 00170270 0 - 2 4 - 6 8 - A C - E = 0-2-4-6-8-A-C-E-
******************************* TOP OF DATA **********************************
000000 ===> A02105D0
001701D0
800DE058
87E550B4 = ...}...}..\..V&.
000010 ===> 00170410
00170410
00170270
87E550B2 = .............V&.
000020 ===> 07E554F8
07E55668
00000000
07E54FC8 = .V.8.V.......V|.
000030 ===> 00170098
07E55668
000000A0
00157038 = .....V..........
000040 ===> 00000003
00157BF8
001F0398
00170410 = ......#8........
000050 ===> 00170410
91E071E0
00000000
00000000 = .....\.\........
000060 ===> 00170400
87EB2BF8
00000000
00000000 = .......8........
000070 ===> 00000000
00000200
00000000
00000000 = ................
000080 ===> 07EB2D9C
001577C8
07EB2D9C
001704D8 = ........H.......
000090 ===> 00000000
00000000
00000000
00000000 = ................
0000A0 ===> 00000638
00000000
00000000
00000000 = ................
0000B0 ===> 00000000
00000000
00000000
001F0130 = ................
0000C0 ===> 00170120
00109B04
07E7DA4C
001680B4 = .........X.<....
0000D0 ===> C5D8E4C9
D3C1E3C5
D9C1D340
E3D9C9C1 = EQUILATERAL TRIA
0000E0 ===> D5C7D3C5
E2F0F0F0
F0C9E2D6
E2C3C5D3 = NGKES0000ISOSCEL
0000F0 ===> C5E240E3
D9C9C1D5
C7D3C5E2
4040F0F0 = ES TRIANGLES 00
000100 ===> F0F0E2C3
C1D3C5D5
C540E3D9
C9C1D5C7 = 00SCALENE TRIANG
000110 ===> D3C5E240
404040F0
F0F0F0C9
D5E5C1D3 = LES
0000INVAL
Also, you can use arithmetic expressions such as the following to access storage.
MEMORY R9%+4
The result is shown in Figure 5-42 on page 5-24.
Figure 5-42. Result of Entering MEMORY R9%+4
------------------------ XPEDITER/TSO - MEMORY -------------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: TRIMINP1 MODULE: TRIMAINP COMP DATE: 08/07/1995 COMP TIME: 14:56:06
-------------------------------------------------- Before TRIMINP1/AMODE 31 --
BASE = 000000A0 0 - 2 4 - 6 8 - A C - E = 0-2-4-6-8-A-C-E-
******************************* TOP OF DATA **********************************
000004 ===> 01222588
00000000
00000000
00000000 = ................
000014 ===> 00000000
00010060
00FBB8B0
28018000 = .......-........
000024 ===> 00000000
00000000
00000000
00000000 = ................
000034 ===> 00000000
00000000
00000000
00000000 = ................
000044 ===> 00000000
00000000
00000000
00000000 = ................
000054 ===> 00000000
00000000
00000000
00000000 = ................
000064 ===> 00000000
00000000
00000000
00000000 = ................
000074 ===> 00000000
00000000
00000000
00000000 = ................
000084 ===> 00000000
00000000
00000000
00000000 = ................
000094 ===> 00000000
00000000
00000000
00000000 = ................
0000A4 ===> 00000000
00000000
00000000
00000000 = ................
0000B4 ===> 00000000
00000000
00000000
00000000 = ................
0000C4 ===> 00000000
00000000
00000000
00000000 = ................
0000D4 ===> 00000000
00000000
00000000
00000000 = ................
0000E4 ===> 00000000
00000000
00000000
00000000 = ................
0000F4 ===> 00000000
00000000
00000000
00000000 = ................
000104 ===> 00000000
00000000
00000000
00000000 = ................
000114 ===> 00000000
00000000
00000000
00000000 = ................
Debugging Interactively
5-25
Using the GPREGS Command
The GPREGS command opens a window and displays the 16 general-purpose registers at
the bottom of the screen. Figure 5-43 shows the result of entering the GPREGS command
for the TRIMAINP procedure. The displayed hexadecimal values can be typed over to
change the register contents.
Figure 5-43. Result of Entering the GPREGS Command
000015
000016
000017
000018
000019
GPREGS
CALL INIT_PARA;
DO WHILE (¬OUT_OF_RECS);
CALL ANALYZE_NEXT_REC;
END;
CALL ENDING_PARA;
R0 ==> 70043C2E R1 ==> 50043FCE
R4 ==> 00043E8A R5 ==> 50043FB2
R8 ==> 00043B40 R9 ==> 00043F54
R12 ==> 00043B98 R13 ==> 00043930
R2
R6
R10
R14
==>
==>
==>
==>
00043210
00043790
000436F0
00043C2C
R3
R7
R11
R15
==>
==>
==>
==>
00043BB8
00000000
000436F0
0009E5DE
The register window can be removed from the display by entering the following
command:
GPREGS OFF
Analyzing Program Logic
This section describes the built-in dynamic analysis features that let you identify
program structure, trace the flow of control, and monitor execution coverage. These
features assist you in understanding what the program does and how a certain location
was reached in the program. The Xpediter/TSO commands covered here are FIND,
EXCLUDE, TRACE, SHOW PREVIOUS, COUNT, and LOCATE.
Searching for Character Strings
The Xpediter/TSO FIND command allows you to search for character and hexadecimal
strings in your source and on other screens during an Xpediter/TSO session. When an
occurrence is found it is highlighted. With the highlighting effect and the capability to
exclude the display of lines that do have the specified string, the Source display screen
can turn into a representation of “data flow cross reference” and a “high-level structure.”
For example, the following entry
FIND N_CNTR
results in the display shown in Figure 5-44. The cursor stops at the first occurrence of
N_CNTR and highlights it. Pressing PF5 scrolls to the next occurrence, and so forth.
5-26
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure 5-44. Result of Searching for a Character String
------------------------- XPEDITER/TSO - SOURCE ------------------------------
COMMAND ===>
SCROLL ===> CSR
CHARS 'N_CNTR' FOUND
** END **
----------------------------------------------- Before TRIMINP1/AMODE 31 <>
-----10 N_NAME
CHAR(21)
-----INIT ('EQUILATERAL TRIANGLES',
-----'ISOSCELES TRIANGLES',
-----'SCALENE TRIANGLES',
-----'INVALID TRIANGLES'),
-----10 N_CNTR
PIC'9999',
-----TX BIN(15,0);
------
000008
DCL IN_REC_PTR
POINTER;
Using the EXCLUDE Command with FIND
The EXCLUDE command can be used with the FIND command to suppress the display of
lines that do not meet the search criteria. The EXCLUDE command includes the keyword
ALL, which excludes all lines from the display. For example, the following commands
results in the display shown in Figure 5-45:
EXCLUDE ALL;FIND N_CNTR ALL
Figure 5-45. Result of Excluding ALL Lines
------------------------- XPEDITER/TSO - SOURCE ------------------------------
COMMAND ===>
SCROLL ===> CSR
4 CHARS 'N_CNTR' FOUND
** END **
---------------------------------------------- Before TRIMINP1/AMODE 31 <>
- - - - - - - - - - - - - - - - - - - - 21 LINES NOT DISPLAYED
-----10 N_CNTR
PIC'9999',
- - - - - - - - - - - - - - - - - - - - 31 LINES NOT DISPLAYED
000021
N_CNTR = 0;
- - - - - - - - - - - - - - - - - - - - 11 LINES NOT DISPLAYED
000031
N_CNTR(TX) = N_CNTR(TX) + 1;
- - - - - - - - - - - - - - - - - - - - 9 LINES NOT DISPLAYED
******
********************** BOTTOM OF MODULE ******************************
In the example, all lines that did not meet the search criteria have been excluded and
only the lines that satisfied the FIND search criteria are displayed.
The NOLINES Keyword and Command
In the previous example, the xxx LINES NOT DISPLAYED message line appears when
the EXCLUDE keyword is used with FIND. A NOLINES keyword is also available with
FIND. Like the NOLINES command, the NOLINES keyword eliminates the message line
that appears with the use of the EXCLUDE keyword (refer to Figure 5-46). However, it is
effective only when used in conjunction with the EXCLUDE keyword.
EXCLUDE ALL;NOLINES;FIND N_CNTR ALL
Debugging Interactively
5-27
Figure 5-46. Result of FIND N_CNTR (With EXCLUDE ALL and NOLINES)
------------------------- XPEDITER/TSO - SOURCE ------------------------------
COMMAND ===>
SCROLL ===> CSR
4 CHARS 'N_CNTR' FOUND
** END **
---------------------------------------------- Before TRIMINP1/AMODE 31 <>
-----10 N_CNTR
PIC'9999',
000021
N_CNTR = 0;
000031
N_CNTR(TX) = N_CNTR(TX) + 1;
******
********************** BOTTOM OF MODULE ******************************
Tracing the Flow of Control
You can trace the flow of control with the TRACE and the SHOW PREVIOUS commands.
Using the TRACE Command
The TRACE command lets you monitor the flow of logic as your procedure executes. You
can trace statements, labels, and procedures. The specified statements are highlighted as
they are executed, without pausing, until a breakpoint is reached, the default 25
statements is reached, an abend is intercepted, a terminal I/O is issued, a keyboard
interrupt is detected, or the procedure completes execution. A record of the command
and each trace breakpoint is written to the session log.
When the TRACE command is issued for any statement, the execution speed can be
controlled by using the SET DELAY command before entering the GO command. For
instance, entering the following command slows the tracing speed to a one half second
delay:
SET DELAY 0.5
While the procedure is executing, the keyboard is unlocked to allow you to interrupt and
stop execution by pressing any key, including the PA1 key.
When tracing procedure calls, you do not see the tracing on the screen. The program
executes until completion and the calling procedure, the called procedure, and the
number of times the calls are made are written to the session log.The call activities can be
viewed by entering the LOG command. For example, the following TRACE command
traces called procedures:
TRACE MODULES
As seen in Figure 5-47 on page 5-28, you can see the flow of control as the various
procedures are called. For additional information on the TRACE command, refer to
“Using the TRACE Command” on page 5-12.
5-28
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure 5-47. Session Log for the TRACE MODULES Command
------------------------- XPEDITER/TSO - LOG ---------------------------------
COMMAND ===>
SCROLL===> CSR
PROGRAM: TRIMINP1
MODULE: TRIMAINP COMP DATE: 08/07/1995 COMP TIME: 12:15:45
------------------------------------------------ After TRIMINP1/AMODE 31 ->
*TRITSTP1:TRITSTP CALLED BY TRIMINP1 2 CALLS
*TRITSTP1:TRITSTP RETURN TO TRIMINP1
*TRITSTP1:TRITSTP CALLED BY TRIMINP1 3 CALLS
*TRITSTP1:TRITSTP RETURN TO TRIMINP1
*TRITSTP1:TRITSTP CALLED BY TRIMINP1 4 CALLS
*TRITSTP1:TRITSTP RETURN TO TRIMINP1
*TRITSTP1:TRITSTP CALLED BY TRIMINP1 5 CALLS
*TRITSTP1:TRITSTP RETURN TO TRIMINP1
*TRITSTP1:TRITSTP CALLED BY TRIMINP1 6 CALLS
*TRITSTP1:TRITSTP RETURN TO TRIMINP1
*TRITSTP1:TRITSTP CALLED BY TRIMINP1 7 CALLS
*TRITSTP1:TRITSTP RETURN TO TRIMINP1
*TRITSTP1:TRITSTP CALLED BY TRIMINP1 8 CALLS
*TRITSTP1:TRITSTP RETURN TO TRIMINP1
*TRITSTP1:TRITSTP CALLED BY TRIMINP1 9 CALLS
*TRITSTP1:TRITSTP RETURN TO TRIMINP1
*TRITSTP1:TRITSTP CALLED BY TRIMINP1 10 CALLS
*TRITSTP1:TRITSTP RETURN TO TRIMINP1
PAUSE AFTER TRIMINP1 IN TRIMAINP
Using the SHOW PREVIOUS Command
The SHOW PREVIOUS command lists, in logical sequence, the previous 100 statements
along with the executed breakpoints. The list presented by the SHOW PREVIOUS
command can be useful in reviewing the execution path to understand how your
program reached the present location. Since any implied breakpoints are recognized with
the SHOW PREVIOUS command, a program that was run with the TRACE ALL LABELS
command presents a list like that shown in Figure 5-48.
Figure 5-48. Result of Entering the SHOW PREVIOUS Command
------------------------- XPEDITER/TSO - SHOW ----------------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: TRIMINP1
MODULE: TRIMAINP COMP DATE: 08/07/1995 COMP TIME: 12:15:45
----------------------------------------------- After TRIMINP1/AMODE 31 ->
********************************* TOP OF DATA **********************************
000001 TRIMAINP: PROC OPTIONS MAIN
TRIMAINP
000020
INIT_PARA: PROC;
INIT_PARA
000025
ANALYZE_NEXT_REC: PROC;
ANALYZE_NEXT_REC
000025
ANALYZE_NEXT_REC: PROC;
ANALYZE_NEXT_REC
000025
ANALYZE_NEXT_REC: PROC;
ANALYZE_NEXT_REC
000025
ANALYZE_NEXT_REC: PROC;
ANALYZE_NEXT_REC
000025
ANALYZE_NEXT_REC: PROC;
ANALYZE_NEXT_REC
000025
ANALYZE_NEXT_REC: PROC;
ANALYZE_NEXT_REC
000025
ANALYZE_NEXT_REC: PROC;
ANALYZE_NEXT_REC
000025
ANALYZE_NEXT_REC: PROC;
ANALYZE_NEXT_REC
000025
ANALYZE_NEXT_REC: PROC;
ANALYZE_NEXT_REC
000025
ANALYZE_NEXT_REC: PROC;
ANALYZE_NEXT_REC
000025
ANALYZE_NEXT_REC: PROC;
ANALYZE_NEXT_REC
000025
ANALYZE_NEXT_REC: PROC;
ANALYZE_NEXT_REC
000034
ENDING_PARA: PROC;
ENDING_PARA
000038 END TRIMAINP;
TRIMAINP
****************************** BOTTOM OF DATA ********************************
Monitoring Execution Coverage
You can monitor execution coverage with the COUNT and SHOW COUNT commands.
Debugging Interactively
5-29
Using the COUNT Command
The COUNT command maintains execution counts, enabling you to analyze execution
coverage after the procedure has executed. You can selectively monitor the number of
times statements, labels, procedures, etc., execute or you can use the ALL keyword to
globally monitor all statements, labels, or procedures. Note that when the ALL keyword is
used, it only applies to the qualified (current) procedure.
A 7-digit counter is displayed at the right of the screen on the same line of each
statement that is counted. Figure 5-49 shows the result of setting counters at every label
by entering the following command, then pressing PF12 (GO).
COUNT ALL LABELS
Figure 5-49. Result of Entering the COUNT ALL LABELS and GO Commands
000020
000021
000022
000023
000024
------
000025
000026
000027
INIT_PARA: PROC;
N_CNTR = 0;
OPEN FILE(INFILE);
OUT_OF_RECS = '0'B;
END INIT_PARA;
0000001
ANALYZE_NEXT_REC: PROC;
READ FILE(INFILE) SET(IN_REC_PTR);
IF ¬OUT_OF_RECS THEN DO;
0000017
Using the SHOW COUNT Command
The statements that are monitored with the COUNT command can be listed by entering
the SHOW COUNT command. The source lines without counters are excluded from the
screen display as illustrated in Figure 5-50.
Figure 5-50. Result of Entering the SHOW COUNT Command
******
- - 000001 B
- - 000020
- - 000025
- - 000034
- - ******
************************ TOP OF MODULE *******************************
- - - - - - - - - - - - - - - - 1 LINE NOT DISPLAYED
TRIMAINP: PROC OPTIONS(MAIN);
0000001
- - - - - - - - - - - - - - - - - 51 LINES NOT DISPLAYED
INIT_PARA: PROC;
0000001
- - - - - - - - - - - - - - - - - 5 LINES NOT DISPLAYED
ANALYZE_NEXT_REC: PROC;
0000012
- - - - - - - - - - - - - - - - 10 LINES NOT DISPLAYED
ENDING_PARA: PROC;
0000001
- - - - - - - - - - - - - - - - - 5 LINES NOT DISPLAYED
********************** BOTTOM OF MODULE ******************************
When the SHOW COUNT command is issued, all statements that have a count are
written to the session log with the 7-digit counters displayed.
Modifying Program Logic
This section describes the Xpediter/TSO commands that let you modify program logic by
bypassing code segments, adding statements, and forcing logic changes.The SKIP,
INSERT, and GOTO commands let you try out fixes dynamically without requiring any
source code modification.
Note:
If you use a postprocessed listing, the listing must have the LIST and MAP
sections for SKIP and GOTO commands to operate.
5-30
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Bypassing Code with the SKIP Command
CAUTION:
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.
A code that you do not want to execute can be bypassed using the SKIP command. The
SKIP command can be used with a statement, a range of statements, a label name, or an
external procedure name.
With the SKIP command, there is no need to comment out code and recompile the
procedure for it to take effect. For example, a call to a procedure that is not yet written
can be simply bypassed without requiring a stub to be developed. For example, to skip
procedure TRITSTP, the following commands are issued:
SKIP TSTPLI:
AFTER 29
KEEP TRIANGLE_TYPE
KEEP WORK_REC
GO
The KEEP commands were issued for TRIANGLE_TYPE and WORK_REC so the effect of
the SKIP command can be seen for these variables. Figure 5-51 shows the results:
Note that WORK_REC and TRIANGLE_TYPE are automatically kept in the window as a
result of the execution arrow at statement 29. The Keep window has been expanded with
the SET KEEP n command so that the explicit keeps and automatic keeps are all displayed.
Figure 5-51. Result of Entering the SKIP Command
------------------------- XPEDITER/TSO - SOURCE --------------------------------
COMMAND ===>
SCROLL===> CSR
NEXT LOGICAL INSTRUCTION IS TRIMINP1:30
000010 K
TRIANGLE_TYPE
> +0
PACKED
IN_REC @0020CBC0
---
000011 K 01 WORK_REC
> 345
IN_REC @0020CBC0
---
000011
01 WORK_REC
> 345
000010
TRIANGLE_TYPE
> +0
PACKED
---------------------------------------------- After TRIMINP1:29/AMODE 31 <>
000028
TRIANGLE_TYPE = 0;
====>> A
CALL TRITSTP (WORK_REC,
-----TRIANGLE_TYPE);
000030
TX = TRIANGLE_TYPE;
The parameter TRIANGLE_TYPE is left untouched as it has been initialized; however, the
procedure can continue execution by processing any data that you move to the variable.
There are a couple of situations to be aware of when using the SKIP command. Setting a
skip at a procedure statement or a PROC label bypasses the statement but not the entire
procedure. All of the instructions generated by the statement, including the initialization
code to set up the registers are bypassed and may cause unpredictable results. Also, use
caution when skipping BEGIN and END statements.
When you skip a statement that sets a switch or flag, the execution path could change or
end in an infinite loop. More subtly, the PL/I compiler generates multiple instructions for
each PL/I verb. Some of these instructions can load base registers for instructions. Since a
Debugging Interactively
5-31
skip bypasses all instructions associated with the verb, a S0C1 or S0C4 can result.The
SKIP command should be deleted in this case.
Use the DELETE SKIP command or the DS line command to delete the SKIP.
Inserting Statements
You can insert Xpediter/TSO commands, such as PEEK, GOTO, and PAUSE, using the
IF...ELSE... constructs to your program. The capability to insert statements allows you to
test fixes before you update the source code and actually recompile the program. Inserted
statements are executed after the last logical statement as if they are part of the source
code. Only one inserted command per line is permitted.
You can also dynamically insert SQL statements and prototype DB2 applications if you
have Xpediter for DB2 Extension and File-AID for DB2 installed. Refer to “Using Xpediter
for DB2 Extension” on page 5-33 for more information.
Figure 5-52 shows the effect of the inserted statements being executed. The PAUSE
command can be used to set a breakpoint within a block of inserted Xpediter/TSO
commands or SQL statements. When the pause breakpoint is encountered, Xpediter/TSO
temporarily pauses execution, issues a message, and returns control to you, as shown.
Figure 5-52. Result of Executing Inserted Statements and Taking PAUSE
------------------------------ XPEDITER/TSO - SOURCE ---------------------------
COMMAND ===>
SCROLL===> CSR
PAUSE REQUESTED BY INSERTED COMMAND
IN_REC @0020FD50
---
000030 K 01 WORK-REC
> 111
** END **
--------------------------------------------- Before TRIMINP1:27/AMODE 31 <>
000025
ANALYZE_NEXT_REC: PROC;
000026
READ FILE(INFILE) SET(IN_REC_PTR);
000027
IF ¬OUT_OF_RECS THEN DO;
''''''
IF WORK_REC = '345'
''''''
KEEP WORK_REC
MOVE '111' TO WORK_REC
=====>
PAUSE
''''''
END-IF;
000028
TRIANGLE_TYPE = 0;
000029
CALL TRITSTP (WORK_REC,
-----TRIANGLE_TYPE);
000030
TX = TRIANGLE_TYPE;
000031
N_CNTR(TX) = N_CNTR(TX) + 1;
000032
END;
The Source display screen is designed after the ISPF/PDF editor. The source code itself
cannot be edited, however, you can insert Xpediter/TSO commands to the display-only
source code by typing over the statement number area with the I (Insert) line command.
Use the D (Delete) line command to delete any lines. The P (Peek) and K (Keep) line
commands cannot be used on lines of inserted code. The syntax of the inserted
statements is checked by Xpediter/TSO before they are executed. If the syntax is
incorrect, an error message is generated and the incorrect statement is highlighted when
you press Enter.
INSERT Processing
You can enter the I (Insert) line command on a statement containing an executable verb
and enter Xpediter/TSO commands following the statement. Only one inserted
command per line is permitted and the inserted line must be less than 61 characters long.
You cannot insert at a line that will not accept a breakpoint. That is, the line must be
executable. Be aware that unpredictable results could occur if you insert lines after the IF
5-32
Xpediter/TSO and Xpediter/IMS PL/I User Guide
of an IF...THEN statement, an internal procedure call, or an internal function call. The
reason for this is that Xpediter/TSO internally generates an after breakpoint on the
statement where the I line command is entered and interpretively executes the inserted
statements only if the internal after breakpoint is reached. In other words, the inserted
statements are associated with the code above them.
Placing the I line command on branching verbs such as END and RETURN is not
permitted. A message INSERT NOT PERMITTED FOLLOWING verb is issued when you
attempt to do so. If you wish to execute statements following the return from the actual
performed paragraph, insert the statement after the last executable code in the out-ofline paragraph.
Refer to the INSERT command in the Xpediter/TSO and Xpediter/IMS Reference Manual for a
list of commands that can and cannot be inserted in your program.
Redirecting Logic with the GOTO Command
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.
The GOTO command forces logic changes by redirecting the next executable statement
to elsewhere in the program. The command can be used to execute a branch, to bypass
statements, to test a loop repeatedly, or to take an alternate path.
Examining Files
You can display a list of all the datasets that are allocated during your test session and
find out whether they are available to your application program by typing SHOW
ALLOCATE on the primary command line. All the files that were allocated by processing
the file list specified on the test screen are shown at the bottom of the screen, following
ddname XOPTIONS.
If you discover an open file problem, first check to see if all the necessary files are
allocated. If you are missing any files, you can dynamically access the file allocation
utility (FAU) during a test session. Type ALLOCATE on the primary command line,
allocate the missing files using the file allocation utility and return to the test session.
You can also execute the TSO ALLOCATE command from the primary command line to
allocate additional files. To execute a TSO command, type TSO followed by the TSO
command; for example:
TSO ALLOCATE DD(OUTFILE) DSN(*).
Note:
Additional files allocated during a test session are not freed when you terminate
the test session and return to the test screen. Xpediter/TSO only allocates and
deallocates files that are contained in the file list specified on the test screen.
Figure 5-53 on page 5-33 contains an example of a SHOW ALLOCATE screen.
Debugging Interactively
5-33
Figure 5-53. SHOW ALLOCATE Screen
------------------------- XPEDITER/TSO - SHOW ---------------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: MAINPLI1
MODULE: MAINPLI
COMP DATE: 12/16/1994 COMP TIME: 14:56:06
------------------------------------------------ After MAINPLI1:32/AMODE 31 ->
******************************** TOP OF DATA **********************************
*** ALLOCATED DATA SET DDNAMES AND DSNAMES ***
001 SYSPRINT TERMINAL
NEW DELETE
002 SYSTERM TERMINAL
NEW DELETE
003 SYSIN
TERMINAL
NEW DELETE
004 ISPCTL0 SYS95004.T095521.RA000.FLGDAA1.R0023146
NEW DELETE
005 ISPCTL1 SYS95004.T095521.RA000.FLGDAA1.R0023147
NEW DELETE
006 ISPCTL2 SYS95004.T095521.RA000.FLGDAA1.R0023148
NEW DELETE
007 SYS00001 SYS1.BRODCAST
IN-USE SHR KEEP
008 ISPPROF FLGDAA1.ISPF.ISPPROF
IN-USE SHR KEEP
009 ISPLLIB SUPPORT.INHOUSE.ISPFLLIB
IN-USE SHR KEEP
010
"
SYS2.PROD.ISPLLIB
IN-USE SHR KEEP
011 ISPMLIB SUPPORT.INHOUSE.ISPFMLIB
IN-USE SHR KEEP
012
"
SYS2.PROD.ISPMLIB
IN-USE SHR KEEP
013 ISPPLIB SUPPORT.INHOUSE.ISPFPLIB
IN-USE SHR KEEP
014
"
SYS2.PROD.ISPPLIB
IN-USE SHR KEEP
013 ISPSLIB SUPPORT.INHOUSE.ISPFSLIB
IN-USE SHR KEEP
014
"
SYS2.PROD.ISPSLIB
IN-USE SHR KEEP
You can view the file contents by typing BROWSE ddname or BROWSE 'dataset name' if
the file is a sequential file or a member of a PDS. ISPF allows you to split screens and
browse or edit a file while you are debugging your program with Xpediter/TSO.
Remember that the Xpediter/TSO test session default for PF2 is PEEK CSR (not SPLIT) and
for PF9 is GO 1 (not SWAP).
None of the ISPF commands are available in the dialog environment, with the exception
of Xpediter’s TSO command. See the description of the TSO command in the Xpediter/TSO
and Xpediter/IMS Reference Manual for a list of ineligible TSO command parameters.
Using Xpediter for DB2 Extension
This section describes how to:
• Browse and edit DB2 table data while testing your program.
• Analyze SQL statement execution with the XP line command.
• Prototype SQL logic by inserting SQL statements.
Refer to the File-AID for DB2 Reference Manual for information about using File-AID for DB2.
Notes:
1. Xpediter/TSO supports debugging of any DB2 program within all execution
environments selectable under the Environments Menu, with the following
exceptions:
2. The first exception to this Xpediter/TSO support rule is the Xpediter/TSO dialog
environment.
3. The second exception to normal debugging is that Xpediter for DB2 Extension
cannot be accessed when using the Batch Connect facility.
Browsing and Editing DB2 Table Data
When debugging DB2 programs, you can access File-AID for DB2 to inspect and
manipulate the DB2 table data associated with SQL statements being executed.
For example, you can experiment with program SQL statements and then enter FADB2
EDIT to access File-AID for DB2 and change the test data associated with the statements.
5-34
Xpediter/TSO and Xpediter/IMS PL/I User Guide
The FADB2 EDIT command transfers control directly to the File-AID for DB2 Edit
function. Once in File-AID for DB2 Edit, you can enter the information to access the table
data you want to view. Refer to the File-AID for DB2 Reference Manual for information about
using the Browse and Edit functions.
Analyzing SQL Statement Execution
The XP line command can be entered for any SELECT, DELETE, INSERT, or UPDATE SQL
statement in your program to display information about the execution of the statement.
The Explain data is also stored in a DB2 table called user id.Plan_Table.The stored Explain
data can be used to generate reports using the File-AID for DB2 Reports facility or view the
Plan_Table using the File-AID for DB2 Browse facility.
Note:
The Plan_Table must exist before you use the XP line command.
For example, in Figure 5-54, the XP line command is entered on the EXEC SQL DECLARE
CURSOR line.
Figure 5-54. Using the FADB2 EXPLAIN Line Command
------
-----XP -----------------------
/***$$$
EXEC SQL DECLARE DIRECTORY CURSOR FOR
SELECT *
FROM
VTRIDB2
WHERE LASTNAME LIKE :LNAME_WORK
AND FIRSTNAME LIKE :FNAME_WORK
When the XP line command is entered, File-AID for DB2 is accessed, and the SQL Source
Analysis screen shown in Figure 5-55 is displayed.
Figure 5-55. SQL Source Analysis Screen
SSID: DSNG
SQL Statement: 1 OF 1
INSERT
INTO VTRIDB2 (SSNR,LASTNAME,FIRSTNAME,STREETADR,CITY,STATE,ZIPCODE,
PHONENR,LICENSENO)
VALUES ( :SSNR,:LASTNAME,:FIRSTNAME,:STREETADR,:CITY,:STATE,:ZIPCODE,
:PHONENR,:LICENSENO)
Line Commands:
T - Table Information
I - Index Information
F - Formatted Display
Qblk Plan
Access Match Index TS SortN SortC Table Pre Col Mix
CMD No
No Method Type Cols Only Lock UJOG UJOG
No
Fetch Eval Seg
1
0
0
0
N
IX NNNN NNNN
1
0
Access Access
Join
Join
Table: FLGJXY1.VTRIDB2
Degree Pgroup ID Degree Pgroup ID Index: <NONE>
N/A
N/A
N/A
N/A
******************************* BOTTOM OF DATA *****************************
Debugging Interactively
5-35
Inserting Program SQL Statements
You can dynamically insert and execute SQL statements from within your Xpediter/TSO
source. SQL statements are inserted with the INSERT command. Refer to “Modifying
Program Logic” on page 5-29 for detailed information about the INSERT command.
The inserted statements are executed after the last logical statement as if they are part of
the source code. The capability to insert SQL statements lets you test fixes before you
update the source code and recompile the program.
Each inserted SQL statement must be prefixed by EXEC SQL and suffixed by END-EXEC.
Otherwise, Xpediter/TSO issues a syntax error message. Any data entered after the ENDEXEC statement, on the same line, is ignored. Error messages regarding inserted SQL
statements are displayed in the same manner as error messages regarding other inserted
statements. Additional help is available for negative SQL return codes by entering the
primary command FADB2 HELP after the error message is displayed.
Following is an example of an inserted SELECT SQL statement:
MOVE ’216-56-4537’ TO SSNR
EXEC SQL SELECT LASTNAME
INTO :LASTNAME
FROM FLGJXY1.VTRIDB2
WHERE SSNR = :SSNR
END-EXEC
Inserted SQL statements appear in the Xpediter/TSO session log and script in the same
manner as other inserted statements. You can keep or display host variables in inserted
SQL statements.
SQL Statements That Can Be Inserted in Your Program
The following SQL statements are supported (i.e., the statements can be inserted in your
source and are valid in a debugging session):
ALTER INDEX
Changes the description of an index.
ALTER STOGROUP
Changes the description of a storage group.
ALTER TABLE
Changes the description of a table.
ALTER TABLESPACE
Changes the description of a table space.
BEGIN DECLARE
Marks the beginning of a host variable declaration section.
CLOSE
Closes the cursor and deletes the temporary application-specific result table.
COMMENT ON
Replaces or adds a comment to the description of a table, view, or column.
COMMIT
Terminates a unit of recovery and commits the DB2 table changes made by that unit
of recovery.
CREATE DATABASE
Defines a database.
5-36
Xpediter/TSO and Xpediter/IMS PL/I User Guide
CREATE INDEX
Creates an index on a table.
CREATE STOGROUP
Defines a storage group or set of volumes, controlled by a VSAM catalog, on which
storage can later be allocated for table spaces and indexes.
CREATE SYNONYM
Defines an alternate name for a table or view.
CREATE TABLE
Creates a table.
CREATE TABLESPACE
Allocates and formats table spaces.
CREATE VIEW
Defines a view of one or more tables.
DECLARE CURSOR
Associates a cursor name with OPEN, FETCH, and CLOSE statements, which declare
and retrieve data from an application specific result table row-by-row. DECLARE
CURSOR can be inserted into the executable portion of a program.
DECLARE STATEMENT
Declares a statement for dynamic SQL.
DECLARE TABLE
Declares a table. The DECLARE TABLE declarative statement can be inserted into the
application program. It causes host variable locations to be defined in accordance to
the columns of the declared table. You can reference these columns in subsequent
SQL statements.
DELETE
Deletes one or more rows from a table.
DESCRIBE
Provides a description of the columns in a table or view.
DROP
Removes an object and its description in the DB2 catalog.
END DECLARE
Marks the ending of a host variable declaration section.
EXECUTE
Executes a prepared SQL statement.
EXECUTE IMMEDIATE
Prepares and executes an SQL statement.
EXPLAIN
Obtains information about how an SQL statement will be executed. An example
showing the use of EXPLAIN is given in “Analyzing SQL Statement Execution” on
page 5-34.
FETCH
Positions the cursor on the next row of the application-specific result table and
assigns the values of that row to host variables in the application program.
Debugging Interactively
5-37
GRANT
Grants privileges.
INSERT
Inserts rows into a table or view.
LABEL ON
Adds or replaces labels in the catalog descriptions of tables, views, columns, or sets of
columns.
LOCK TABLE
Acquires a shared or exclusive lock on a table.
OPEN
Opens a cursor so that it can be used by FETCH to fetch rows from the applicationspecific result table.
PREPARE
Dynamically prepares an SQL statement for execution.
REVOKE
Revokes privileges.
ROLLBACK
Terminates a unit of recovery and backs out database changes made by that unit of
recovery.
SELECT
Specifies a result table and selects rows to view.
SET
Changes the value of the authorization ID.
UPDATE
Updates the values of specified columns in rows of a table or view.
Notes:
1. The syntax for all SQL statements is explained in the IBM Database 2 Reference manual.
2. Host variables can be used within inserted SQL. Xpediter/TSO requires that each host
variable be preceded by a colon even though DB2 does not always require it.
3. Within the BTS/DLI setup, recovery of DB2 tables and IMS databases is
uncoordinated. The SQL COMMIT and ROLLBACK commands commit and rollback
changes made to DB2 tables only; they do not affect your IMS databases.
Debugging a Sourceless Program
Xpediter/TSO allows you to interactively debug programs that do not have the source
available (no source listing in the DDIO). You can choose either of two available
methods.
If requested, Xpediter/TSO can create a “pseudo-assembler” view of the object code. With
this method, a temporary source member will be created. This allows you to debug main
programs and subprograms while employing the same strategy you would use if a DDIO
source listing had been created during assembly. See “Creating Pseudo-Assembler Source”
on page 5-41 for more information.
5-38
Xpediter/TSO and Xpediter/IMS PL/I User Guide
You can also choose to use Xpediter’s traditional support for programs without source.
With this support, you can debug “sourceless” main programs, subprograms, or
GETMAINed areas in the same manner as interactive source level debugging, with a few
differences. Test session setup and startup is the same as setting up a session to
interactively debug at the source level. The differences occur during the debugging
session:
• Xpediter/TSO debugging commands such as AFTER, BEFORE, COUNT, ONETIME,
SKIP, TRACE, WHEN, PEEK, KEEP, GOTO, and DELETE cannot be used.
• To set a breakpoint, you must use the AT command, which sets a before breakpoint.
When the AT breakpoint is reached, the AT Display screen shows your sourceless
program in dump format. You can enter Xpediter/TSO debugging commands such as
GPREGS, MEMORY, SHOW, and so on.
Accessing a Sourceless Main Program
When program execution begins and the main program does not have source, the session
log is automatically displayed with the message,
NO SOURCE LISTING DATA SET MEMBER FOR procedure-name.
Refer to Figure 5-56.
Figure 5-56. Session Log Showing No Source Message for a Main Procedure
.
-------------------------- XPEDITER/TSO - LOG -------------------------------
COMMAND ===>
SCROLL ===> CSR
NO SOURCE LISTING DATA SET MEMBER FOR TRIMINP1
---------------------------------------------------------- Before TRIMINP1 ->
********************************* TOP OF DATA *******************************
+---------------------------------------------------------------------------+
:
JOB: FLGDAA1
:
: XPEDITER/TSO RELEASE 06.02.S1
CUSTOMER # 010000
STEP: TSOPROC
:
: TAPE CREATE DATE 93244
DATE: 02/22/1995:
: COMPUWARE CORPORATION
TIME: 17.31.27 :
+---------------------------------------------------------------------------+
XPED TSO SPF
TEST TRIMAINP
*** TRIMAINP FROM FLGDAA1.TEST62.LOADLIB
LINK 02/22/1995
******************************** BOTTOM OF DATA *****************************
You can use the AT command on the Log screen to set a breakpoint in the specified
program if you are familiar with the program. However, if you are not familiar with the
program, you can use the MEMORY command to display the program in dump format.
For example:
MEMORY TRIMAINP:
displays the Memory screen showing a dump of TRIMAINP.
The AT command can then be entered to set breakpoints in the program. Issuing the AT
command will also load the module into memory if it is not loaded. The full syntax of
the AT command is provided in the Xpediter/TSO and Xpediter/IMS Reference Manual.
Note:
The AT command can also be entered in an initial script.
For example, entering the following on the Memory screen displays the At Display screen
shown in Figure 5-57 on page 5-39.
AT TRIMINP1:+C;GO
Debugging Interactively
5-39
Figure 5-57. AT Display Screen
------------------------- XPEDITER/TSO - AT DISPLAY --------------------------
COMMAND ===>
SCROLL ===> CSR
AT ADDRESS 08267B14 : 90ECD00C
: STM 14,12,12(13)
--------------------------------------------------------- Before TRIMINP1+C --
BASE = 08267B08
0 - 2 4 - 6 8 - A C - E = 0-2-4-6-8-A-C-E-
******************************* TOP OF DATA **********************************
00000C
===> 00ECD00C 47F0F04C 08268180 00000168 = ..}..00<........
00001C
===> 08267FF0 00000000 08267B40 A8000000 = ..~0......# ....
00002C
===> 00010100 00000000 00000000 00000000 = ................
00003C
===> 80000000 01002000 08267FF4 0000000B = ..........~4....
00004C
===> 08267B14 00000000 00000000 5830F010 = ..#...........0.
00005C
===> 5810D04C 5800F00C 1E015500 C00C47D0 = ..}<..0.....{...
00006C
===> F06858F0 C07405EF 58E0D048 18F090E0 = 0..0{....\}..0..
00007C
===> 104850D0 100441D1 000092A0 D0009221 = ..&}...J....}...
00008C
===> D0019202 D0761B88 5080D140 4180D140 = }...}...&.J ..J.
00009C
===> 5080D060 D203D054 30705840 30BC1884 = &.}-K.}.... ....
0000AC
===> 5080D144 9206D149 9213D148 D701D14A = &.J...J...J.P.J.
0000BC
===> D14A0520 D207D0C0 306841B0 D0D050B0 = J¢..K.}{....}}&.
0000CC
===> D0C058E0 307450E0 D1504180 D0D05080 = }{.\..&J&..}}&.
0000DC
===> D1545F80 30785080 D15450D0 D16441F0 = J.¨...&.J.&}J...
0000EC
===> 317050F0 D1605850 307C5050 D1585050 = ..&0J-.&.@&&J.&.
0000FC
===> D1585880 D1545E80 30785080 D1545870 = J...J.;...&.J...
00010C
===> D1605870 700007F7 5870D154 D2147000 = J-.....7..J.K...
00011C
===> 31105850 D1584650 293A50D0 D1644170 = ...&J..&..&}J...
If the address specified with the AT command is not a valid instruction (data or
privileged), a message is returned. Also, if the specified program has source, no
breakpoint is set and the message MODULE HAS SOURCE; USE Xpediter BREAKPOINT
COMMANDS is displayed.
On the AT Display screen, the offset and the instruction pointer are highlighted,
indicating where the breakpoint is set. The message area contains the breakpoint address
and the instruction in hexadecimal and mnemonic form. If the AT command is used on
an address and not in a module loaded by Xpediter/TSO, the compile date and time
displayed on the third line will be blank.
Accessing a Sourceless Subprogram
When your debugging session begins and your main program has source, the Source
display screen is displayed. You can set breakpoints in the regular manner on this screen.
Normally, breakpoints can be set in a subprogram by entering a fully qualified breakpoint
command or using the SOURCE or INTERCEPT commands to access the subprogram from
this screen. However, if the subprogram does not have source, the message NO SOURCE
LISTING INFORMATION FOUND FOR MODULE is displayed at the top of the source
display.
If you are not familiar with the program, you can use the MEMORY command to access
main storage and display the module in dump format on the Memory screen. For
example:
MEMORY TRITSTP:
With the program displayed on the Memory screen, you can decide exactly where you
want to set breakpoints using the AT command.
If you are familiar with the application you are debugging, you can use the AT command
with the module/procedure name to set a breakpoint at the 0 displacement in the
module. For example:
AT TRITSTP:
When the AT breakpoint is encountered, the AT Display screen shown in Figure 5-57 on
page 5-39 is displayed and program execution is paused at the specified offset.
5-40
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Using Xpediter/TSO Commands for Sourceless Debugging
The rules for using Xpediter/TSO commands for sourceless debugging are as follows:
Primary Commands
None of the debugging commands, such as, AFTER, BEFORE, COUNT, ONETIME, SKIP,
TRACE, WHEN, PEEK, KEEP, GOTO, GO n, and DELETE are valid. The GO command is
valid. All other commands can be used.
Line Commands
The only valid line commands are X (eXclude) and T (Template). To insure proper results,
the rest of the line command area should be blanked out after entering the line
command.
Note:
Typing over instructions with X’00A3’ will not be recognized as a breakpoint. A
S0C1 abend occurs when the typed over instruction is executed.
The following are examples of using some Xpediter/TSO commands to debug a sourceless
program.
Using the UP command on the AT Display screen scrolls the screen toward the beginning
of the module/procedure. Scrolling beyond the beginning of the module/procedure
displays negative offsets. Using the LOCATE * command scrolls to the current execution
point.
The GPREGS command can be used to open a modifiable window at the bottom of your
screen. The register values displayed can be changed by typing over the values. An
example of the GPREGS window is shown in Figure 5-58.
Figure 5-58. GPREGS Window on the AT Display Screen
------------------------- XPEDITER/TSO - AT DISPLAY ---------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: TRIMINP1 MODULE: TRIMAINP COMP DATE: 02/22/1995 COMP TIME: 19:44:00
--------------------------------------------------------- Before TRIMINP1+C --
BASE = 08267B08
0 - 2 4 - 6 8 - A C - E = 0-2-4-6-8-A-C-E-
******************************* TOP OF DATA **********************************
00000C
===> 00ECD00C 47F0F04C 08268180 00000168 = ..}..00<........
00001C
===> 08267FF0 00000000 08267B40 A8000000 = ..~0......# ....
00002C
===> 00010100 00000000 00000000 00000000 = ................
00003C
===> 80000000 01002000 08267FF4 0000000B = ..........~4....
00004C
===> 08267B14 00000000 00000000 5830F010 = ..#...........0.
00005C
===> 5810D04C 5800F00C 1E015500 C00C47D0 = ..}<..0.....{...
00006C
===> F06858F0 C07405EF 58E0D048 18F090E0 = 0..0{....\}..0..
00007C
===> 104850D0 100441D1 000092A0 D0009221 = ..&}...J....}...
00008C
===> D0019202 D0761B88 5080D140 4180D140 = }...}...&.J ..J.
00009C
===> 5080D060 D203D054 30705840 30BC1884 = &.}-K.}.... ....
0000AC
===> 5080D144 9206D149 9213D148 D701D14A = &.J...J...J.P.J.
0000BC
===> D14A0520 D207D0C0 306841B0 D0D050B0 = J¢..K.}{....}}&.
0000CC
===> D0C058E0 307450E0 D1504180 D0D05080 = }{.\..&J&..}}&.
0000DC
===> D1545F80 30785080 D15450D0 D16441F0 = J.¨...&.J.&}J...
GPREGS R0 ==> 000C2000 R1 ==> 00000000 R2 ==> 001920B4 R3 ==> 00181100
R4 ==> 00000001 R5 ==> 00000000 R6 ==> 08267B14 R7 ==> 00192000
R8 ==> 00000001 R9 ==> 000000A0 R10 ==> 00179038 R11 ==> 00000000
R12 ==> 00179BF8 R13 ==> 001921D0 R14 ==> 80181580 R15 ==> 08267B00
Data and instruction areas can be typed over, as long as a breakpoint is not set on the
instruction being typed over.
The SHOW ACTIVE command can be entered to display a summary of general-purpose
register contents, PSW, and some control block information. The result of the SHOW
ACTIVE command is shown in Figure 5-59 on page 5-41.
Debugging Interactively
5-41
Figure 5-59. SHOW ACTIVE Display Screen
------------------------------ XPEDITER/TSO - SHOW ----------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: TRIMINP1 MODULE: TRIMAINP COMP DATE: 02/22/1995 COMP TIME: 19:44:00
--------------------------------------------------------- Before TRIMINP1+C --
**************************** TOP OF DATA **********************************
GPREGS R0 ==> 000C2000 R1 ==> 00000000 R2 ==> 001920B4 R3 ==> 00181100
R4 ==> 00000001 R5 ==> 00000000 R6 ==> 08267B14 R7 ==> 00192000
R8 ==> 00000001 R9 ==> 000000A0 R10 ==> 00179038 R11 ==> 00000000
R12 ==> 00179BF8 R13 ==> 001921D0 R14 ==> 80181580 R15 ==> 08267B00
PSW
XRXXXTIE
KEY
CMWP
SH CC
PROGMASK
AMODE
INSTR ADDR
00000111
8
1101
00 00
1110
1
88267B16
INSTR
ADDRESS 08267B14 : 90ECD00C
OPCODE STM
OP1
R14
: 80181580
R12
: 00179BF8
OP2
001921DC : 40404040404040404040404040404040404040404040404040404040
TCB
008A7D90
ASID
01A5
CVT
00FD44B0
JSCB
008FD1F4
TIOT
008DB000
The END command returns you to the previously displayed AT Display screen as shown
in Figure 5-58 on page 5-40.
The SHOW AT command can also be entered to display all the outstanding breakpoints
set by the AT command.
Use the DELETE AT command to remove all outstanding AT breakpoints.
Creating Pseudo-Assembler Source
Xpediter/TSO allows you to interactively debug programs for which source is not
available (no source listing in the DDIO), such as old modules which were compiled
before Xpediter was acquired. By entering the PSEUDOSOURCE command (commonly
abbreviated as PSEUDOSO, PSEUDO, or PS), you can display pseudo-assembler source on
the Xpediter/TSO Source screen.
This feature enables you to debug main programs and subprograms in much the same
way as with Xpediter’s interactive source level debugging. Test session setup and startup
is the same as for interactive debugging at the source level. Only minor differences occur
during the debugging session.
Pseudo-Source Creation for a Main Program
When program execution begins and the main program does not have source, the session
log is automatically displayed with the message NO SOURCE LISTING DATA SET
MEMBER FOR procedure-name as shown in Figure 5-60 on page 5-42.
5-42
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure 5-60. No Source Message
-------------------------- XPEDITER/TSO - LOG ------------------------------
COMMAND ===>
SCROLL ===> CSR
NO SOURCE LISTING DATA SET MEMBER FOR TRIMAINA
---------------------------------------------------------- Before TRIMAINA -
********************************* TOP OF DATA ******************************
+---------------------------------------------------------------------------
:
JOB: SCTSO00
: XPEDITER/TSO RELEASE 07.04.00
CUSTOMER # 010000
STEP: TSOPROC
:
DATE: 05/27/2004
: COMPUWARE CORPORATION
TIME: 12.33.16
+---------------------------------------------------------------------------
XPED TSO SPF
TEST TRIMAINA
*** TRIMAINA FROM SCTSO11.TEST74.LOADLIB
LINK 10/19/9
******************************** BOTTOM OF DATA ****************************
You can enter the PSEUDO command on the Log screen to request a pseudo-assembler
view of the object module. For more information on using the PSEUDO command, refer
to the Xpediter/TSO and Xpediter/IMS Reference Manual. In this example, you would enter the
command with the name of the target program as a parameter:
PSEUDO TRIMAINA
Xpediter/TSO would create a pseudo-assembler view of the program and display it on the
Source screen as shown in Figure 5-61.
Figure 5-61. Pseudo-Assembler on Source Screen
------------------------- XPEDITER/TSO - SOURCE ------------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: TRIMAIANA MODULE: TRIMAINA COMP DATE: 10/19/1999 COMP TIME:13:57:00
** END **
------------------------------------------------------- Before TRIMAINA ->
******************************** TOP OF MODULE ********************************
-----TRIMAINA CSECT
000000
90EC D00C
STM
R14,R12,12(R13)
*..}.*
000004
18CF
LR
R12,R15
*..*
000006
41B0 C0F8
LA
R11,248(,R12)
*..{8*
00000A
50DB 0004
ST
R13,4(R11)
*&...*
00000E
50BD 0008
ST
R11,8(R13)
*&¨..*
000012
18DB
LR
R13,R11
*..*
000014
4100 C01C
LA
R0,28(,R12)
*..{.*
000018
47F0 C024
B
36(,R12)
*.0{.*
00001C
DC
CL6'TRITAD'
000022
4040 1B11
STH
R4,2833(,R1)
* ..*
000026
0A08
SVC
8
LOAD
*..*
000028
5000 C1A0
ST
R0,416(,R12)
*&.A.*
00002C
4100 C034
LA
R0,52(,R12)
*..{.*
Each line of the pseudo-assembler source view is composed of a hex representation of the
instruction on the left, the assembler equivalent in the center, and a character
representation on the right. The screen is formatted the same as the standard view
presented when a DDIO source listing is available. From this screen, breakpoints can be
set and stepping initiated in the same way as when debugging an Assembler application
with source.
Note:
The PSEUDO command can also be entered in an initial script.
Debugging Interactively
5-43
Pseudo-Source Creation for a Subprogram
When your debugging session begins and your main program does have source, the
Source screen is displayed. You can set breakpoints in the regular way on this screen.
Normally, you would set breakpoints in a subprogram by entering a fully qualified
breakpoint command or by using the SOURCE or INTERCEPT commands to access the
subprogram from this screen. However, if the subprogram did not have source, the
message NO SOURCE LISTING INFORMATION FOUND FOR MODULE would be
displayed at the top of the source display.
You can use the PSEUDO command at this point (or before entering the SOURCE or
INTERCEPT command, if you know no source listing member exists) to bring up the
pseudo-assembler view. For example, if the subroutine TRISUB was linked into a multiCSECT object TRIPAK, the command would be entered as follows:
PSEUDO TRIPAK::TRISUB:
Debugging a Pseudo-Source Program
The PSEUDO command is used to generate a pseudo-assembler source view of a program.
Even if the original source used to create the program was a high-level language such as
COBOL or C, the pseudo-source view will be displayed as assembler.
Xpediter/TSO analyzes the object code to construct an assembler interpretation. Because
this source view is an approximation of the assembler code corresponding to the
machine code, you should have assembler knowledge in order to verify and step through
the displayed image.
A DDIO source listing and a pseudo-assembler view cannot co-exist for a single program
during an Xpediter test session. You can either use the DDIO source listing for a program
(with a TEST, INTERCEPT, or initial SOURCE command, for example), or create a pseudoassembler view for the program by entering the PSEUDO command. The command that is
entered first will determine which source is used for the rest of the session.
Unlike when using the INTERCEPT command, when the pseudo-assembler view is first
displayed using the PSEUDO command, no breakpoints are set. You must set a breakpoint
in order to have execution pause in the desired module.
Before setting a breakpoint, you should verify that the assembler code is accurate. It is
possible for Xpediter to have misinterpreted some data elements as instructions. This
may cause errors when setting breakpoints or stepping through the code, because
Xpediter sometimes needs to place breakpoints on every instruction. To avoid this
problem, you need to make Xpediter treat as data the code it previously identified as
being an instruction. This is done by entering the SET DATA command for the applicable
line. If you need to change the data line back to an instruction, enter the SET INSTR
command.
If data is misinterpreted as an instruction, it is possible for Xpediter to lose track of the
program’s instruction boundaries. In this situation, you should enter the PSEUDO
command with the appropriate OFFSET parameter to indicate where Xpediter should
restart its construction of a new assembler view. In the example shown in Figure 5-61 on
page 5-42, you need to prevent Xpediter from treating the spaces after the literal TRITAD
as a STORE HALFWORD instruction. To do this, make Xpediter analyze the code again,
beginning at offset 24, by entering the following command:
PS TRIMAINA 24
The new pseudo-assembler source generated by Xpediter is shown in Figure 5-62 on page
5-44.
5-44
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure 5-62. Regenerated Pseudo-Assembler Source
------------------------- XPEDITER/TSO - SOURCE ------------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: TRIMAIANA MODULE: TRIMAINA COMP DATE: 10/19/1999 COMP TIME:13:57:00
** END **
------------------------------------------------------- Before TRIMAINA ->
******************************** TOP OF MODULE ********************************
-----TRIMAINA CSECT
000000
90EC D00C
STM
R14,R12,12(R13)
*..}.*
000004
18CF
LR
R12,R15
*..*
000006
41B0 C0F8
LA
R11,248(,R12)
*..{8*
00000A
50DB 0004
ST
R13,4(R11)
*&...*
00000E
50BD 0008
ST
R11,8(R13)
*&¨..*
000012
18DB
LR
R13,R11
*..*
000014
4100 C01C
LA
R0,28(,R12)
*..{.*
000018
47F0 C024
B
36(,R12)
*.0{.*
00001C
DC
CL6'TRITAD'
000022
DC
CL2' '
000024
1B11
SR
R1,R1
*..*
000026
0A08
SVC
8
LOAD
*..*
000028
5000 C1A0
ST
R0,416(,R12)
*&.A.*
When you are sure the pseudo-assembler view is accurate, you can start debugging using
all the commands you would normally use for a program with a matching DDIO source
listing. Primary and line commands can both be used, including BEFORE, AFTER,
COUNT, ONETIME, and TRACE. Only limited output will be displayed for data-related
commands such as PEEK and KEEP, because Xpediter has no information about a data
element’s starting location, size, or data-type. The VERIFY and MEMORY commands can
be used to view the underlying storage, and you can enter the GPREGS command to
display the current contents of the general purpose registers in a modifiable window at
the bottom of your screen. The SHOW ACTIVE command can also be entered to display a
summary of register contents, the PSW, and some control block information.
You may still want to use the AT command instead of the PSEUDO command in certain
situations, such as when you want to set a breakpoint in a memory location not
contained in a loaded module.
Displaying Environmental Data
If you have Abend-AID Release 8.0.4 or above installed at your site, you can use the AA
SNAP command to display an Abend-AID Snapshot report containing environment
specific run-time characteristics during a test session. If you have the VSAM, IDMS, IMS,
or DB2 Abend-AID options, the report displays subsystem-related debugging information
as follows:
IDMS
•
•
•
•
•
•
•
CA-IDMS environment data (subschema, commit point, status)
Subschema control (DB-Key information, current and error record/area)
Database command trace (database call and status trace)
DB-Key cross reference
Current records (record name, DB-Key)
Current sets (set name, record name, program reference, DB-Key)
Current areas (area name, record name, mode, program reference, DB-Key).
DB2
• SQL return code
Debugging Interactively
•
•
•
•
•
•
•
•
•
Host variable
SQL statement
DB2 release, subsystem, authorization, attach mode
Plan, bind date/time, isolation, acquire, release, validate
DBRM, precompile date/time, host language, SQL escape, SQL decimal
Host variables referenced
Table and column definition
SQLCA
Plan dependencies.
IMS
• Function call
• Current PCB (PCB address, database name, segment level, status code, process
options, segment name, Key length, number of segments, Key feedback length)
• JCB database call trace (call type, status code, description)
• SSA.
VSAM
•
•
•
•
Dataset ddname
Access method
Record and Key length
File request type.
For an example of displaying a Snapshot report and browsing the data, refer to
“Displaying the Abend-AID Snapshot Report” on page 6-2.
5-45
5-46
Xpediter/TSO and Xpediter/IMS PL/I User Guide
6-1
Chapter 6.
Handling Run-Time Errors
Chap 6
Xpediter/TSO intercepts program abends and prevents the system from producing a
dump.
When an abend occurs in a program for which the source is available, execution
automatically pauses, the execution arrow points to the offending statement, and a
message indicating the action to take is displayed.
Figure 6-1 is an example of Xpediter/TSO responding to an abend.
Figure 6-1. Intercepting an Abend
-------------------------- XPEDITER/TSO - SOURCE ------------------------------
COMMAND ===>
SCROLL ===> CSR
S0C7 ABEND ENCOUNTERED, USE "AA SNAP" COMMAND FOR ADDITIONAL INFORMATION
** END **
------------------------------------- SOC7 Abend at TRITSTP1:9/AMODE 31 <>
=====>
VALIDATE_TRIANGLE: PROC;
000010
A_N_B = A + B;
000011
A_N_C = A + C;
000012
B_N_C = B + C;
000013
IF (B_N_C ¬> A) | (A_N_C ¬> B) | (A_N_B ¬> C) THEN
-----TYPE_OF_TRIANGLE = 4;
000014
END VALIDATE_TRIANGLE;
-----/*
Note:
When an abend occurs in a program that has not been compiled with the CSS
PL/I language processor (no source listing is available), the session log is
automatically displayed with a message indicating the action to take. For
example:
ABEND IN MODULE WITHOUT SOURCE USE AA SNAP COMMAND FOR MORE INFORMATION
To assist you in determining the cause of the abend and how to correct the problem,
Xpediter/TSO provides the following:
• If Abend-AID Release 8.0.4 or above is installed at your site, you can enter AA SNAP
to display an Abend-AID Snapshot report.
Note:
In order to properly view the Snapshot report, the Abend-AID product must
have been installed with LANGTYP=USAUC in the GLOBAL table. Refer to
the MVS Abend-AID Reference Manual for additional information.
• Use the LOG command to display the diagnostic summary contained in the session
log.
• Use the HELP command to display help information about the abend.
• Use debugging commands to investigate the cause of the abend.
6-2
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Displaying the Abend-AID Snapshot Report
When an abend occurs in your program during an Xpediter/TSO test session and AbendAID Release 8.0.4 or above is installed at your site, you can display an Abend-AID
Snapshot report. This report contains context sensitive diagnostic information. (The
report will not contain source support.)
In a non-abending situation, you can request the Snapshot report to display environment
specific run-time characteristics and subsystem-related debugging information for VSAM,
IDMS, IMS, and DB2 (if you have these Abend-AID options). Refer to “Displaying
Environmental Data” on page 5-44 for more information.
To display the Snapshot report, enter AA SNAP on the command line of any run-time
screen. The Snapshot report is formatted according to your terminal size (80 or 133) and
written to a temporary dataset DD called ABENDAID.
Note:
If you want to save the abend information for printing, you must allocate the
ABENDAID DD to a permanent dataset. This dataset must be RECFM=VBA and
LRECL=133.
Figure 6-2 shows the header page of the Snapshot report:
Figure 6-2. Abend-AID Snapshot Report Header
------------------------- XPEDITER/TSO - BROWSE -------------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: TRITSTP1 MODULE: TRIMAINP COMP DATE: 06/18/1997 COMP TIME: 20:32:01
----------------------------------------- SOC7 Abend at TRITSTP1:9/AMODE 31 ->
SYS95054.T192629.RA000.FLGDAA1.R0137469
dd ABENDAID line 00000
********************************* TOP OF DATA **********************************
1
A B E N D - A I D
S N A P S H O T
PAGE
1
0THURSDAY
18 JUN 1997
941201-R08.00.04
*******************************************************************
*
A b e n d - A I D
S n a p s h o t
*
*
*
*
Copyright (c) 1976, 1994 by Compuware Corporation.
*
*
Unpublished - Rights Reserved Under The Copyright
*
*
Laws Of The United States.
*
*
Licensed for use at:
*
*
YOUR COMPANY NAME
*
*
Company Number: XXXXXX
*
*******************************************************************
Model - 9121
OPSYS
- MVS/SP 5.1.0
Job - FLGDAA1
CP FMID
- HBB5510
Step - TSOPROC
System
- CW01
Time - 19.26.29
DFSMS/MVS - V1R2M0
JES2
- SP 5.1.0
Optionally, you can display a column template at the top of the report by using SET
COLS ON. The column template can be useful when viewing records or data. Enter SET
COLS OFF (the default) to turn off the column template.
Browsing the Snapshot Report
The Snapshot report can be browsed using the PF8 (DOWN) and PF7 (UP) keys. You can
also bypass the header page and go directly to a specific section of the Snapshot report
from the source display. For example, to go directly to the Diagnostic Section, you can
enter the following:
AA SNAP; FIND ’DIAGNOSTIC’
The Diagnostic Section of the report is displayed, as shown in Figure 6-3 on page 6-3.
Handling Run-Time Errors
6-3
Figure 6-3. Snapshot Report Diagnostic Section
------------------------- XPEDITER/TSO - BROWSE -------------------------------
COMMAND ===>
SCROLL ===> CSR
CHARS ’DIAGNOSTIC’ FOUND
----------------------------------------- SOC7 Abend at TRITSTP1:9/AMODE 31 ->
SYS95054.T192629.RA000.FLGDAA1.R0137469
dd ABENDAID line 00000
**********************
* Diagnostic Section *
**********************
Both fields are in error
* First field in error *
The data causing the error is located in a temporary work field.
external decimal field cannot be located.
The
* Second field in error *
When you have finished viewing the Snapshot report, press PF3 (END) to return to the
source display.
If you inadvertently press PF3 (END) while viewing the Snapshot report, you can enter
BROWSE ABENDAID on the command line of the source or session log display to
redisplay the Snapshot report.
Viewing the Session Log
Xpediter/TSO records the cause of the abend, the exact location, and a diagnostic
summary in the session log. To look at the session log, type LOG on the command line of
the Source display screen.
Note:
If you have Abend-AID installed at your site, you can also display the session log
from the Snapshot report. An example of the diagnostic summary in the session
log is shown in Figure 6-4.
Figure 6-4. Diagnostic Summary in the Session Log
------------------------- XPEDITER/TSO - LOG ----------------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: TRITSTP1 MODULE: TRIMAINP COMP DATE: 08/23/1995 COMP TIME: 20:32:01
------------------------------------------ SOC7 Abend at TRITSTP1:9/AMODE 31 --
GO
XPD0439 RA304
SOC7 ABEND AT 0826CB96 REASON CODE 00000007
PSW AT TIME OF ERROR 078D1E00 - 8826CB9C
GP REGISTERS AT ABEND
0 0017D650
1 0017D580
2 8826CB52
4 0826B074
5 0017D4A8
6 0017D4A8
8 0017D4A0
9 007D4A0E 10 00233BC0
12 0014DD98 13 0014DB68 14 0014DDB8
INTERRUPT ADDRESS AT OFFSET 00210E IN LOAD MODULE TRIMAINP
3
7
11
15
0826CFA
0017D57
0017D34
00233BC
*** SOC7
ABEND IN USER MODULE TRITSTP1 AT STATE 000010 AT OFFSET 000102
*** ACTIVE APPLICATION MODULE AT TIME OF ABNORMAL TERMINATION IS TRITSTP1 ***
*** APPLICATION MODULE CONTROL HIERARCHY AT TIME OF ABNORMAL TERMINATION ***
LVL
MODULE
ENTRY
MEMBER
RETURN LOCATION FOR MOST RECENT CALL
1
XPEDITER
2
TRIMINP1 TRIMINP1 TRIMAINP STATE 000030 ANALYZE-NEXT-REC
3 X TRITSTP1 TRITSTP TRIMAINP
DATA EXCEPTION INTERRUPT INSTRUCTION AND OPERANDS
MNEMONIC ZAP
INSTRUCTION F810D0CAD0C8
OP1 D340
OP2 FC
6-4
Xpediter/TSO and Xpediter/IMS PL/I User Guide
The first part of the diagnostic summary identifies the error message, PSW, data at PSW,
general-purpose registers, offset, and the module in which the error occurred.
The middle part shows the abend type, module name, statement number, offset,
paragraph name, and the failing verb. This information is followed by the module stack
that identifies the last call that took place.
The last part defines the problem and gives the next sequential instruction to be
executed in the Assembler format.
If desired, the load modules can also be displayed by entering SHOW MODULES.
Displaying HELP Information
The HELP command can be used to obtain further information to determine the cause
and possible resolution of the abend. Any of the most commonly occurring abends
(listed below) can be entered as a keyword with the HELP command.
SB14
SB37
SD37
S0C1
S0C4
S0C5
S0C7
S001
S013
S031
S106
S213
S806
Figure 6-5 shows specific HELP information for a S0C7 abend.
Figure 6-5. HELP Information S0C7
------------------------- XPEDITER/TSO - HELP ---------------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: TRITST
MODULE: TRIMAIN
COMP DATE: 06/18/1997 COMP TIME: 18:05:01
------------------------------------------- SOC7 Abend at TRITST:18/AMODE 31 ->
********************************** TOP OF DATA ********************************
S0C7
Data in a field was of incorrect format for the instruction attempting to
process it.
POSSIBLE CAUSES
1. A data-element was not initialized.
2. JCL error resulted in the wrong file being read into the program.
3. MOVE at group level was executed to a COMP or COMP-3 field. No data
conversion was performed on the element level.
4. The Linkage Section data item was improperly defined.
WHAT TO DO
1. PEEK data-elements in abending statement and MOVE valid data to the file
Analyzing the Problem
When an abend occurs, you can use Xpediter/TSO debugging commands to investigate
the cause of the abend. For example, you can view the contents of the data referenced on
the statement causing the abend, analyze the data flow and control structure, and
optionally, review the path and data values that lead to the error.
Applying Fixes
Even when Xpediter/TSO intercepts an abend, you have the opportunity to temporarily
apply fixes to the problem and resume execution as if the abend had never occurred. The
Handling Run-Time Errors
6-5
GO (PF12) command resumes execution. However, there may be times that you will not
be able to continue normal program execution until the abend is resolved.
Using all of the information provided by the Abend-AID Snapshot report, you can
experiment with possible solutions and test the fixes.
Obtaining a Memory Dump
If a dump is necessary, the SET DUMP ON command can be issued immediately to direct
Xpediter/TSO to allow the dump to be written if one of the standard dump DD files
(SYSUDUMP, SYSMDUMP, or SYSABEND) is allocated to the test session. The dump file
can be dynamically allocated just prior to the issuance of the SET DUMP ON command or
could have been preallocated through various methods such as the File Allocation Utility
(FAU), the TSO ALLOCATE command, JCL if in Batch Connect, etc. (Refer to Appendix
A, “Using the File Allocation Utility”.)
6-6
Xpediter/TSO and Xpediter/IMS PL/I User Guide
7-1
Chapter 7.
Debugging PL/I Programs With Xpediter/IMS
Chap 7
Xpediter/IMS, an IMS/DC testing and debugging product, executes Message Processing,
Fast Path, and Batch Message Processing programs in an IMS-dependent region within
your TSO address space. Operation of the product requires one logical TSO terminal and
one logical IMS terminal (can be an ATM terminal), both on the same CPU. Xpediter/IMS
does not work with two IMS terminals.
Xpediter/IMS is executed on Releases 3.1, 4.1, 5.1, 6.1, and 7.1 of IMS/VS.
Xpediter/IMS does not support multiple IMS control regions that communicate with one
another. However, the product can be installed on each IMS system.
Starting Xpediter/IMS
Xpediter/IMS consists of menus and screens accessed through ISPF. Xpediter/IMS screens
are viewed on the TSO terminal; the IMS application format screens are viewed on the
IMS terminal.
Before starting the session, prepare your programs (precompile, compile, and link edit)
with the Compuware Shared Services PL/I language processor. You can use the
Xpediter/TSO online facilities to prepare your programs. Refer to “Preparing Your
Programs” on page 4-3 for additional information. For more information about
Compuware’s Shared Services, refer to the Compuware Shared Services User/Reference Guide.
1. Once you have a valid load module and DDIO dataset, log on to TSO and invoke
Xpediter/TSO. Use the procedures that are in effect at your site.
2. From the Xpediter/TSO Primary Menu, select option 2 (TSO) and press Enter to
display the Environments Menu.
Note:
If the Environments Menu is not displayed, access it by entering SETUP on
the command line of the test screen that is being displayed. On the Test
Setup Menu, enter option 0 (ENVIRONMENT).
3. Specify the appropriate environment, 8 (MPP) or 9 (BMP/IFP) on the Environments
Menu. The environment test screen for that environment is displayed.
4. On the environment test screen, enter the command SETUP to display the Setup
Menu.
5. Specify A (All) to review all your setup selections.
– Load libraries—user program libraries allocated as STEPLIB. Verify that the order
of concatenation is correct.
– DDIO dataset—library name should be the dataset name specified on the
CWPDDIO DD statement in your Xpediter compile step.
– Test script libraries.
– Test session log dataset.
– Test session script dataset.
– DB2 system names and DSNLOAD datasets.
– PANEXEC defaults (if installed).
7-2
Xpediter/TSO and Xpediter/IMS PL/I User Guide
– PSB and DBD libraries (GSAM only).
– IMS preload list.
– IMS authorized load libraries.
– IMS region ID and PARM strings—PARM fields set up at install time can be
changed.
6. If everything is correct, press PF3 from the Setup Menu to return to the environment
test screen.
7. Complete the environment test screen as described in “Debugging an MPP Program”
on page 7-2 or in “Debugging a BMP/IFP Program” on page 7-7.
Note: Xpediter/IMS environment test screens shown as examples in this section are
fully described in Appendix B, “Xpediter/TSO Environment Test Screens”.
8. Wait for the intercepts to be set, then log on to IMS and enter the transaction(s).
9. View the Xpediter/IMS source display on the TSO terminal. Switch to the IMS
terminal for all input and output operations.
10. At the end of each MPP transaction, enter GO to continue debugging or EXIT to
terminate.
11. At the end of a Batch Message Processing (BMP) or Interactive Fast Path (IFP)
program, you are returned to the BMP/IFP screen. Press Enter to go into the same
debugging session again, or enter END to return to the Primary Menu.
Debugging an MPP Program
Select option 8 from the Environments Menu to debug an MPP program. The MPP
environment test screen shown in Figure 7-1 is displayed. The MPP screen lets you set up
environment parameters for debugging a program in an IMS Message Region. When you
identify the transactions to be debugged and initiate the session, Xpediter/IMS attaches
the IMS message region within the TSO address space.
Enter END to terminate any display. HELP is also available from any screen.
Figure 7-1. MPP Program Test Screen
Profile: DEFAULT -------COMMAND ===>
COMMANDS:
XPEDITER/TSO - MPP (2.8)
SEtup (Display Setup Menu)
INter (Display Intercepts)
PROFile (Display Profile List)
-------------------------
DOwn
INTERCEPTS
(Scroll Down)
Row 1 of 3
PROGRAM TRANCODE INITSCR POSTSCR START MAX ------------ DATA ------------
> TRIMPP
>
XPEDTRAN
>
IMS USERID ===> PFHABC0
Retain Breakpoints? ===> NO
NBA ===> 0
(Normal Buffer Allocation)
OBA ===> 0
(Overflow Buffer Allocation)
File List/JCL Member ===>
Unattended ===> NO
Code Coverage Test? ===> NO
(YES, NO, TDO)
System Flow? ===> NO
Is This a DB2 Test? ===> NO
System ===>
Press ENTER to process or enter END command to terminate
The following commands are valid on the MPP Program test screen:
Debugging PL/I Programs With Xpediter/IMS
7-3
SEtup
Displays the Setup Menu from which you can select screens for specifying load
libraries, DDIO datasets, and so on.
Log
Browses the session log after you execute a program. The session log file contains a
record of the commands that were entered during the debugging session and the
responses to them.
INter
Displays the Intercepts screen showing you what IDs are logged on to Xpediter/IMS,
what programs are being used, and so on.
DOwn
Scrolls to a continuation MPP screen. From this screen, UP is available for returning
to the first debugging screen.
PROFile
Displays the available Profile options in a file where you can select, delete, copy,
rename, and Use the profile of your choice. It also lets you “merge” or “copy”
another user(s) profile into your own.
ALLOC
This command takes you to the File Allocation Utility (FAU) screens to create a file
allocation list, which your program may require for the debugging session.
The fields on the MPP Program test screen are:
PROGRAM
Required if TRANCODE is not specified. Used to identify which programs are to be
debugged by Xpediter/IMS. You can enter the load module name in this field or the
transaction code in the TRANCODE field, or supply values for both fields. If you
enter only the program name, the program must be associated with only one
transaction. If the program is associated with multiple transactions, then the
transactions that are to be debugged must be entered in the TRANCODE field and the
program name can be omitted from the PROGRAM field.
Three programs or transaction codes can be specified on the first MPP screen. If you
fill the first screen and need more space, enter DOWN (PF8), and a second
(continuation) MPP Program Test screen is displayed. Refer to Figure 7-2 on page 7-4.
Once the second screen is full, you can scroll down to a third screen. The third screen
is not shown in this chapter. Notice that on the second (and subsequent screens), the
UP command is available in addition to the DOWN command.
7-4
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure 7-2. Second MPP Program Test Screen
Profile: DEFAULT --------COMMAND ===>
COMMANDS:
XPEDITER/TSO - MPP (2.8)
SEtup (Display Setup Menu)
INter (Display Intercepts)
PROFile (Display Profile List)
INTERCEPTS
PROGRAM
> TRIMPP
>
>
>
>
>
>
>
>
>
>
UP
TRANCODE INITSCR
POSTSCR
START MAX
-------------------------
(Scroll Up)
DOwn
(Scroll Down)
Row 1 of 11
------------ DATA ------------
XPEDTRAN
Press ENTER to process
or
enter END command to terminate
TRANCODE
Used to identify which transactions are to be debugged by Xpediter/IMS. You can
enter the transaction code in this field or the load module name in the PROGRAM
field, or enter values for both fields.
This field is required if PROGRAM is not specified or if multiple transactions are
associated with the program.
INITSCR
The member name of the script in the INCLUDE library specified on the Setup panel.
The INITSCR field can be typed over to specify a test script member which can be
processed at the beginning of a debugging session.
When using Xpediter/IMS, enter the member name of a test script if you want to
execute a predefined command stream at the beginning of the debugging session. This
member will be executed after the inclusion of the site-wide script member
@@SITE@@, if defined.
POSTSCR
Enter the member name of a test script if you want to execute a predefined command
stream at the end of the debugging session.
START
Enter up to four digits to specify the occurrence of the program invocation on which
the intercept is to begin. By default, program intercept begins on the first occurrence.
When the program is intercepted, the debugging session is initiated and the source is
displayed.
MAX
Enter up to four digits to specify the maximum number of times the program
intercept is to be processed. If this field is left blank, the value defaults to an infinite
number. If you enter an EXIT command and there are still intercepts remaining,
those intercepts are ignored.
DATA
Specify up to 30 bytes of data from the IMS transaction you want to debug.
The DATA field is only active if IMS User ID/Data Value Intercept Support is enabled.
See the Xpediter/TSO and Xpediter/IMS Installation and Configuration Guide for more details.
Debugging PL/I Programs With Xpediter/IMS
Note:
7-5
This field cannot contain the , (comma) or ¢ (cent) characters.
IMS USERID
Specify the ID of the IMS user issuing the IMS transaction you want to debug. If IMS
User ID/Data Value Intercept Support is enabled, you can enter an asterisk (*) to
specify a generic match on any user ID.
The IMS USERID field is only active if either IMS User ID Support or IMS User
ID/Data Value Intercept Support is enabled. See the Xpediter/TSO and Xpediter/IMS
Installation and Configuration Guide for more details.
Note:
If Xpediter/Code Coverage is active, this field is also used to record the IMS
user ID in the Code Coverage Repository. If an asterisk is specified, the TSO
user ID will be recorded.
Retain Breakpoints?
If you want Xpediter to retain breakpoints from one iteration of an IMS program or
transaction to the next, enter YES in this field. Before breakpoints, after breakpoints,
onetime breakpoints, counts, skips, traces, and when conditions from the previous
test iteration will be reapplied. Count values will accumulate across iterations, but
maximum execution count limits are not preserved. Keeps and inserted lines are not
retained.
The default is NO and will result in each iteration starting with only before and after
breakpoints.
Xpediter/Code Coverage counters and breakpoints, where applicable, are unaffected
by this feature.
NBA
Enter the Normal Buffer Allocation (NBA), up to two digits. The default value is 0.
OBA
Enter the Overflow Buffer Allocation (OBA), up to two digits. The default value is 0.
Note:
Values are inserted in the PARM string when the IMS region is attached.
File List/JCL Member
Enter the dataset name that contains the file list, CLIST, or JCL. The File Allocation
Utility (FAU) preallocates files and databases that will be processed by the program
upon entry to the debugging session.
If the member name of a PDS is omitted, a member list is displayed.
If the dataset contains a CLIST, Xpediter/IMS immediately executes it and begins the
debugging session. If the dataset contains a file list or JCL, the FAU is invoked to
dynamically allocate the specified files before beginning the debugging session. Refer
to Appendix A, “Using the File Allocation Utility” for detailed information about
the FAU.
Note:
If your site does not use OS/VS files for input or output, you do not have to
make an entry in the File List/JCL Member field.
Unattended?
Enter YES to run in Unattended mode. The default value is NO. In unattended mode,
after the Xpediter/IMS Message Processing Region (MPR) is attached, Xpediter
commands are only processed in the Initial Script, Post Script, and Abend Script. The
TSO terminal remains locked, and Xpediter commands are not allowed from the
terminal. When you are finished testing in the Xpediter/IMS MPR, the MPR may be
stopped and the TSO terminal unlocked by using either the Xpediter Stop Region
7-6
Xpediter/TSO and Xpediter/IMS PL/I User Guide
transaction, XPST, or the Xpediter Stop Region BMP procedure XPSTOP. Refer to
“Stopping the Xpediter/IMS Dependent Region” on page 7-14.
Code Coverage Test?
Enter YES to collect statistics without Test Data Optimization information. Enter
TDO to collect statistics and TDO information. The default value is NO.
System Flow?
Enter YES to collect Xpediter/Code Coverage System Flow data. The default value is
NO.
Note:
The Code Coverage options are only available if you have purchased
Xpediter/Code Coverage.
CAUTION:
Code Coverage does not currently support VisualAge PL/I programs. However,
statistics will be collected on any non-VA PL/I programs involved in the Code
Coverage test.
Is This a DB2 Test?
Enter YES if the program executes EXEC SQL statements. The default value is NO.
System
Enter the DB2 subsystem name if the program executes EXEC SQL statements. The
subsystem name depends on the release level of DB2 and is assigned at the time of
installation.
When entries for the screen are complete and you press Enter, the screen clears. If the
intercepts are set, the following messages appear on the screen:
THE IMS INTERCEPTS ARE BEING SET
INTERCEPTS SET - STARTING THE IMS REGION
THE TEST TRANSACTION CAN BE ENTERED
The terminal is then locked. If an error is encountered, however, the intercepts are not
set and you are returned to the test screen. A message indicating an error occurred is
displayed on the message line. You can access the session log for more information.
Note:
There are several reasons the intercepts might not be set. For example:
• You may have entered a program type other than TP (Message Processing Program).
• The program may be TP, but someone else is debugging the same transaction. Unless
IMS User ID Support or IMS User ID/Data Value Intercept Support is enabled, two
users cannot debug the same transaction at the same time. Xpediter/IMS changes the
class code of each transaction, but it does not change the high-level program
associated with the transaction. Therefore, if the transaction is being used by another
person, you receive an error message.
If the intercepts are set successfully, go to the IMS terminal and start the transaction you
want to debug by entering the transaction code that invokes your program. Note that
you should invoke the program the way you would without Xpediter/IMS; e.g., by going
through a signon screen or another transaction. If a format screen is invoked, enter any
data needed by the transaction.
When you press Enter, IMS schedules the transaction for execution and locks your
terminal if it is in response mode. Return to the TSO terminal.
If you have a source listing member for the high-level program, your source will be
displayed. Refer to Chapter 5, “Debugging Interactively” for information on how to
interactively debug a program with source. All interactive Xpediter/TSO commands are
valid except USE and RETEST. If you do not have a source listing member for the high-
Debugging PL/I Programs With Xpediter/IMS
7-7
level program, the session log is displayed with a message indicating that the program
does not have a source listing member. Refer to “Debugging a Sourceless Program” on
page 5-37 for information on how to interactively debug a program without a source
listing member.
To enter or review data at any point in execution, go to the IMS terminal.
At the TEST COMPLETED message, you can enter GO to retest this transaction or test
another one, or enter EXIT to return to the MPP screen. At the end of the debugging
session, the session log is available for viewing. You can also save a script of the
commands entered for future use.
IMS Conversational Transaction Considerations
To facilitate IMS user ID support, Xpediter/IMS creates a clone of the original IMS
transaction, which it then executes in an Xpediter MPR. Because cloned transactions
each have a unique transaction code, multiple iterations of a transaction can coexist
without lockout occurring. This cloning process takes place on the first execution of a
transaction.
If you do not want Xpediter to intercept the first iteration of a conversational
transaction, do the following:
• Initiate Xpediter before the transaction begins
• Specify a starting transaction number.
At the first iteration, Xpediter will create a clone of the transaction, but the actual
debugging session will not start until the specified starting iteration.
After you enter the EXIT command to end your session, you must also enter /EXIT to end
the original IMS transaction. This is because Xpediter has already torn down the MPR
used for the transaction’s clone. If not ended manually, the transaction could hang
because there is no longer an Xpediter MPR to process it.
Debugging a BMP/IFP Program
After selecting option 9 from the Environments Menu to debug a BMP or Fast Path
program, the BMP/IFP Program screen shown in Figure 7-3 on page 7-8 is displayed. The
BMP/IFP screen lets you set up the parameters to test and debug a program in an IMS,
BMP, or Fast Path Region. When you identify the transactions to be debugged and
initiate a session, Xpediter/IMS attaches the IMS message region within the TSO address
space.
The commands (except DOWN) described in “Debugging an MPP Program” on page 7-2
can also be entered on this screen.
7-8
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure 7-3. BMP/IFP Program Screen
Profile: DEFAULT ------COMMAND ===>
XPEDITER/TSO - BMP/IFP (2.9)
-----------------------
COMMANDS:
SEtup (Display Setup Menu)
INter (Display Intercepts)
PROFile (Display Profile List)
TEST SELECTION CRITERIA:
Program ===> TRIFP
PSB ===> TRIFP
TRAN CODE ===>
Initial Script ===>
Post Script ===>
NBA ===> 0
OBA ===> 0
(Normal Buffer Allocation)
(Overflow Buffer Allocation)
File List/JCL Member ===>
Code Coverage Test? ===> NO
Is This a DB2 Test? ===> NO
Press ENTER to process
(YES, NO, TDO)
or
System Flow? ===> NO
System ===>
enter END command to terminate
The fields on the BMP/IFP screen are:
Program
Required. Used to identify which program is to be intercepted and debugged by
Xpediter/IMS. You must enter the load module name in this field or supply values for
both this field and the TRAN CODE field. Xpediter inserts this value into the
program subparameter for the parameter it passes to IMS.
PSB
Required. Enter the program specification block associated with the program you are
debugging. Xpediter inserts the specified value into the BMP parameter passed to the
IMS driver program.
TRAN CODE
Used with a BMP to provide the name of a message queue to be processed by the
BMP. This field is not used with an IFP program.
Initial Script
The member name of the script in the INCLUDE library specified on the Setup panel.
The INITSCR field can be typed over to specify a test script member which can be
processed at the beginning of a debugging session.
Enter the member name of a test script if you want to execute a predefined command
stream at the beginning of the debugging session. This member will be executed after
the inclusion of the site-wide script member @@SITE@@, if defined.
Post Script
Enter the member name of a test script if you want to execute a predefined command
stream at the end of the debugging session.
NBA
Enter the Normal Buffer Allocation (NBA), up to two digits.
OBA
Enter the Overflow Buffer Allocation (OBA), up to two digits.
Note:
The values are inserted in the PARM string when the IMS region is attached.
Debugging PL/I Programs With Xpediter/IMS
7-9
File List/JCL Member
Enter the dataset name that contains the file list, CLIST, or JCL. The File Allocation
Utility (FAU) preallocates files and databases that will be processed by the program
upon entry to the debugging session.
If the member name of a PDS is omitted, a member list is displayed. If the dataset
contains a CLIST, Xpediter/IMS immediately executes it and begins the debugging
session. If the dataset contains a file list or JCL, the FAU is invoked to dynamically
allocate the specified files before beginning the debugging session. Refer to
Appendix A, “Using the File Allocation Utility” for detailed information about the
FAU.
Note:
If your site does not use OS/VS files for input or output or GSAM databases,
do not make an entry in the File List/JCL Member field.
Code Coverage Test?
Enter YES to collect Code Coverage execution statistics without Test Data
Optimization information. Enter TDO to collect statistics and TDO information. The
default value is NO.
System Flow?
Enter YES to collect Xpediter/Code Coverage System Flow data. The default value is
NO.
Note:
The Code Coverage options are only available if you have purchased
Xpediter/Code Coverage.
CAUTION:
Code Coverage does not currently support VisualAge PL/I programs. However,
statistics will be collected on any non-VA PL/I programs involved in the Code
Coverage test.
Is This a DB2 Test?
Enter YES if the program executes EXEC SQL statements. The default value is NO.
System
Enter the DB2 subsystem name if the program executes EXEC SQL statements. The
subsystem name depends on the release level of DB2 and is assigned at the time of
installation.
After typing in all required values, press Enter to initiate the debugging session. The
screen will be cleared and, if the intercepts are set, the following messages will be
displayed:
THE IMS INTERCEPTS ARE BEING SET
INTERCEPTS SET - STARTING THE IMS REGION
The terminal is then locked until the screen changes. If an error is encountered, you are
returned to the test screen. A message indicating an error occurred is displayed on the
message line. You can access the session log for more information.
When the intercepts are set, go to the IMS terminal and begin the transaction you want
to debug by entering the transaction code that invokes your program. Note that you
should invoke the program in the usual way (without Xpediter/IMS); e.g., going through
a sign-on screen or other transaction if necessary. Once the format screen appears, you
can enter any data needed by the transaction. IMS schedules the transaction for
execution, then locks the IMS terminal if it is in response mode. Return to the TSO
terminal.
7-10
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Note:
If you are debugging a non-Wait-For-Input message-driven BMP, the transaction
for the program must be entered before the first GU to the message queue is
executed.
If you have a source listing member for the high-level program, your source will be
displayed. Refer to Chapter 5, “Debugging Interactively” for additional information on
how to interactively debug a program with source. All interactive Xpediter/TSO
commands are valid except USE and RETEST.
If you do not have a source listing member for the high-level program, the session log is
displayed with a message indicating that the program does not have a source listing
member. Refer to “Debugging a Sourceless Program” on page 5-37 for information on
how to interactively debug a program without a source listing member.
To enter or review data at any point in execution, go to the IMS terminal.
To end a BMP debugging session, type EXIT. To end an Interactive Fast Path (IFP)
debugging session, the directions are different. You can type EXIT if you have a
breakpoint. If the Interactive Fast Path (IFP) program is waiting for input from the
terminal, the IFP region may be stopped and the TSO terminal unlocked by using either
the Xpediter Stop Region transaction, XPST, or the Xpediter Stop Region BMP procedure
XPSTOP. Refer to “Stopping the Xpediter/IMS Dependent Region” on page 7-14.
When the debugging session is terminated, you are returned to the BMP/IFP screen. At
this point, session log and script datasets are available. You can press Enter to go into the
same debugging session again, or type END to go back to the Environments Menu.
What to Do When Intercepts Cannot Be Set
When intercepts cannot be set and the message MAX USERS is displayed on the test
screen, enter INTER on the command line to look at the Intercepts screen, shown in
Figure 7-4 on page 7-10. The Number Of Available Class Codes field is zero (0), indicating
that the maximum number of users are testing with Xpediter/IMS.
The Intercepts screen provides valuable information regarding the use of Xpediter/IMS:
how many users can still test using Xpediter/IMS, what programs/transactions are being
tested, and other information connected with the program and the transaction code.
Figure 7-4. Intercepts Screen
Profile: DEFAULT ------------ INTERCEPTS ------------------COMMAND ===>
Number Of Available Class Codes: 0
Current IMSID: IMSA
USERID
========
ASJUSR1
ASJUSR1
ASJUSR1
ASJUSR2
ASJUSR3
ASJUSR4
ASJUSR5
ASJUSR6
ASJUSR7
ASJUSR8
ASJUSR9
ASJUSR9
ASJUSR9
ASJUSR10
F1=HELP
F7=UP
TRAN CODE
=========
XPEDTRAN
XPE1
XPE2
XPE3
XPE4
XPE5
XFP1
XFP2
XPE6
XPE7
XPE8
F2=SPLIT
F8=DOWN
PROGRAM
========
XPEDTRAN
XPEDTRA1
XPEDTRA2
XPEDBMP1
XPEDBMP2
XPEDTRA4
XPEDTRA5
XPEDFP1
XPEDFP2
XPEDBMP3
XPEDTRA6
XPEDTRA7
XPEDTRA8
XPEDBMP4
F3=END
F9=SWAP
TYPE
====
TP
TP
TP
BMP
BMP
TP
TP
IFP
IFP
BMP
TP
TP
TP
BMP
F4=RETURN
F10=LEFT
PSB
=========
XPEDTRAN
XPEDTRA1
XPEDTRA2
XPEDPSB1
XPEDPSB2
XPEDTRA4
XPEDTRA5
FASTPAT1
FASTPAT2
XPEDBMP
XPEDTRA6
XPEDTRA7
XPEDTRA8
XPEDPSB2
F5=RFIND
F11=RIGHT
ROW 1 TO 14 OF 14
SCROLL ===> PAGE
CLASS
OLD
NEW
===
===
002
045
004
045
005
045
004
004
001
001
016
018
004
005
005
019
019
019
IMSID
=====
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
F6=RCHANGE
F12=RETRIEVE
Debugging PL/I Programs With Xpediter/IMS
7-11
The Intercepts screen does not contain any input fields. All of the information is
displayed for you. The fields on the screen are:
Number Of Available Class Codes
The number of class codes available. This field tells you how many more people can
run an MPP test. Notice that Figure 7-4 displays the number of class codes available
for use as zero (0), indicating that the maximum number of MPP users are currently
testing with Xpediter/IMS.
Current IMSID
The name of the IMS control region with which you are communicating.
USERID
The user ID of the person running the test.
TRAN CODE
The transaction code associated with the program, if one was used.
PROGRAM
The name of the program being tested.
TYPE
The type of program being tested.
PSB
The PSB name associated with the program. Often, this name is the same as the
program name.
OLD CLASS
The original class code of the user’s transaction.
NEW CLASS
The Xpediter/IMS reserved class code for the transaction. Xpediter/IMS reassigns the
class codes for Message Processing transactions.
IMSID
The name of the IMS control region with which the IMS user programs
communicate. This name does not have to be the current IMSID.
Functions Supported
Database support is available with Xpediter/IMS through the IMS control region. All
databases are supported, along with the following types of transactions:
• Conversational and nonconversational
• Response and nonresponse mode
• Wait-for-Input and non-Wait-For-Input.
The type of transaction you can process is determined by the way your IMS system is
defined.
Conversational and Nonconversational Transactions
Programs that process nonconversational transactions have no knowledge of previous
transactions or responses. Programs that process conversational transactions retain
knowledge of each transaction in a scratch pad area. When each succeeding transaction
is received, the scratch pad area is read to determine what happened during the previous
execution of that program.
7-12
Xpediter/TSO and Xpediter/IMS PL/I User Guide
In Xpediter/IMS, the two transaction types are processed the same way—there is no
difference between the two.
Response Mode and Nonresponse Mode
When response mode is in effect, IMS does not accept any input from the
communication line or terminal until the program has sent a response to the previous
input message. The originating terminal is unusable (i.e., the keyboard locks) until a
reply is sent back to the terminal.
When nonresponse mode is in effect, the keyboard is not locked. Multiple requests can
be sent before a response is received.
WFI and Non-WFI Transactions
When a program is defined as processing Wait-For-Input (WFI) transactions, the program
remains in main storage, even when there are no more messages for it to process. This
ensures that the program and region are immediately available when a transaction comes
in.
If a program is defined as processing non-Wait-For-Input (non-WFI) transactions, the
program can process one or more transactions and end, then have to start again when
another transaction is received for processing.
Types of Programs You Can Debug
With Xpediter/IMS, you can debug three types of programs:
• Message Processing Programs (MPPs)
• Batch Message Processing (BMP) Programs
• Message-driven Interactive Fast Path (IFP) Programs.
These three types of programs can access various resources under Xpediter/IMS. Available
to them are full function databases, DB2, GSAM (BMP only), and Fast Path databases.
Message Processing Programs
The primary purpose of MPPs is to quickly process your requests from the terminal or
from another application program. Ideally, the requests are small and processing is set up
to respond to them quickly. MPPs process messages as their input and send messages as
responses.
An MPP can access full function databases, Fast Path databases, and DB2 databases. An
MPP cannot access GSAM databases.
In Xpediter/IMS, multiple MPP transactions can be debugged in the same session.
Batch Message Processing Programs
You might use a BMP program when processing time is long, but an immediate response
is not required. There are two types of BMP programs: message-driven and nonmessagedriven. A message-driven BMP program is used to process information received from a
terminal or other program, but held by IMS in a message queue.
A nonmessage-driven program is often used when no access to messages is required. It is
also typically a long-running program, used when you have a large number of updates to
do or when running a report.
Debugging PL/I Programs With Xpediter/IMS
7-13
Both types of BMP programs can access OS/VS files, GSAM databases, full function
databases, Fast Path databases, and DB2 databases.
In Xpediter/IMS, a BMP program is executed in its own region, and when the program is
terminated, the region is also terminated.
Fast Path Programs
An IFP program functions the same way an MPP does, but it is scheduled by IMS in a
manner similar to a BMP program. An IFP program increases the performance of certain
types of database applications. It provides efficient access to large volumes of data that
are broken up into areas that can be accessed independently of each other.
Note: IFP programs, like MPP and BMP programs, can access Fast Path databases, as well
as full function databases and DB2 databases.
In Xpediter/IMS, an IFP program is executed in a Fast Path region, and when the program
is terminated, so is the region.
Using Xpediter/IMS Effectively
Some information in the following areas can help you run MPP, BMP, and IFP debugging
sessions effectively:
•
•
•
•
MPP test setup
Scheduling difficulties
Interrupting a debugging session
Fast Path considerations.
MPP Test Setup
For an MPP debugging session, if a PSB is defined to your IMS system as capable of
handling more than one transaction, you must enter the specific transaction code you
want to debug.
Scheduling Difficulties
There are two Xpediter/IMS capabilities that can help if you are unable to schedule a
transaction or program:
• The Intercepts display invoked by the INTER command on your test screen
• The session log.
When you cannot schedule a particular transaction, another person may be using it. The
transaction a user sets up, either by entering a transaction code (MPP, BMP, or IFP) or
through the PSB name (IFP) or program name (MPP), is allocated to that user for the
duration of the session. The Intercepts display tells you the transactions that are
allocated and the users to whom they are allocated.
Xpediter/IMS records in the session log many conditions that prevent a transaction or
program from being scheduled. If, after setting intercepts, you still receive the test
screen, browse the session log for more information. Xpediter/IMS can determine
whether a program or transaction is locked or stopped, or not able to be scheduled for
other reasons. Xpediter/IMS can also capture IMS scheduling abends, which are noted in
the session log. Without Xpediter/IMS, these conditions can cause your IMS terminal to
lock or not respond, requiring master terminal operator intervention to find the cause of
the problem.
7-14
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Stopping the Xpediter/IMS Dependent Region
An Xpediter/IMS Dependent Region is categorized as one of the following:
• An MPP region
• A BMP region
• An IFP region.
There are several different ways of stopping an Xpediter/IMS Dependent Region. The
circumstances depend on whether the dependent region is stopped at an Xpediter
breakpoint, the dependent region is in a CPU loop, or the dependent region is waiting for
the next input message.
If the region is stopped at an Xpediter breakpoint, you may enter the Xpediter EXIT
command to stop the Xpediter/IMS dependent region. Before entering the EXIT
command, you may roll back any/all uncommitted IMS database updates, DB2 table
updates, and system generated messages by issuing the following command:
DLI ROLB IOPCB
If the Xpediter/TSO terminal session is not available, the region may be stopped by using
the Xpediter/IMS Detach Region Facility. Refer to “Xpediter/IMS Detach Region Facility”
on page 7-16.
If the region is in a CPU loop, you may use the ATTN key to stop the Xpediter/IMS
dependent region. You may press the ATTN key once and wait for Xpediter/IMS to
process the attention interrupt. Attention key processing can be delayed under certain
pre-defined conditions. For example, if the ATTN key is pressed while the Xpediter/IMS
dependent region is executing a DL/I database call or waiting for an input message,
attention processing is deferred.
If an MPP or IFP region is waiting for the next input message, the Xpediter/IMS
dependent region may be stopped by using either the Xpediter Stop Region transaction,
trancode XPST, or the Xpediter Stop Region BMP procedure XPSTOP.
To stop the region from an IMS terminal, enter trancode XPST. Transaction XPST displays
a formatted screen. On the screen, a field is displayed for entering the Jobname or TSO ID
to be stopped. When the screen is displayed, this field will contain your IMS logon id,
since many users logon to IMS with their TSO ID. If the installation allows it, you may
override the default Jobname shown on the screen with a completely different Jobname
of an Xpediter MPP or IFP region. When you press Enter while accessing the formatted
screen, the transaction will issue the following IMS Automated Operator Interface
command: /STOP REG reg# where reg# is the region identifier associated with the
specified Jobname.
To stop the region from a TSO terminal, submit a job which executes your site’s BMP
procedure to run the XPSTOP program. The Xpediter jobname or TSO Userid of the
region to be cancelled is specified on either the IMS APARM or in the first eight bytes of a
control card in a file with DDNAME XPPARM. The APARM technique is usually more
convenient; however, releases of IMS prior to IMS 3.1 do not support APARM.
The following JCL examples may be used to invoke a BMP job to stop the TSO Userid
TSOUSR1. IMSBATCH is an IBM supplied IMS procedure that is included in the IMS
PROCLIB. Your Systems programmer may have created a version of this procedure which
is modified for your site. In both cases, the programs executed by XPSTOP must be made
available to the region by placing the program code in a library pointed to be the
STEPLIB DD statement. This can be done by copying XPSTOP, ADSIM015, and ADSRA093
from the Xpediter/TSO LOADLIB to a user library included in STEPLIB or by adding the
Xpediter/TSO LOADLIB to the STEPLIB concatenation.
The two JCL examples are displayed as follows:
Debugging PL/I Programs With Xpediter/IMS
7-15
// Your jobcard
//stepname EXEC IMSBATCH,MBR=XPSTOP,PSB=XPSTOP,IN=XPSTOP,
//
APARM=TSOUSR1
//procedurestepname.STEPLIB DD
(existing DD statement)
//
DD DSN=CPWR.XT.SLXTLOAD
//XPPRINT DD SYSOUT=*
//
or
// Your jobcard
//stepname EXEC IMSBATCH,MBR=XPSTOP,PSB=XPSTOP,IN=XPSTOP
//procedurestepname.STEPLIB DD
(existing DD statement)
//
DD DSN=CPWR.XT.SLXTLOAD
//XPPRINT DD SYSOUT=*
//XPPARM DD *
TSOUSR1
//
Fast Path Caution
If your IMS system includes a Fast Path exit routine to route transactions to programs not
originally genned to handle these transactions, you can experience the following
difficulties:
• The program being executed can receive a transaction you did not enter.
• A transaction you entered can be routed to another program in another region. In
this case, no source code displayed. If the other program is active, the transaction is
processed or rejected with an appropriate message.
Abends and Recovery Processing
If an abend occurs, Xpediter/IMS provides the following benefits:
• If the application program abends, Xpediter/IMS intercepts the abend and displays a
message indicating that information about the abend can be viewed by accessing the
Abend-AID Snapshot report (only if Abend-AID Release 8.0.4 or above is installed) or
the session log.
• You can generate a memory dump in the same manner as Xpediter/TSO. If a dump is
necessary, the SET DUMP ON command can be issued immediately to direct
Xpediter/TSO to allow the dump to be written if one of the standard dump DD files
(SYSUDUMP, SYSMDUMP, or SYSABEND) is allocated to the test session. The dump
file can be dynamically allocated just prior to the issuance of the SET DUMP ON
command or could have been preallocated through various methods such as the File
Allocation Utility (FAU), the TSO ALLOCATE command, JCL if in Batch Connect, etc.
(Refer to Appendix A, “Using the File Allocation Utility”.)
• If the IMS dependent region comes down for any reason, Xpediter/IMS intercepts the
abend.
Note:
When debugging a message-driven transaction, IMS generates a U468 abend if
you exit the session before the first GU to the message queue. If the transaction is
in response mode, the terminal node must be restarted by the appropriate
operator.
If you require a dump from an Xpediter/IMS debugging session, you must allocate the
ddname XPIMSDMP to bypass the Xpediter abend interception. Since this is a TSO
allocation, it can be entered from the command line as follows:
TSO ALLOC FI(XPIMSDMP) DUMMY
7-16
Xpediter/TSO and Xpediter/IMS PL/I User Guide
It can also be allocated from within Xpediter/IMS by issuing the ALLOC command and
using the File Allocation Utility.
Xpediter/IMS Detach Region Facility
When using Xpediter in an IMS environment, there can be times when you need to force
the end of an Xpediter test; e.g., a programmer goes home without ending the test. In
some releases of IMS, the TSO ID cannot be cancelled while the IMS MPP/BMP/IFP region
is still active.
For this case and others, a batch job executing the detach utility program ADSIM012 can
be run to force the end of a user's Xpediter IMS MPP, BMP, or IFP test. If desired, the TSO
ID can be dropped at this time.
Set up the batch job to execute the ADSIM012 program as shown below:
//XXX JOB...
//DETACH EXEC PGM=ADSIM012,
// PARM='...'
//STEPLIB DD DISP=SHR,DSN=CPWR.XT.SLXTLOAD
PARM is where you specify the jobs to be cancelled and is entered as follows:
1. To detach a single job name TSOUSR1, enter:
PARM='TSOUSR1'
2. To detach multiple job names TSOUSR1 and BATCHJB1, enter:
PARM='TSOUSR1,BATCHJB1'
3. To detach all Xpediter IMS dependent region tasks, enter:
PARM='ALLXPED'
Note:
If you do not know the job names, run the ADSIM012 program without a
parameter string to obtain a list of each Xpediter job or TSO session that is
currently connected to the IMS control region. Alternatively, the operator can
enter /DIS A on an IMS terminal to get the active job names. The job name for
any Xpediter test region running in TSO is the user's TSO ID.
The ADSIM012 program can also be run as a CLIST in the TSO foreground. To get status
messages at the terminal, specify WTPMSG on the TSO PROFILE command as shown in
the sample CLIST below:
PROFILE WTPMSG
CALL 'CPWR.XT.SLXTLOAD(ADSIM012)' 'parm'
Where parm can be a single job name, multiple job names, or ALLXPED as described
above.
Notes:
1. The ADSIM012 program will not detach Xpediter regions running in XPBYPASS mode
because of the risk of abending the control region with a U113. Regions running in
XPBYPASS mode should be cancelled the same way that a non-Xpediter region is
cancelled.
2. To be effective, the ADSIM012 program must run in the same system where the IMS
control region is running.
3. Because this method forces a termination of the Xpediter test session, there may be
an abend on the TSO session (in Xpediter) while getting out of the test. This abend
should not adversely affect any subsequent Xpediter tests.
Debugging PL/I Programs With Xpediter/IMS
7-17
4. The ADSIM012 program will not detach Xpediter regions in which the Xpediter TCB
handling the STIMER loop is rendered inactive because you pressed the Attn key.
However, normal IMS shutdown procedures (i.e., /STOP REG, /STOP REG ABDUMP,
/STOP REG CANCEL) for these Xpediter regions will work.
7-18
Xpediter/TSO and Xpediter/IMS PL/I User Guide
8-1
Chapter 8.
Debugging With DB2 Stored Procedures
Chap 8
Xpediter/TSO, a testing and debugging product, supports the debugging of DB2 stored
procedures using the DB2 Stored Procedure option. Operation of the product requires the
stored procedure to reside on an OS/390 or z/OS system. The client can be either local
(OS/390 or z/OS) or remote.
DB2 Stored Procedure Requirements
Xpediter/TSO DB2 Stored Procedure support requires:
• DB2 Version 6.1 or above.
• Workload Manager (WLM) managed stored procedures
• Installation of Xpediter/TSO Batch Connect if this feature is to be used for debugging
stored procedures (refer to the chapter entitled “Configuring Xpediter/TSO and
Xpediter/IMS” in the Xpediter/TSO and Xpediter/IMS Installation and Configuration Guide).
• Installation of Xpediter/TSO Stored Procedure support (refer to the chapter entitled
“Install DB2 Stored Procedure Support” in the Xpediter/TSO and Xpediter/IMS Installation
and Configuration Guide).
Overview of DB2 Stored Procedure Support
To debug a stored procedure, you must first inform Xpediter/TSO which stored procedure
you want to debug. The stored procedure will be submitted with a predefined Application
Environment for Xpediter/TSO’s use.
Next, the client application (the program that calls the stored procedure) must be started.
The client can be local to OS/390 (such as batch, IMS, or CICS) or remote (such as
Windows, Windows NT, OS/2, Unix, Powerbuilder, or Visual Basic).
After the client application begins executing and invokes the stored procedure,
Xpediter/TSO intercepts the request from DB2 to WLM to schedule the stored procedure
to be executed. Xpediter/TSO will then direct WLM to use the previously submitted
stored procedure with the Xpediter/TSO application environment.
Xpediter/TSO Stored Procedure support can use either foreground debugging or
Xpediter’s Batch Connect feature. After the client application has made the call to the
stored procedure, the user can debug the stored procedure in their TSO address space or
initiate a Batch Connect debugging session by attaching to the stored procedure. The
source for the stored procedure will be displayed and execution will be paused at the
entry to the stored procedure.
From this point, all available Xpediter/TSO commands may be used for debugging the
stored procedure. You can step through the entire stored procedure until it returns
control through WLM, sending back requested values and return codes to the invoking
(client) program. At this point, either the debugging session will terminate or a second
invocation of the stored procedure can begin. When setting up the debugging session,
you were required to enter how many times the stored procedure will be intercepted by
Xpediter/TSO (this is specified in the Maximum Number of Tests field). If you entered 1,
the debugging session ends after the first invocation of the stored procedure has
8-2
Xpediter/TSO and Xpediter/IMS PL/I User Guide
completed. If you entered a number greater than 1, Xpediter/TSO will wait for the next
call to the stored procedure to restart the debugging session.
After the debugging session is finished, you will be positioned in the Xpediter/TSO
session log and a TEST COMPLETED message will be displayed. At this point, you would
normally enter the GO command, instructing Xpediter/TSO to clean up the environment
and terminate the stored procedure address space.
As an alternative, you can at any time issue the EXIT command, which instructs
Xpediter/TSO to end the test immediately. Be aware that because this action prematurely
ends the test (the application epilog code is not executed), this is treated as an abend. If
the EXIT command is issued at any point other than after the Xpediter TEST
COMPLETED message has been received, any DB2 table updates may be rolled back
during this period, and the stored procedure will not return requested values and return
codes to the invoking (client) program.
Note:
Xpediter/Code Coverage also supports stored procedure programs.
Starting an Xpediter/TSO DB2 Stored Procedure
Debugging Session Using Batch Connect
Xpediter/TSO consists of specific menus and screens accessed through ISPF. During your
debugging session, Xpediter/TSO screens are viewed on a TSO terminal.
Before starting the session, prepare your programs (precompile, compile and link edit)
with the Compuware Shared Services (CSS) language processor. You can use the
Xpediter/TSO online facilities to prepare your programs. Refer to “Preparing Your
Programs” on page 4-3 for additional information. For more information about
Compuware Shared Services, refer to the Compuware Shared Services User/Reference Guide.
Once you have a valid load module and DDIO dataset for the stored procedure, log on to
TSO and invoke Xpediter/TSO. Use the procedures that are in effect at your site. These
procedures will include the following steps:
1. From the Xpediter/TSO Primary Menu (Figure 8-1), select option 4 (Stored
Procedures) and press Enter.
Figure 8-1. Xpediter/TSO Primary Menu
-------------------OPTION ===>
0
1
2
3
4
5
F
FA
FI
C
CS
T
X
XPEDITER/TSO 17.02.00 - PRIMARY MENU
DEFAULTS
PREPARE
TSO
BATCH
STORED PROC
UTILITIES
FADB2
FILE-AID
FILE-AID/IMS
CODE COVERAGE
CICS
TUTORIAL
EXIT
Profile ===> DEFAULT
-
-------------------
Specify defaults
Prepare programs for debugging
Debug programs interactively under TSO
Debug programs interactively under batch
Debug DB2 Stored Procedures interactively
Perform utility functions
Invoke File-AID for DB2
Invoke File-AID for MVS
Invoke File-AID for IMS
Code Coverage Reports and Utilities
Connect to a CICS region
Display information about XPEDITER/TSO
Exit primary menu
- *** NO DESCRIPTION ***
For Online Technical Support Reference: http://frontline.compuware.com
COPYRIGHT (C) 2016, Compuware Corporation. All rights reserved.
(800) 538-7822
Press ENTER to process
or
enter END command to terminate
Debugging With DB2 Stored Procedures
Note:
8-3
The Xpediter/TSO Process DB2 Stored Procedures screen (Figure 8-2 on page
8-4) is displayed.
2. On the Process DB2 Stored Procedures screen (Figure 8-2 on page 8-4), type SETUP on
the command line and press Enter to display the Xpediter/TSO Setup Menu screen
(Figure 8-3 on page 8-6).
3. Specify an A (All) in the OPTION field of the Setup Menu screen and press Enter to
display the Base Product Datasets screen. Continue to press Enter to access additional
screens and review all of your setup selections. The following choices are available:
– Load libraries—user program libraries allocated as STEPLIB. Verify that the order
of concatenation is correct. Help libraries are also listed on this screen.
– DDIO Dataset Files—the library name should be the dataset name of the DD
CWPDDIO in your Xpediter compile step. The field designations are User
Libraries and Installation Libraries.
– Test script libraries.
– Test session log dataset.
– Test session script dataset.
– DB2 system names and DSNLOAD datasets.
– Code Coverage datasets and session parameters (if installed at your site).
– Test session document dataset—used for diagnostic purposes under the direction
of Xpediter Technical Support. Disposition after test as D.
– Extended setup options.
Note:
As you view the individual screens, you may encounter the message:
Changes made to this list override installed defaults
4. If everything is correct, press PF3 from the Setup Menu to return to the Process DB2
Stored Procedures screen (refer to Figure 8-2 on page 8-4).
5. Fill in the schema name, the stored procedure name or UDF, DB2 subsystem name,
and maximum number of tests for the stored procedure that you wish to debug. The
stored procedure name can be a stored procedure, trigger or UDF. In the case of a
UDF, the procedure name should be used in the Stored Procedure Name of UDF field.
In the case of triggers, the trigger must use a triggered SQL that invokes a stored
procedure. So, on the CREATE TRIGGER you should include the SQL that calls the
stored procedure.
6. Fill in the client end userID, PC account code, or IP address of the computer. You may
also enter an asterisk (*) to match on anything.
7. Set the User Supplied WLM JCL field to N (No) to make Xpediter retrieve the JCL
defined for the stored procedure. Set User Supplied WLM JCL to Y (Yes) if you wish
to specify your own JCL to execute the stored procedure. When specifying Y, an
additional Select Job Step screen will be displayed where you must enter the dataset
that contains the JCL (this JCL must execute the WLM server).
8. Convert and Submit the JCL: The Select Job Step screen (Figure 8-5 on page 8-8) is
used to specify how you want each job step to execute (in interactive or unattended
mode), and if you want Code Coverage to be active or not. When a job step is
selected for interactive debugging, the source for that step is displayed at your
terminal.
When a step is selected to run in unattended mode, you cannot interact with the step
from your terminal. If you want to debug the step, Xpediter debugging commands
must be read from a test script and the output results from the test session are written
to the session log.
8-4
Xpediter/TSO and Xpediter/IMS PL/I User Guide
You can submit the job from this screen or you can edit the JCL. When you submit
the job, the Batch Connect JCL scanner automatically converts each step to execute
in the specified mode (interactive or unattended).
9. Connect to the Job: If you submit the job with the RUN command, you are
automatically connected to the job steps that were specified to execute in interactive
mode. If you submit the job with the SUBMIT command, you must use either the
CONNECT or STATUS command to connect your terminal to the job steps selected
for interactive debugging.
10. Edit the JCL: Optionally, you can access the Edit Facility from the Process Execute
JCL or Select Job Step screen to view and confirm the JCL conversion, or to make
changes to the JCL.
11. Once the debugging session is submitted, Xpediter/TSO waits for the stored
procedure to be called by the client application. After the stored procedure has been
called, you can connect to it with Xpediter/TSO.
12. View the Xpediter/TSO source display on the TSO terminal.
13. Debug the stored procedure using any of the Xpediter/TSO debugging commands.
14. At the end of the test type GO or EXIT and press Enter. EXIT is a premature end to
the test and will cause an abend. DB2 updates may be rolled back during this period.
15. If you enter a number greater than 1 in the Maximum Number of Tests field,
Xpediter/TSO will wait until the next time the stored procedure is called, and then
return you again to the source.
Debugging a DB2 Stored Procedure
From the Xpediter/TSO primary menu, select OPTION 4 (STORED PROC) to debug a DB2
stored procedure. Press Enter and the Xpediter/TSO Process DB2 Stored Procedures screen
shown in Figure 8-2 is displayed.
Figure 8-2. Xpediter/TSO Process DB2 Stored Procedures Screen
PROFILE: DB2SP -COMMAND ===>
XPEDITER/TSO - Process DB2 Stored Procedures
--------------
Primary Commands: SEtup (display setup menu)
Schema Name ===> XT
Stored Procedure Name
or UDF
===>
TRISPTG
Client End UserID or PC Account Code
or IP Address ===> ACMJET0
DB2 Subsystem Name ===> D909 (D901,D909)
Maximum Number of Tests ===> 3
(1 - 9999)
User Supplied WLM JCL ===> Y
(Y or N)
Cross-LPAR Submit ===> N
(Y or N)
Jobcard Information:
===> //ACMJET0
JOB (#ACCOUNT),CLASS=A,MSGCLASS=X,
===> // 'XPEDITER',
===> // CLASS=A,MSGCLASS=X
===> //*
===> /*JOBPARM S=*
Press ENTER to process
or
enter END command to terminate
After the required information is entered, the JCL needed to execute the stored procedure
must be submitted.
Debugging With DB2 Stored Procedures
8-5
The SEtup command displays the Setup Menu screen (Figure 8-3 on page 8-6) from which
you can select screens for specifying load libraries, DDIO datasets, and so on.
The fields on the Process DB2 Stored Procedures test screen are:
Schema Name
Used to supply the schema name associated with the stored procedure. Xpediter will
use this name, along with the stored procedure name, to resolve the Workload
Manager (WLM) application environment and the load module name. Your site’s DB2
administrator or WLM System Support specialist should be able to provide the
schema and stored procedure names that have been defined to WLM and DB2.
Beginning with DB2 8.1, the schema name can be up to 128 bytes long.
Stored Procedure Name or UDF
Used to identify the OS/390 DB2 stored procedure to be debugged using
Xpediter/TSO. Beginning with DB2 8.1, the stored procedure name can be up to 128
bytes long.
Client End UserID or PC Account Code or IP Address
Enter whichever of the following is appropriate for your test:
– The ID of the user executing the client program that calls the stored procedure. If
the client is a batch job, specify the user ID assigned to the job. Xpediter will not
trap the stored procedure if the client calling it is associated with a different user
ID.
– The TCP/IP address where a network call of the stored procedure is done. An
example would be a DB2 UDB on the PC.
– The DB2 accounting code of the PC used to execute the client program. If DB2
UDB is installed and appropriately configured on the PC, the accounting code
can be set at the DOS prompt by entering DB2SET DB2ACCOUNT=xxxxxx where
xxxxxx is the desired code. This will cause the account code to be passed to the
mainframe when calling the stored procedure.
– An asterisk (*). This will match on anything.
This field is required.
DB2 Subsystem Name
The name of the DB2 Subsystem which this stored procedure is running under. This
field is required.
Maximum Number of Tests
This field indicates how many times the stored procedure will be intercepted by
Xpediter/TSO. If a stored procedure is called multiple times and this field is set to 1,
only the first iteration will be trapped by Xpediter/TSO. Subsequent calls will run
outside of Xpediter/TSO.
User Supplied WLM JCL
Enter either Y (Yes) or N (No). N indicates that Xpediter/TSO will retrieve the Work
Load Manager (WLM) JCL from DB2 to run the stored procedure. Y indicates that you
will provide the WLM JCL to run the stored procedure. A subsequent panel will be
displayed to enter the dataset name of the JCL.
Jobcard Information
Enter the jobcard information to be used for the stored procedure test that is
executed. If N was entered in the User Supplied WLM JCL field, the JOBCARD will
be used for the retrieved stored procedure JCL when the test is submitted.
8-6
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Accessing the Xpediter/TSO Setup Menu Screen
If you type SEtup on the command line of the Process DB2 Stored Procedures screen and
press Enter, the Xpediter/TSO Setup Menu screen shown in Figure 8-3 on page 8-6 is
displayed.
Figure 8-3. Xpediter/TSO Setup Menu Screen
Profile: DEFAULT --------- XPEDITER/TSO - SETUP MENU --------------------------
OPTION ===>
0 ENVIRONMENT - Execution environments menu
1 LOADLIBS
- Load module libraries
2 DDIO
- DDIO files
3 INCLUDES
- Test script libraries
4 LOG
- Session log dataset disposition
5 SCRIPT
- Test script dataset disposition
6 DSNLOAD
- DB2 system names and DSNLOAD libraries
7 PANEXEC
- PANEXEC load libraries
C CODE COVERAGE- Code Coverage setup options
D DOCUMENT
- Document dataset disposition
E EXTENDED
- Extended Setup Menu
A ALL
- Display all of the above in succession (except 0)
Press ENTER to process or enter END command to terminate
To access the screens containing Load Libraries, DDIO dataset, etc., type an A (All) on the
command line of the Setup Menu Screen and press Enter.
Each of the successive screens (Test script libraries, Test Session Log dataset, DSNLOAD
datasets, etc.) are accessible (in consecutive order) by continuing to press Enter.
Specifying the JCL
If you enter a Y in the User Supplied WLM JCL field of the Xpediter/TSO Process DB2
Stored Procedures screen, Figure 8-4 will be displayed. From the Process Execute JCL
screen (Figure 8-4), specify the name of the dataset that contains the Work Load Manager
(WLM) JCL specific to your stored procedure. Type this name in the Dataset Name field
and press Enter. This JCL must execute the WLM server.
Debugging With DB2 Stored Procedures
8-7
Figure 8-4. Process Execute JCL Screen
-------------------- XPEDITER/TSO - PROCESS EXECUTE JCL -----------------------
COMMAND ===>
Primary Commands: blank (Process JCL)
Browse
Edit
SEtup
STatus
ISPF Library:
Project ===> PFHABC0
Group
===> BATCON
===>
===>
===>
Type
===> JCL
Member ===>
(Blank for member selection list)
Other Partitioned or Sequential Dataset:
Dataset Name ===> ‘CPWR.XT.SLXTSAMP(TRIJCLST)’
Volume Serial ===>
(If not cataloged)
Press ENTER to process or enter END command to terminate
There are two steps you must perform on the Process Execute JCL screen:
1. Enter the name of the dataset containing your execution JCL, either in the ISPF
Library field or in the Other Partitioned or Sequential Dataset field.
2. Use one of the following primary commands on the command line:
blank
Leave the command line blank to scan the specified JCL and extract the
job step information. If the JCL is a procedure, it is expanded prior to
scanning. A progress message is displayed during processing. When
processing is complete, the Select Job Step screen shown in Figure 8-5 is
displayed.
Browse Invokes the ISPF browse facility and displays the specified JCL.
Edit
Invokes the ISPF edit facility and displays the specified JCL. You can edit
the JCL. Refer to “Editing the JCL” on page 4-18 for more information.
SEtup
Accesses the Test Setup Menu that will let you access the job card
information needed to process JCL PROCs. Refer to Appendix C,
“Specifying Setup Options” for more information.
STatus
Displays the status of any submitted job(s). You can connect to a job from
the Status screen.
When JCL processing is completed, the job steps in the specified JCL are displayed on the
Select Job Step screen shown in Figure 8-5.
8-8
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure 8-5. Xpediter/TSO Select Job Step Screen
----------------------COMMAND ===>
XPEDITER/TSO - SELECT JOB STEP
Line Commands:
I - Interactive testing
U - Unattended testing
Followed optionally by:
C - Code Coverage
T - Code Coverage, plus TDO
F - System Flow (F, CF or TF)
----- Row 1 to 1 of 1
SCROLL ===> PAGE
Primary Commands:
Edit
- Display converted selected steps
END
- Exit without processing
RUN
- Submit and connect
SEtup - Setup work datasets
SUBmit - Convert selected steps and submit
STatus - Display status of submitted job(s)
Dataset: 'CPWR.XT.SLXTSAMP(TRIJCLST)'
PROGRAM
INITSCR POSTSCR
STEPNAME PROCNAME PROCSTEP EXEC PGM
----------------------------------- -----------------------------------------
___
DSNX9WLM
________ ________
CREATE
******************************* Bottom of data ********************************
The Select Job Step screen is used in two ways:
1. Use the I or U line command to specify how you want each job step to execute: in
interactive or unattended mode. The JCL will be converted to run with Xpediter/TSO
in the specified execution mode. Refer to “JCL Conversion” on page 4-20 for
information about JCL conversion.
2. Use the RUN or SUBMIT primary command to convert and submit the JCL, the EDIT
command to view or edit the JCL, the SETUP command to access and change your
job card information, the STATUS command to display the status of submitted jobs,
or the END command to exit.
The Line commands are defined as follows:
I (Interactive) testing
Selects the step to run in interactive mode.
U (Unattended) testing
Selects the step to run in unattended mode.
IC (Interactive Code Coverage)
Selects the step to run in interactive mode (with Code Coverage active).
UC (Unattended Code Coverage)
Selects the step to run in unattended mode (with Code Coverage active).
IT (Interactive Test Data Optimization) testing
Selects the step to run in interactive mode (with Code Coverage and TDO active).
UT (Unattended Test Data Optimization) testing
Selects the step to run in unattended mode (with Code Coverage and TDO active).
IF (Interactive System Flow) testing
Selects the step to run in interactive mode (with System Flow active).
UF (Unattended System Flow) testing
Selects the step to run in unattended mode (with System Flow active).
ICF (Interactive Code Coverage/System Flow) testing
Selects the step to run in interactive mode (with Code Coverage and System Flow
active).
Debugging With DB2 Stored Procedures
8-9
UCF (Unattended Code Coverage/System Flow) testing
Selects the step to run in unattended mode (with Code Coverage and System Flow
active).
ITF (Interactive Test Data Optimization/System Flow) testing
Selects the step to run in interactive mode (with Code Coverage, TDO, and System
Flow active).
UTF (Unattended Test Data Optimization/System Flow) testing
Selects the step to run in unattended mode (with Code Coverage, TDO, and System
Flow active).
blank (Reset I/U/C/T/F)
Blank the line command area and press Enter to remove any line command set on a
job step.
The Primary commands are defined as follows:
Edit
Accesses the ISPF edit facility. The JCL is automatically converted and displayed on
the ISPF edit screen. You can view and confirm the JCL conversion and make
additional modifications to the converted JCL. However, the changes made to the
converted JCL will not be saved when you select CANCEL or PF3 (END) from the edit
screen. Refer to “Editing the JCL” on page 4-18 for more information and for an
example of the ISPF edit screen (Figure 4-10 on page 4-19).
Note:
You can submit the JCL from the edit screen using the RUN or SUBMIT
command.
END
Exits without converting the JCL, saving any modifications, or submitting the job,
and returns you to the Process Execute JCL screen.
RUN
Converts the steps selected by the I and U line commands to predefined
Xpediter/TSO steps and submits the JCL. When the job processes successfully, you are
automatically connected to the job steps selected to run in interactive mode and the
Source screen is displayed.
If the job is a long-running job, the Connect Status screen is displayed showing the
job status.
Note:
The terminal cannot be used while the job is running.
If the JCL is already converted, the RUN command (with a DSNAME) can be entered
on any screen except an Xpediter test session screen. Refer to the Xpediter/TSO and
Xpediter/IMS Reference Manual for more information about the RUN command.
SEtup
Displays the Setup Menu from which you can select to view and change the job card
and library information, such as the DDIO file (XPSL000n) and the SCRIPT file
(XINCLUDE). Refer to Appendix C, “Specifying Setup Options” for more
information.
SUBmit
Converts the steps selected by the I and U commands to Xpediter/TSO steps and
submits the job. A job submitted with the SUBMIT command is not automatically
connected. To connect to a job submitted with the SUBMIT command, you must use
the CONNECT or STATUS command. Refer to “Connecting to a Job” on page 4-17 for
more information regarding the CONNECT or STATUS command.
8-10
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Note:
While the job is running, you can continue using your terminal.
STatus
Displays the status of a job. You can connect to the job directly from the Status
screen.
The fields displayed on the Select Job Step screen are defined as follows:
Dataset
This field is pre-filled with the dataset name of the JCL being processed.
PROGRAM
The name of the program to be tested. The PROGRAM name does not necessarily
match the EXEC PGM name.
INITSCR
The member name of the script in the INCLUDE library specified on the Setup panel.
The INITSCR field can be typed over to specify a test script member, which can then
be processed at the beginning of a debugging session.
POSTSCR
The member name of the script in the INCLUDE library specified on the Setup panel.
The POSTSCR field can be typed over to specify a test script member which can be
processed at the end of a debugging session.
STEPNAME
The job step name.
PROCNAME
The in-stream or cataloged procedure name.
PROCSTEP
The step name within the called procedure.
EXEC PGM
The name of the EXEC program that is executed for the step. XPTSO if I (Interactive)
was specified for the step. XPBATCH if U (Unattended) was selected for the step. The
field is left blank if the name is the same as the one entered in the PROGRAM field.
Connecting to a Job
When you use the RUN command to submit the job, the steps that are selected for
interactive debugging are automatically displayed at your terminal.
When you use the SUBMIT command to submit the job, there are two ways to connect to
a job—the CONNECT command and the STATUS command:
1. CONNECT Command: You can use the CONNECT command on any screen (except
the source display) to connect a VTAM terminal to a job submitted through
Xpediter/TSO’s Batch Connect facility. You can connect to a job with multiple steps
or to a single step job. For information on the CONNECT command syntax, refer to
the Xpediter/TSO and Xpediter/IMS Reference Manual.
2. STATUS command: The STATUS command is used to display the Status screen
containing a list of the active/inactive jobs in the system. The STATUS command can
be entered from any screen.
The ATTACH line command on the Status screen is used to connect to a job and display
the source of each job step for which the I (Interactive) command was specified. A
message is displayed notifying you that the job step selected for testing is executing.
Debugging With DB2 Stored Procedures
8-11
Editing the JCL
There are two points at which the Batch Connect facility lets you edit your JCL.
1. Primary editing is available by entering the EDIT primary command on the Process
Execute JCL screen (Figure 8-4 on page 8-7). An ISPF edit session is invoked and the
specified JCL is displayed. If your site security permits, changes will be saved to the
original JCL when the edit session ends.
2. Secondary editing is available by entering the EDIT primary command on the Select
Job Step screen (refer to Figure 8-6). An ISPF edit session is invoked and a temporary
copy (45 lines) of JCL as shown in Figure 8-7 on page 8-11 is displayed. JCL
statements for those steps selected for testing, using the I (Interactive) or U
(Unattended) line commands, are already converted when the edit screen is
displayed.
After any editing is completed, you can submit the job from the Xpediter/TSO Select
Job Step screen (Figure 8-6) with the RUN or SUBmit command.
Figure 8-6. Xpediter/TSO Select Job Step Screen
PROFILE: DB2SP--------COMMAND ===> Edit
XPEDITER/TSO - SELECT JOB STEP
Line Commands:
I - Interactive testing
U - Unattended testing
Followed optionally by:
C - Code Coverage
T - Code Coverage, plus TDO
F - System Flow (F, CF or TF)
----- Row 1 to 1 of 1
SCROLL ===> PAGE
Primary Commands:
Edit
- Display converted selected steps
END
- Exit without processing
RUN
- Submit and connect
SEtup - Setup work datasets
SUBmit - Convert selected steps and submit
STatus - Display status of submitted job(s)
Dataset: 'CPWR.XT.SLXTSAMP(TRIJCLST)'
PROGRAM
INITSCR POSTSCR
STEPNAME PROCNAME PROCSTEP EXEC PGM
----------------------------------- -----------------------------------------
___
DSNX9WLM
________ ________
SERVER
IEFPROC
XPTSO
******************************* Bottom of data ********************************
Figure 8-7. Sample Edit JCL Screen
EDIT ---- SYS00306.T150619.RA000.PFHABC0.R0105038 ------------ Columns 001 072
COMMAND ===>
SCROLL ===> PAGE
****** ***************************** Top of Data ******************************
000001 //PFHABC0S JOB ('OXTBAS7.7DEV'),'JOHN JONES',
000002 //
CLASS=A,NOTIFY=PFHABC0,MSGCLASS=X,REGION=6144K
000003 /*JOBPARM S=*
000004 //SERVER PROC DB2SSN=D610,
000005 //
NUMTCB=1,
MUST BE 1 FOR XPEDITER/TSO
000006 //
APPLENV=XPEDAENV,
000007 //
DB2Q=DSN610,
DB2 HIGH LEVEL QUALIFLIER
000008 //
LELIB='CEE.SCEERUN',
LE LIBRARY
000009 //
USERLIB='XTTEST.X77.IVP.LOADLIB' WHERE TRISPM RESIDES
000010 //*
000011 //*************************************************************
000012 //*
JCL FOR RUNNING THE WLM-ESTABLISHED STORED PROCEDURES
000013 //*
ADDRESS SPACE
000014 //*
000015 //*
DB2SSN -- THE DB2 SUBSYSTEM NAME.
000016 //*
END USER REQUESTS. MUST BE 1 FOR XPEDITER/TSO.
000017 //*
APPLENV -- THE MVS WLM APPLICATION ENVIRONMENT
000018 //*
SUPPORTED BY THIS JCL PROCEDURE. THIS BE THE
000019 //*
WLM NAME USED DURING THE STORED PROCEDURE
000020 //*
DEFINITION TO DB2.
NO STEP WAS SELECTED. JCL IS UNCHANGED.
8-12
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Debugging a Client Application and a DB2 Stored
Procedure Together
A specialized technique has been developed that allows for the debugging of a client
application which calls a DB2 stored procedure, while using a single TSO userid. Detailed
instructions are provided in Appendix H, “Debugging a Client Application and DB2
Stored Procedure”.
Note:
This technique will only work if the client application is submitted as a batch
program set up to run with Xpediter/TSO Batch Connect.
DB2 Stored Procedure Security Considerations
Be advised that there are a few security considerations concerning Xpediter/TSO Stored
Procedure support.
Batch Connect Security Check
Connection can be made to any job, including production jobs, if you permit testing in
production DB2 subsystems, as long as your site security grants the authority. The Batch
Connect facility is shipped with a default security exit routine that allows connection to
a job if the JOBNAME, without the last character, matches the TSO ID of the user
attempting to connect it. When a connection cannot be made, the messages CANNOT
CONNECT or SECURITY CHECK FAILED are issued.
The site installer can customize the security exit routine to tailor the security level for
certain groups or individuals. When an asterisk (*) is entered in the Jobname field on the
Status screen, all jobs that are waiting for connection or being tested under Batch
Connect are listed. System programmers are able to connect to a remote job and use the
facility as a help desk feature in debugging application programs.
DB2 Subsystems to Debug
Before Xpediter/TSO can be used to debug stored procedures, an Xpediter/TSO stored
procedure activation program must be run on the OS/390 system (after every IPL). The
DB2 subsystems Xpediter/TSO will be allowed to intercept are specified to the activation
program. Refer to the Xpediter/TSO and Xpediter/IMS Installation and Configuration Guide for
details on the execution of the DB2 stored procedure activation program.
Optional Security Access Facility (SAF) Calls
Optionally, Xpediter/TSO will issue SAF (Security Access Facility) calls to your external
security package (RACF, ACF2, Top Secret, etc.). This allows your installation to limit the
number of individual users who are able to debug DB2 stored procedures being called
from whichever client selected. Refer to the Xpediter/TSO and Xpediter/IMS Installation and
Configuration Guide for details on how to add additional DB2 stored procedure security.
Security Exit
If you have specific security issues not addressed by the aforementioned security
procedures, you can optionally code an Xpediter/TSO and Xpediter/IMS security exit.
Refer to the Xpediter/TSO and Xpediter/IMS Installation and Configuration Guide for details on
how to add additional DB2 stored procedure security via the ADSRAUSR exit.
Debugging With DB2 Stored Procedures
8-13
Foreground Debugging of DB2 Stored Procedures
In addition to debugging stored procedures in Batch Connect mode as described above,
Xpediter enables DB2 stored procedures to be debugged within the TSO address space.
This foreground debugging capability eliminates the requirement to install Xpediter/TSO
Batch Connect.
Note:
Before testing a stored procedure in foreground mode, make sure the DB2
SDSNLOAD library has been specified on the Load Module Libraries screen
(Standard Setup menu option 1). For more information, see “Load Module
Libraries Screens” on page C-6.
The following example illustrates how to perform foreground debugging of a stored
procedure. For the purposes of this example, assume that an existing test profile is being
used and debugging of DB2 stored procedures has been selected on the Environments
Menu. Only the stored procedure can be debugged during this session. The driver or
client that calls the stored procedure must be debugged in a separate foreground or batch
debugging session.
1. From the Xpediter/TSO Primary Menu (Figure 8-1 on page 8-2), select option 2 (TSO)
and press Enter. The DB2 Stored Procedure screen (2.12) shown in Figure 8-8 will be
displayed.
Figure 8-8. DB2 Stored Procedure Screen (2.12)
PROFILE: DB2SP
XPEDITER/TSO - DB2 Stored Procedure (2.12) ----------------
COMMAND ===>
COMMANDS: SEtup (Display Setup Menu)
PROFile (Display Profile List)
Schema Name ===> XT
Stored Procedure Name
or UDF ===> TRISPTG
Client End UserID
or PC Account Code
or IP Address ===> MFHABC0
DB2 Subsystem Name ===> D909 (D901,D909)
Maximum Number of Tests ===> 1
(1 - 9999)
Initial Script ===>
Post Script ===>
File List/JCL Member ===>
Preview Files? ===> NO
Code Coverage Test? ===> NO
(YES, NO, TDO) System Flow? ===> NO
Press ENTER to process or enter END command to terminate
2. Fill in all required fields on the DB2 Stored Procedure screen, then press Enter to start
the test. The Test screen shown in Figure 8-9 will be displayed while waiting for the
stored procedure to be intercepted.
8-14
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure 8-9. Test Screen During Stored Procedure Testing
Profile: STORE --------------------- TEST ----------------------Files Allocated
COMMAND ===>
************************************************
*
*
*
Entering XPEDITER/TSO Test Environment
*
*
*
************************************************
*
TYPE OF TEST: STORED PROCEDURES
*
*
PROFILE: STORE
*
*
STORED PROCEDURE: XT.TRISTPG
*
*
DB2 SUBSYSTEM: D610
*
*
USERID: MFHABC0
*
************************************************
Note:
At this point, you may choose to exit the test. See “Exiting an In-Progress Stored
Procedure Test” on page 8-14 for details.
3. Initiate the client that invokes the stored procedure specified in step 2.
4. After intercepting the stored procedure, Xpediter will display the source as shown in
Figure 8-10.
Figure 8-10. Source Display for Stored Procedure Test
----------------------------- XPEDITER/TSO - SOURCE ----------------------------
COMMAND ===>
SCROLL===> CSR
BEFORE BREAKPOINT ENCOUNTERED
---
000010
01 TST-REC
> 345
000014
01 TYPE-OF-TRIANGLE
> ??
INVALID DECIMAL
** END **
---------------------------------------------- Before TRISPTG:15/AMODE 31 <>
====>> B PROCEDURE DIVISION
USING TST-REC
000016
TYPE-OF-TRIANGLE.
000017
VALIDATE-TRIANGLE.
000018
ADD A B GIVING A-N-B
000019
ADD A C GIVING A-N-C
000020
ADD B C GIVING B-N-C
000021
IF (B-N-C NOT > A) OR (A-N-C NOT > B) OR (A-N-B NOT > C)
000022
MOVE 4 TO TYPE-OF-TRIANGLE.
000023
DETERMINE-TYPE.
000024
IF TYPE-OF-TRIANGLE = 4
000025
NEXT SENTENCE
000026
ELSE
000027
IF (A = B) AND (B = C)
000028
MOVE 1 TO TYPE-OF-TRIANGLE
Note:
If you need to prematurely end the test, type EXIT on the command line and
press Enter. This will cause a user abend so DB2 can clean up its resources.
5. Enter the GO command (at the GOBACK) for normal test completion. When the test
has completed, the Xpediter session log will be displayed. At that point you must
enter the GO command again to complete the DB2 stored procedure test.
Exiting an In-Progress Stored Procedure Test
While waiting for a stored procedure to be intercepted, you can press Attention to
suspend the test. The message shown in Figure 8-11 will be displayed, giving you the
Debugging With DB2 Stored Procedures
option of continuing or exiting the test. This gives you a way of escaping the test, if
necessary, while the wait for a stored procedure intercept is in progress.
Figure 8-11. Stored Procedure Intercept In Progress Message
DB2 STORED PROCEDURE INTERCEPT IN PROGRESS
INTERCEPT DATA: SUBSYS=D610 USERID=TSOUSER1
ENTER EXIT TO TERMINATE OR ENTER TO CONTINUE
STORED PROCEDURE=TRISPTG
Responding to the message with EXIT forces Xpediter to clean up the current
environment and terminate the test. A few error messages similar to those shown in
Figure 8-12 will be displayed as a result.
Figure 8-12. Error Messages from Stored Procedure Test Exit
DB2 STORED PROCEDURE INTERCEPT IN PROGRESS
INTERCEPT DATA: SUBSYS=D610 USERID=TSOUSER1
STORED PROCEDURE=TRISPTG
ENTER EXIT TO TERMINATE OR ENTER TO CONTINUE
EXIT
BPXP009I THREAD 14E5740000000001, IN PROCESS 83886228, ENDED
ABNORMALLY WITH COMPLETION CODE 0423E000, REASON CODE 00000000.
Abend 23E000 hex occurred processing command 'XPCP
'.
***
8-15
8-16
Xpediter/TSO and Xpediter/IMS PL/I User Guide
9-1
Chapter 9.
Debugging Programs With Special Conditions
Chap 9
Checkpoint/Step Restart
XPEDITER/TSO supports Checkpoint/Step Restart using the RESTART JCL card under
certain circumstances. Consider the following scenarios.
Scenario One
There is an ABEND in a multiple step job stream and the ABEND occurred in a step other
than the step currently being tested. Under this scenario, both Step and Checkpoint
Restarts are supported.
To use Step or Checkpoint Restarts, the session log, script, and document datasets need to
be retained. Because it is not possible to know beforehand that a program will ABEND, it
is your responsibility to specify retention for these datasets if you want the ability to do a
Step or Checkpoint Restart. Refer to “Log, Script, and Document Dataset Screens” on
page C-9 for how to do this.
Scenario Two
An ABEND has occurred in a job stream without XPEDITER/TSO and the user wants to
use XPEDITER/TSO to resolve the problem. Under this scenario, Step Restart is supported
if the CONVERT JCL expansion option is used. Checkpoint Restart is not supported.
Note: The CONVERT JCL processing routines ensure the uniqueness of STEPNAMEs and
convert PROCNAME.STEPNAME to the newly generated STEPNAME.
To use Step Restart, the RESTART JCL card must specify a STEPNAME. The XPEDITER
allocation step is then inserted into the JCL just before the step specified on the RESTART
JCL card, and the RESTART JCL card is modified to point to that XPEDITER allocation
STEPNAME. If the RESTART JCL card does not specify a STEPNAME, no special processing
is performed (the JCL is converted as usual).
If you want to be able to use Step Restart after testing with XPEDITER/TSO, retain the
session log, script and document datasets as described in “Scenario One” on page 9-1.
31-bit Support
Xpediter/TSO runs as an ISPF dialog in the TSO region under the MVS operating system.
Xpediter/TSO modules reside above the 16 MB line, except for the I/O modules. You can
execute any programs that are AMODE(31) or RMODE(ANY) with Xpediter/TSO.
Code Generator Support
Source code that has been generated with a code generator can be compiled with the
language processor and debugged with Xpediter/TSO at the generated COBOL level. Code
generators that produce object modules are executed with Xpediter/TSO; however, you
9-2
Xpediter/TSO and Xpediter/IMS PL/I User Guide
might not be able to do any symbolic debugging, such as setting breakpoints and
displaying variable contents.
Optimized Code Support
COBOL programs that are optimized using the OPTIMIZE compiler option or the
PROCESS REORDER option can be debugged symbolically under Xpediter/TSO without
altering the load module. However, depending on the optimizing algorithm applied to
the code, execution trace and stepping through code in Xpediter/TSO can appear to be
incorrect. The logic optimization can also impact the data flow in the program. Data
values displayed with the KEEP and PEEK commands cannot be updated correctly, and
the GOTO command is not allowed for a procedure name or statement number that was
streamlined by the optimizer.
OPT is displayed in the upper right corner of the Xpediter Source screen if the program
has been compiled as OPTIMIZED or INLINE, as shown in Figure 9-1.
Figure 9-1. OPT Indicator on Xpediter Source Screen
------------------------- XPEDITER/TSO - SOURCE --------------------------OPT-
COMMAND ===>
SCROLL===> CSR
BEFORE BREAKPOINT ENCOUNTERED
** END **
---------------------------------------------- Before TRIMINP1/AMODE 31 <>
=====> B TRIMAINP: PROC OPTIONS(MAIN);
------
000002
DCL INFILE INPUT RECORD FILE;
000003
DCL IN_REC
BASED(IN_REC_PTR)
CHAR(80);
The side effects of optimization can be verified by comparing the test results against code
that has not been optimized, or by analyzing the PMAP and LIST information generated
at compile time.
On-Units Support
Xpediter/TSO forces the NOSPIE and the NOSTAE PL/I run-time options to ON.
Xpediter/TSO does not intercept PL/I raised conditions. Xpediter/TSO does not stop at
abends detected by the PL/I run-time modules that result in PL/I conditions. You must set
a breakpoint at the corresponding ON-UNIT to gain control.
Mixed Language Support
You can debug mixed COBOL, PL/I, C, and/or Assembly language applications under the
same debugging session if you are licensed for the languages comprising the application.
If you are not licensed, you cannot create the necessary source listing records.
If you are licensed, Xpediter/TSO automatically enables the appropriate language
commands and run-time environment for the qualified program. The source is displayed
if you created the source listing member for the program; the language dependencies are
transparent to the user. Otherwise, the module for the language that is not licensed is
treated as an executable module without source. You are not allowed to perform any
symbolic debugging tasks; however, you can execute through the module.
Debugging Programs With Special Conditions
9-3
Database Support
There are three types of databases that Xpediter/TSO supports. The first category is thirdparty software in general, the second is IMS/DB, and the last is DB2.
IDMS/DB, ADABAS, SUPRA, DATACOM/DB, System 2000
You can debug batch programs that issue calls to IDMS/DB, ADABAS, SUPRA
(TIS/TOTAL), DATACOM/DB, and System 2000 under the Standard environment (option
1 on the Xpediter/TSO Environments Menu). The databases are treated as if the programs
are issuing I/O operations to the VSAM files. You must pre-allocate the databases using
the File Allocation Utility. There are no special parameters that you must set in order to
debug ADABAS and SUPRA programs; however, you must SET STATIC OFF to access IDMS
database programs. If you are performing an Xpediter/Code Coverage test of a DATACOM
application, you must enter the EXIT command at the end of the test in order to record
Code Coverage statistics. This is because the DATACOM driver program does not follow
prevalent return linkage conventions. Refer to the Xpediter/TSO and Xpediter/IMS Reference
Manual for information about the SET commands.
IMS/DB
Batch programs that make database calls using CALL to PLITDLI are debugged in the
IMS/DB environment (option 3 on the Xpediter/TSO Environments Menu). Verify that
the IMS-related libraries, such as RESLIB, PSB, and DBD, and the parameters information
are correctly defined in the Setup Options screens as well as on the IMS test screen.
During the debugging session, you can dynamically issue DLI function calls on behalf of
your program and access the IMS databases through the use of the DLI command.
IOPCB and return codes can be kept in the Keep window to monitor the DLI calls that are
issued.
The last function code and its return code can be retrieved to monitor the DLI activities
through the use of the SHOW IMSFUNC command. Using HELP IMSCODE shows the
common IMS abend codes.
DBT HSSR
DBT HSSR is the abbreviation for the IBM IMS/VS Data Base Tool High Speed Sequential
Retrieval utility. Xpediter can be used to test both DBT HSSR application programs and
user exits.
These programs are debugged using the IMS/DB environment option (option 3 on the
Xpediter/TSO Environments Menu). To support HSSR, you must add one or more PARMs
on the Xpediter/TSO IMS Parameter Lists screen. For example:
TYPE
HSD
HSB
HSU
PARM LIST
DFSRRC00/DLI,MODULE,PSB,...
DFSRRC00/DBB,MODULE,PSB,...
DFSRRC00/ULU,MODULE,DBD,...
The PARM must follow HSSR standards. To get the proper parameter values, refer to the
working batch JCL or to the IBM IMS/VS DBT HSSR User’s Guide.
Begin the PARM with the name of the control program, normally DFSRRC00, followed by
a slash (/), followed by the environment type.
The subparameters following the first and second commas (that is, MODULE and either
PSB or DBD) are dummy values that are replaced at execution time by values from the
IMS test screen.
9-4
Xpediter/TSO and Xpediter/IMS PL/I User Guide
On the IMS test screen, specify the program type that matches the HSSR PARM you want;
i.e., HSD, HSB, or HSU.
In the PROGRAM field on the IMS test screen, specify the highest level HSSR application
program. This is the program name that is normally specified as the MBR keyword in the
JCL PARM. For testing HSSR user exits, the name is either FABHFSU or FABHURG1.
Xpediter uses the value in the PSB field internally to replace the data string between the
second and third commas. This can be either a PSB or a DBD, depending on the HSSR
function to be performed.
Since the Xpediter/TSO IMS Setup Menu has screens only for IMS-related datasets,
allocate the HSSR datasets in your file allocation list.
When you press the Enter key from the Xpediter/TSO IMS test screen, the presence of the
slash (/) in the specified PARM causes Xpediter to automatically invoke the HSSR driver
program, FABHX034. Before and after module breakpoints are set automatically in the
program specified on the test screen. If no source listing member exists for this program,
the Xpediter session log is displayed. From the session log, you can set additional
breakpoints and then enter the GO command.
DB2
Batch programs that make EXEC SQL calls without IMS/DB are debugged in the Standard
environment (option 1 on the Xpediter/TSO Environments Menu). The DSNLOAD
libraries and the associated DB2 subsystem name must be identified on the Setup screen.
Enter YES in the Is this a DB2 Test? field. In this case, Xpediter/TSO issues a DSN RUN
command to establish the DB2 environment. The plan name and the system name must
be supplied in order to successfully execute the DSN RUN.
When the source is displayed, you will notice that Xpediter/TSO defaults to suppressing
the DB2-translated statements, except for the initialization statements. If you are
licensed for Xpediter for DB2 Extension and File-AID for DB2, you can insert EXEC SQL
statements to prototype DB2 calls in addition to browsing and editing DB2 tables while
in Xpediter/TSO.
ISPF dialog applications that have programs that make EXEC SQL calls are debugged in
the Dialog environment (option 2).
Batch programs that make DB2 calls as well as IMS/DB calls must be debugged in the
IMS/DB environment (option 3).
IMS/DC programs that make DB2 calls are debugged with BTS in the BTS environment
(option 4) or by using Xpediter/IMS option 8 or 9. In an IMS/DC test session with DB2,
split screen cannot be used with any product that causes another attach to DB2. This is
an IMS restriction.
Use HELP SQLCODE to show the common SQL return codes.
Shared DL/I Database (DFHDRP) Support
Programs that access DL/I databases shared between the CICS region and TSO can be
debugged through Xpediter/TSO by executing a CLIST through TSO or by executing a
CLIST as a USEREXIT.
The Xpediter/TSO support for DFHDRP is provided for users who have already installed
DFHDRP (Shared DL/I Database) at their sites. See the CICS/OS/VS Installation and Operations
Guide, order number SC33-0071, “Running a Batch Region for DL/I Shared Databases” for
details of this IBM feature.
There are two methods of installing Xpediter/TSO DFHDRP support:
Debugging Programs With Special Conditions
9-5
1. USEREXIT CLIST
Invoked from within Xpediter/TSO and is panel driven.
2. CLIST to execute DFHDRP
Invoked through TSO. Requires modification for each program to be tested under
Xpediter/TSO.
To install this support, refer to the Xpediter/TSO and Xpediter/IMS Installation and
Configuration Guide.
After the CLIST is executed, the program source appears. At this point, normal
Xpediter/TSO commands are in effect.
Note:
The RETEST command does not work in this environment since the program is
treated as an IMS/VS batch program by Xpediter/TSO.
SORT EXIT Support
Xpediter/TSO can debug sort exits for DFSORT and SYNCSORT if you follow these steps:
1. For DFSORT, enter XPDSORT as the program name on the test screen instead of your
sort exit program name. XPDSORT is a dummy program supplied by Xpediter/TSO to
create a link to SORT. You must specify the name of the Xpediter load library on the
Load Module Libraries screen. This library contains XPDSORT.
For SYNCSORT, enter SYNCSORT as the program name on the test screen instead of
your sort exit program name. You must specify the name of the SYNCSORT load
library on the Load Module Libraries screen. This library contains SYNCSORT.
The Load Module Libraries screen can be accessed from the Test Setup Menu selected
from the Standard test environment screen.
2. Enter the following, plus any parameters required by your specific sort, in the PARM
string field of the test screen:
NOSTIMER
For DFSORT, specify:
DEBUG NOESTAE
using the DFSPARM, SYSIN, or SORTCNTL DD statement.
3. Create an initial test script member that contains the following commands:
– SET DYNAMIC eeeeeeee
where eeeeeeee is the name of your sort exit.
Notes:
1. Ensure that the specified sort exit exists in the user load library under SETUP.
2. You must also modify your sort control statement, such as MODS
Enn=(eeeeeeee,10,,C), to point to XTASKLIB.
– SET DYNAMIC xxxxxxxx
where xxxxxxxx is the name of any dynamically called load module to be
debugged.
Note: Ensure that the specified load module exists in the user load library under
SETUP.
– BEFORE xxxxxxxx:
9-6
Xpediter/TSO and Xpediter/IMS PL/I User Guide
where xxxxxxxx is the name of any module to be debugged, compiled by JCL
calling Xpediter/TSO.
Note: Remember to place a colon (:) at the end to specify that this is a compiled
module.
– AFTER xxxxxxxx:
where xxxxxxxx is the name of any module to be debugged, compiled by JCL
calling Xpediter/TSO.
Note: Remember to place a colon (:) at the end to specify that this is a compiled
module.
– SET EXCLUDE zzzzzzzz
where zzzzzzzz is the name of any COBOL module that does VCON
modifications.
Note: If the sort exit being tested has a load module name different than the CSECT
name, use the fully qualified BEFORE and AFTER commands. For example,
use the following format:
BEFORE load module::SORT_EXIT:
4. Verify that the file allocation list specified on the test screen contains all of your sort
work files and sort control statements, either in-stream or in a dataset allocated
under one of the following DD statements—SYSIN, DFSPARM, SORTCNTL, or
$ORTPARM (for SYNCSORT), in addition to the files your application programs are
expecting. If you have specified a dataset containing JCL, Xpediter/TSO will not
automatically select the required files. Instead, you will be presented with a list of
the JCL. Select the required DDNAMEs from this list.
Note:
If a debugging session must be terminated prematurely while SORT is active, do
not use the EXIT command (it can cause a S0C4 abend), but use the following
primary commands instead:
KEEP PLIRETC
Type over the displayed data value with 0016
GOTO <END statement number>
GO 1 (Enter GO 1 until you are out of the INPUT or OUTPUT procedure
depending on where the SORT is active. You should be at the
statement after the SORT.)
RETURN
CAUTION:
Repetitive premature exits from SORT can diminish the region size.
PANEXEC Support
PANEXEC programs can be debugged using Xpediter/TSO. The installer must specify Y
for the PANEXEC_LOAD_MODULE_SUPPORT keyword in the CMSC PARMLIB. This
allows the PANEXEC Load Libraries screen to appear during installation.
On the PANEXEC Load Libraries screen, the dataset name allocated to ddname PANESRL
must be entered in the PANEXEC Load Library DSNAMES field and the ddname
associated with your PANEXEC control cards must be entered in the PANEXEC Control
Card File DSNAMES field.
Debugging Programs With Special Conditions
9-7
• Debugging applications with TRAP ON or TRAP OFF. Applications can be debugged
with TRAP ON as well as TRAP OFF. The SET LETRAP ON/OFF command lets you set
the TRAP option.
• Debugging the new handlers language construct. Xpediter/TSO lets you control
execution and follow user handler invocation with the following restriction:
– User handler for S0C1: Xpediter/TSO will always get control of a S0C1 abend,
preventing the user from effectively debugging handler routines that process
S0C1 abends.
Usage Note
Even if your application programs would normally find any required Language
dependent run-time subroutines (including LE), without being included in the
JOBLIB/STEPLIB of the batch JCL (usually from the LINKLIST or (E)LPA), the libraries
must still be specified as part of the test session setup. This will ensure that Xpediter’s
Task Library will be properly configured. For Batch Connect, the preferred method is to
include the run-time libraries in the STEPLIB DD statement concatenations of the JCL
step(s) that are being intercepted.
Language Environment Support
Xpediter/TSO provides the following support for Language Environment (LE):
• Debugging applications with TRAP ON or TRAP OFF. Applications can be debugged
with TRAP ON as well as TRAP OFF. The SET LETRAP ON/OFF command lets you set
the TRAP option. Multiple enclaves are not supported if LETRAP is ON.
• Debugging the new handlers language construct. Xpediter/TSO lets you control
execution and follow user handler invocation with the following restriction:
– User handler for S0C1: Xpediter/TSO will always get control of a S0C1 abend,
preventing the user from effectively debugging handler routines that process
S0C1 abends.
Note: When using ASSEMBLER, initial breakpoints or the setting of breakpoints
on a CEEENTRY macro are not allowed. Xpediter/TSO cannot permit
breakpoints on this macro because of conflicts with LE/370 abend
processing.
Usage Note
Even if your application programs would normally find any required Language
dependent run-time subroutines (including LE), without being included in the
JOBLIB/STEPLIB of the batch JCL (usually from the LINKLIST or (E)LPA), the libraries
must still be specified as part of the test session setup. This will ensure that Xpediter’s
Task Library will be properly configured. For Batch Connect, the preferred method is to
include the run-time libraries in the STEPLIB DD statement concatenations of the JCL
step(s) that are being intercepted.
Third-Party Package Support
Third-Party packages are often written in Assembler language using a non-standard
linkage convention. Reset the static call tracing facility by using the SET STATIC OFF
command in an initial script so that Xpediter/TSO does not monitor the calls.
9-8
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Global Handling Of Special Conditions
If special conditions can be handled by a command stream in an initial script, the
@@SITE@@ member can be used to include these commands for the entire user
community. This member will be executed prior to any initial script specified by the user.
If placed in a site-wide script library (defined at installation), a special environment can
be initiated for all users, even if no initial script is specified.
Using IBM MQ for z/OS With Xpediter/TSO
In order to use IBM MQ for z/OS (formerly MQSeries and WebSphere MQ) with
Xpediter/TSO, you must allocate MQ LOADLIBs under DFSESL.
There are two methods of allocating MQ LOADLIBs under DFSESL:
1. By indicating DB2 = Y with a subsystem name (on the test screen). The subsystem
name points to an entry on the DSN LOADLIB screen in the SEtup.
On the DSN LOADLIB screen, more than one LOADLIB can be indicated under DSN
LOAD DSNAME for any given NAME.
For example, when you are using DB2:
NAME
D220
D220
DSNLOAD DSNAME
’Valid.DB2.Subsystem’
’MQ.SERIES.LOADLIB’
In another example, when you are NOT using DB2:
Answer DB2 = Y in every instance.
NAME
D220
DSNLOAD DSNAME
’MQ.SERIES.LOADLIB’
2. Use the File Allocation Utility (FAU). Refer to the Xpediter/TSO and Xpediter/IMS
Installation and Configuration Guide for information about DSNLOAD libraries and
datasets.
A-1
Appendix A.
Using the File Allocation Utility
Appendix A.
App A
The File Allocation Utility (FAU) is a file list editor that is used mainly to create and
maintain file allocation lists for later use. When problems occur during file allocations,
the FAU is automatically accessed and the FAU screens required to correct the problem
are displayed. The screens and procedures available with the FAU are described in this
section.
Using the FAU, you can:
• Create new file lists.
• Edit existing file lists.
• Copy existing JCL, CLIST, and file lists and automatically select the DD statements to
be copied to a new file list.
• Save and allocate a file list for immediate use, or save the file list and allocate it at
another time.
• Depending on your site specifications, access JCL from some library management
systems, such as Librarian, Panvalet, Endeavor, and so on.
• Allocate any number of files at one time, up to the limit defined by your shop.
Accessing the File Allocation Utility
Select option 1 (Prepare) on the Xpediter/TSO Primary Menu to access the FAU. The
Program Preparation Menu shown in Figure A-1 is displayed.
Note:
The FAU is automatically accessed when problems occur during file allocations
from the test screen or using the ALLOCATE command. Only the screens needed
to correct the problem are displayed.
A-2
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure A-1. Program Preparation Menu
-----------------OPTION ===>
1
2
3
4
CONVERT COMPILE JCL
COMPILE FACILITY
BIND FACILITY MENU
EDIT ALLOCATION LIST
-
------------------
Convert compile JCL for XPEDITER
Compile programs for XPEDITER
Bind application plans or packages
Edit or Create file allocation lists
For the COMPILE FACILITY, you may use the Compile Profile field
below as a method of selecting a specific profile that contains
or will contain the desired compile parameters. If an existing
name is entered, the compile parameters previously saved under
that name will be used. If a new name is entered, a new profile
will be created to hold the newly entered compile parameters.
A '?' in the Compile Profile field will display a member list of
existing names permitting profiles to be selected, displayed or
maintained (i.e., COPY, RENAME, DELETE, etc.).
XPEDITER/TSO - PROGRAM PREPARATION MENU
Compile Profile ===> DEFAULT
DEFAULT COMPILE PROFILE
Press ENTER to process
or
enter END command to terminate
Use option 4 (Edit Allocation List) to access the FAU. The Edit File List screen shown in
Figure A-2 on page A-2 is displayed.
Figure A-2. Edit File List Screen
------------------- XPEDITER/TSO - EDIT FILE LIST ------------------------------
COMMAND ===>
Specify File Allocation List Below:
ISPF Library:
Project ===>
Group
===>
Type
===>
Member ===>
(Blank for member selection list)
Other Partitioned or Sequential Dataset:
Dataset Name ===>
Volume Serial ===>
(If not cataloged)
Copy from JCL, CLIST, or Other File Allocation List
Dataset Name ===>
Copy Option ===>
(Replace, Append, Prompt, or Cancel copy)
Automatic Expand ===>
(Yes/No)
Step Selection ===>
(Program name for automatic step selection)
Press ENTER to Process or Enter END Command to Terminate
The dataset name of the file allocation list you are creating, editing, or copying is entered
in either the top (ISPF Library) or middle (Other Partitioned...) section of the Edit File
List screen.
Notes:
1. If you enter the name of an existing dataset that does not contain a file list, an error
message is displayed.
2. If you enter the name of a PDS in any of the fields on this screen and you do not
enter a member name, a member selection list is displayed. You can select the
member from the list.
Using the File Allocation Utility
A-3
The way you complete the screen indicates what you want to do and determines the
sequence in which the FAU screens are displayed.
Creating a New File List
Enter a new, fully qualified dataset name in either the top (ISPF Library) or middle (Other
Partitioned...) section of the screen. You are presented with the first of the Edit File List
screens. These screens will not contain any values. You can manually enter the
information about the files to be allocated. Refer to “Using the Edit File List Screens” on
page A-4 for a description of how to use these screens.
Editing an Existing File List
Enter the dataset name of an existing file list in either the top (ISPF Library) or middle
(Other Partitioned...) section of the screen. You are presented with the first of the Edit
File List screens. The parameters associated with each file in the file list are displayed on
these screens. The commands listed at the top of the screens can be used to browse and
edit the data, copy data, allocate the file list, and so on. Refer to “Using the Edit File List
Screens” on page A-4 for a description of how to use these screens.
Copying Existing File Lists, JCL, or CLISTs
Enter a new fully qualified dataset name or a new member name for an existing dataset in
either the top (ISPF Library) or middle (Other Partitioned) section of the screen. Enter the
name of the dataset to be copied, the copy option, expand option, and step selection in
the bottom section of the screen.
The following occurs when the copy option operates successfully:
• If the dataset being copied contains a file list, the parameters associated with each
file are listed on the appropriate Edit File List screens. The commands listed at the
top of the screens can be used to browse and edit the data, copy data, allocate the file
list, and so on. Refer to “Using the Edit File List Screens” on page A-4 for a
description of how to use these screens.
• If the dataset being copied contains JCL, the JCL is displayed on the Select DDNAME
screen.
You can select the DD statements you want copied to the file list and perform other
functions, such as editing. Refer to “Converting JCL to a File List” on page A-15.
The Copy Option choices are described below:
Replace
The existing file list is replaced by the data being copied.
Append
The data being copied is appended to the end of the existing file list.
Prompt
The default. If the “copy to” dataset already exists and Prompt is entered, the Copy
Option screen shown in Figure A-3 on page A-4 is displayed. This screen verifies the
names of the existing file list and the source to be copied. Press Enter to continue or
enter one of the options listed for the Copy Option field on the screen.
Cancel copy
The copy operation is suppressed, and you will enter the FAU with the existing file
list displayed on the appropriate Edit File List screens.
A-4
Xpediter/TSO and Xpediter/IMS PL/I User Guide
END
If the END key is used, the editing session is ended and you are returned to the Edit
File List data entry screen.
The remaining fields are:
Automatic Expand
This field is used if the dataset being copied executes JCL procedures. If set to Yes, the
references to the JCL procedures will be expanded to the actual JCL that is executed.
Refer to “Things to Know About JCL Expansion” on page A-16.
Step Selection
If you enter a program name in this field, and a step in the JCL executes that
program, that step is automatically selected and the JCL is converted to the file list.
Figure A-3. Copy Option Screen
------------------------- XPEDITER/TSO - COPY OPTION -------------------------
COMMAND ===>
The Current file allocation list exists
File Allocation List:
Copy Source:
Copy Option ===>
(Replace, Append, or Cancel copy)
Press ENTER To Continue or enter END To Cancel Edit
Saving a File List
After you enter, edit, or copy the necessary ddname information, you are returned to the
Edit File List screen. From this screen, use either the SAVE or END command to save the
file, or use the ALLOCATE command to allocate the files. If there are errors, the
appropriate Edit File List screen is displayed with the ddname in question scrolled to the
top of the screen. For a verification error, a message appears in the upper right corner of
your screen; if the error is the result of the allocation process, a long error message
appears centered on the third line.
Using the Edit File List Screens
The parameters associated with each file in the file list are specified on the Edit File List
screens.
If your installation does not use SMS to manage DASD datasets, the screens shown in
Figure A-4 are displayed.
Using the File Allocation Utility
A-5
Figure A-4. Edit File List Screens Without SMS
If your installation uses SMS to manage DASD datasets, the screens shown in Figure A-5
are displayed.
Figure A-5. Edit File List Screens With SMS
The RIGHT and LEFT scrolling commands let you move from one screen to another. The
UP and DOWN scrolling commands are also available. Each screen is numbered, and
contains information for the following categories:
1. Edit File List 1 - DDNAME, dsname, and disposition.
2. Edit File List 2 - Space and catalog parameters or NON-SMS parameters.
Note:
If your installation uses SMS to manage DASD datasets, the Edit File List 2
screen displays the data class, storage class, management class, and delete
option.
2A. Edit File List 2A - SMS parameters
3. Edit File List 3 - DCB parameters.
You can enter the parameters manually or type over the existing parameters to change
the values.
The Edit File List screens show primary and line commands at the top of each screen.
Note that the primary commands listed on each screen may vary, depending on the
manner in which the FAU is accessed.
The line commands are entered by typing over the line command area (leftmost column
of each screen). You can delete, insert, or repeat lines to make changes to the file list. The
primary and line commands are described below:
A-6
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Primary Commands
CANcel
Exits the FAU without allocating or saving the file list. You are returned to the
previous screen.
COPY
Copies an existing file list, JCL, or CLIST. Refer to “Using the COPY Command on
Edit File List Screens” on page A-7 for more information.
ALLOCate
Allocates the file list and returns you to the Edit File List screen.
SAVE
Saves the file list and returns you to the Edit File List screen.
END
Terminates the FAU. Depending on the way you entered the FAU, the END command
also allocates and/or saves the file list.
HELP
Displays interactive HELP.
Line Commands
Dn (Delete)
Deletes a line, where n is the number of lines to delete. The ddname on the line and
all related parameters are deleted. The block form (DD) of the command can be used
to delete a block of lines.
In (Insert)
Inserts a blank line, where n is the number of lines to insert.
Rn (Repeat)
Repeats the line, where n is the number of times the line is to be repeated. The
ddname and all related values are repeated. The block form (RR) can be used to repeat
a block of lines.
S (Select detail)
Displays detail information about the DCB, dataset allocation, security, and SYSOUT
parameters for the selected ddname. The detail information is displayed on the File
PARMS screens described in “Displaying File Parameters” on page A-12.
BR (Browse dataset)
Displays the dataset referenced by the selected ddname.
ED (Edit dataset)
Displays the dataset referenced by the selected ddname for editing.
FB (File-AID BROWSE)
Displays the dataset referenced by the selected DDNAME for viewing using
Compuware’s file utility.
FE (File-AID EDIT)
Displays the dataset referenced by the selected DDNAME for editing using
Compuware’s file utility. Use the COMPILE primary command in File-AID to allow
formatted viewing of data with a record layout.
Using the File Allocation Utility
A-7
Using the COPY Command on Edit File List Screens
When you use the COPY command on any of the Edit File List screens and you do not
enter a dataset name, the Copy screen shown in Figure A-6 on page A-7 is displayed for
entering the dataset name. Entering the COPY command with a dataset name skips
this screen.
In the DSNAME field, enter the name of the dataset to be copied. Enter a value for the
VOLUME field only if the dataset is not cataloged. The dataset can be either sequential or
partitioned, fixed or variable block, with a record length of 80 or greater.
Note:
If the name of a PDS is entered without a member name, a member selection list
is displayed.
Figure A-6. Copy Screen—Specifying the DSNAME
---------------------------- XPEDITER/TSO - COPY -------------------------------
COMMAND ===>
Copy An Existing File Allocation List, CLIST, Or JCL
Enter/Verify the dataset to be copied:
DSNAME ===> 'ADSABCX.JCL.CNTL(TRIPROGM)'
VOLUME ===>
(If not cataloged)
If the dataset contains JCL, a DDNAME selection list will be displayed
Press ENTER To Process Or END To Terminate The COPY Function
The dataset is copied when you press Enter and the following occurs:
• If the dataset being copied contains a file list, the parameters associated with each
file are listed on the appropriate Edit File List screens. The commands listed at the
top of the screens can be used to browse and edit the data, copy data, allocate the file
list, and so on. Refer to “Using the Edit File List Screens” on page A-4 for a
description of how to use these screens.
• If the dataset being copied contains JCL, the JCL is displayed on the Select DDNAME
screen. You can select the DD statements you want copied to the file list and perform
other functions, such as editing. Refer to “Converting JCL to a File List” on page
A-15.
Edit File List 1 Screen - DDNAME, DSNAME, and Disposition
The Edit File List 1 screen, shown in Figure A-7 on page A-8, is used to enter the ddname,
dataset name, and disposition of the files to be allocated. When file information is
copied from existing file lists, CLISTs, or JCL, this information is pre-filled on this screen.
A-8
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure A-7. Edit File List 1 Screen—DDNAME, Dataset Name, and Disposition
---------------------- XPEDITER/TSO - EDIT FILE LIST 1 --------- Row 1 Of 12
COMMAND ===>
SCROLL ===> CSR
Line Commands:
Primary Commands:
...MORE ===>
D (Delete)
S (Select detail)
CANcel
(Quit without saving)
I (Insert)
BR (Browse dataset)
COPY
(Copy JCL or File List)
R (Repeat)
ED (Edit dataset)
ALLOCate (Allocate and continue)
FB (File-AID Browse)
END
(Save and End)
FE (File-AID Edit)
File Allocation List: 'PFHABCX.ALLOC(FLIST)'
----------------------- DSNAME ----------------------- DISP
DDNAME
DUMMY, HFS, TEMP, TERM, SYSOUT, *, OR A DATASET NAME
STAT
-------------------------------------------------------------------------------
'''''
INFILE
JCL.CNTL(INPUT)
SHR
'''''
OUTFILE
TEST.RESULTS
NEW
'''''
REPORT01 SYSOUT=A
'''''
REPORT02 SYSOUT=*
'''''
MASTERIN 'ABC.DATA.MASTER(+0) '
SHR
'''''
MASTEROU 'ABC.DATA.MASTER(+1) '
NEW
'''''
SORTWK01 TEMP
'''''
SORTWK02 TEMP
'''''
SORTWK03 TEMP
'''''
ALTERNAT DUMMY
'''''
SYSOUT
TERM
• The following ddnames are not allowed:
JOBCAT
JOBLIB
STEPCAT
STEPLIB
SYSPROC
• Dataset names can be fully qualified and enclosed in quotes. If the name is not
enclosed in quotes, the user’s prefix is added at allocation time. A member of a PDS
can be allocated by including the member name in parentheses with the dataset
name. A temporary dataset that you want to allocate to more than one file can be
entered in the form &&name (1-8 characters) with or without quotes.
The following names can also be entered: DUMMY, HFS, TEMP, TERM, and SYSOUT.
They refer to a dummy dataset, USS file, temporary dataset with no name, dataset
sent to the terminal, and SYSOUT dataset, respectively.
You can refer to the name of a previously allocated dataset by specifying *.ddname.
The referenced ddname could have been allocated previously in the current file list
or before the current file list was used.
If you want to have the actual data stored in the file list, specify a dataset name of
asterisk (*). Refer to “In-Stream Data” on page A-18.
The common types of datasets are discussed in “Types of Files That Can Be Allocated”
on page A-17.
• Valid values for the DISP field are:
MOD (M)
NEW (N)
OLD (O)
SHR (S)
For normal datasets, the default is SHR for temporary datasets, the default is NEW;
for the other allocations (DUMMY, TERM, SYSOUT), the DISP field is forced to blank.
Edit File List 2 Screen - Space and Catalog Information
The Edit File List 2 screen shown in Figure A-8 on page A-9 is used for the space and
catalog information required to allocate files with a disposition of NEW. If the file
disposition is NEW, default values are pre-filled for the UNITS, PRIMARY, SECONDARY,
RLSE, and DEL? fields.
Using the File Allocation Utility
A-9
When file information is copied from existing file lists, CLISTs, or JCL, this information
is pre-filled on this screen.
Figure A-8. Edit File List 2 Screen—Space and Catalog Information
------------------ XPEDITER/TSO - EDIT FILE LIST 2 -(NON-SMS)------ Row 1 of 12
COMMAND ===>
SCROLL ===> CSR
Line Commands:
Primary Commands:
...MORE ===>
D (Delete)
S (Select detail)
CANcel
(Quit without saving)
I (Insert)
BR (Browse dataset)
COPY
(Copy JCL or File List)
R (Repeat)
ED (Edit dataset)
SAVE
(Save File List)
FB (File-AID Browse)
END
(Allocate and continue)
FE (File-AID Edit)
File Allocation List: 'PFHABCX.ALLOC(FLIST)'
---------------- SPACE AND CATALOG INFO --------------------
DDNAME
UNITS PRIMARY SECONDARY DIR RLSE CONTIG UNIT
VOLUME DEL?
------------------------------------------------------------------------------
'''''
INFILE
'''''
OUTFILE
TRK
4
2
YES
YES
'''''
REPORT01
'''''
REPORT02
'''''
MASTERIN
'''''
MASTEROU TRK
40
20
YES
YES
'''''
SORTWK01 CYL
1
1
YES
YES
SYSDA
'''''
SORTWK02 CYL
1
1
YES
YES
SYSDA
'''''
SORTWK03 CYL
1
1
YES
YES
SYSDA
'''''
ALTERNAT
'''''
TEMP1
2048 200
200
YES
Values for space and catalog information are:
UNITS
Valid values are TRACK (TRK, TRKS, TRA), CYL, or a block size of 0 to 65535 bytes.
PRIMARY
Number of units to allocate. Values are 0 to 99999.
SECONDARY
Space is allocated if the primary allocation is exceeded. Values are 0 to 99999.
DIR
If a new dataset is a PDS, this field reserves space for the member names. Values are 0
to 999.
RLSE
If the value is YES, all unused space is released when the dataset is closed. YES is the
default for new or temporary datasets. Can be blank for NO.
CONTIG
If the value is YES, all primary space is allocated on contiguous tracks and cylinders
when more than one cylinder is needed. Can be blank (default/NO).
UNIT
I/O unit—hardware address, device type, or group name. Enter if your installation
requires it.
VOLUME
Required for an existing dataset that is not cataloged or if your installation requires
it.
DEL?
Valid only if DISP=NEW. Values are YES (default), NO, USE, and question mark (?). If
YES is specified, the old dsname is deleted before the new one is allocated. USE
A-10
Xpediter/TSO and Xpediter/IMS PL/I User Guide
changes a DISP of NEW to OLD if the dataset exists. A question mark (?) causes you
to be prompted for the desired action.
Edit File List 2A Screen - SMS Parameters
The Edit File List 2A screen shown in Figure A-9 is used to enter the SMS parameters (data
class, storage class, and management class) associated with the ddname.
When file information is copied from existing file lists, CLISTs, or JCL, this information
is pre-filled on this screen.
Figure A-9. Edit File List 2A Screen—SMS Parameters
------------------- XPEDITER/TSO - EDIT FILE LIST 2A-(SMS)---------- Row 1 of 6
COMMAND ===>
SCROLL ===> CSR
Line Commands:
Primary Commands:
...MORE ===>
D (Delete)
S (Select detail)
CANcel
(Quit without saving)
I (Insert)
BR (Browse dataset)
COPY
(Copy JCL or File List)
R (Repeat)
ED (Edit dataset)
SAVE
(Save File List)
FB (File-AID Browse)
END
(Allocate and continue)
FE (File-AID Edit)
File Allocation List: 'PFHABCX.ALLOC(FLIST)'
----------- SMS --------------
DDNAME
DATACLAS STORCLAS MGMTCLAS
DEL?
-------------------------------------------------------------------------
'''''
DDSMS1
DGDG1
'''''
DDSMS2
DCLAS02
SCLAS01
'''''
DDSMS3
VSAM1
'''''
SYSIN
'''''
INDATA
'''''
VSAM1
Values for the SMS parameters are:
DATACLAS
Specifies the data class name defined by your site that contains the attributes related
to the allocation of the file list.
STORCLAS
Specifies the storage class name defined by your site that contains the attributes
related to the storage occupied by the file list.
MGMTCLAS
Specifies the management class name defined by your site that specifies how SMS is
to manage the dataset.
DEL?
Valid only if DISP=NEW. Values are YES (default), NO, USE, and question mark (?). If
YES is specified, the old dsname is deleted before the new one is allocated. USE
changes a DISP of NEW to OLD if the dataset exists. A question mark (?) causes you
to be prompted for the desired action.
Edit File List 3 Screen - DCB Parameters
The Edit File List 3 screen in Figure A-10 is used to specify the DCB (data control block)
parameters for each file listed.
When file information is copied from existing file lists, CLISTs, or JCL, this information
is pre-filled on this screen.
Using the File Allocation Utility
A-11
Figure A-10. Edit File List 3 Screen—DCB Parameters
------------------- XPEDITER/TSO - EDIT FILE LIST 3 --------------- Row 1 of 12
COMMAND ===>
SCROLL ===> CSR
UP, DOWN, LEFT and RIGHT Scrolling Available
Line Commands:
Primary Commands:
...MORE ===>
D (Delete)
S (Select detail)
CANcel
(Quit without saving)
I (Insert)
BR (Browse dataset)
COPY
(Copy JCL or File List)
R (Repeat)
ED (Edit dataset)
SAVE
(Save File List)
FB (File-AID Browse)
END
(Allocate and continue)
FE (File-AID Edit)
File Allocation List: 'PFHABCX.ALLOC(FLIST)'
---------------------- DCB PARAMETERS --------------------
DDNAME
RECFM LRECL BLKSIZE
DSORG KEYLEN BUFNO BUFLEN OPTCD
-----------------------------------------------------------------------------
'''''
INFILE
'''''
OUTFILE
FB
121
18997
PS
'''''
REPORT01
1330
'''''
REPORT02
1330
'''''
MASTERIN
'''''
MASTEROU
'''''
SORTWK01
'''''
SORTWK02
'''''
SORTWK03
'''''
ALTERNAT
19069
'''''
TEMP1
FB
80
6160
PS
Values for the DCB parameters are:
RECFM
Record format. Valid values are:
F
FB
FBA
FBM
FBS
V
VB
VBA
VBM
VBS
VS
U
LRECL
Logical record length. Values are 0 to 32760. Do not specify a LRECL if the RECFM is
U (undefined-length records).
Note: If the LRECL and BLKSIZE fields contain values, it is a good practice to specify
RECFM; however, DSORG should be the default.
BLKSIZE
Block size. Values are 0 to 32760. If your program contains the clause BLOCK
CONTAINS 0 RECORDS, enter a value to prevent an abend when the allocated file is
opened. If fixed block, the value must be a multiple of the LRECL. If variable block,
the value must be equal to or greater than the LRECL plus 4.
If the RECFM and LRECL fields are specified for a new dataset, a default value is
provided for BLKSIZE.
DSORG
Dataset organization. Values are PS, PO, and DA. If DISP=NEW or TEMP, and DIR=0 or
blank, PS is the default.
KEYLEN
Indicates the length of the record key. Values are 1 to 255.
BUFNO
Specifies the number of buffers to be used with the dataset. Values are 1 to 255.
BUFLEN
Indicates the buffer length. Values are 1 to 32760.
A-12
Xpediter/TSO and Xpediter/IMS PL/I User Guide
OPTCD
Optional system services. Valid values are:
A
B
C
E
F
H
J
O
Q
R
T
U
W
Z
Displaying File Parameters
Detailed information about the allocation, DCB, protection, SYSOUT, and HFS related
parameters for a ddname in the file list can be displayed from any Edit File List screen.
To display detail information for a ddname, enter the S (Select detail) line command next
to the ddname on the Edit File List screen. The File PARMS Menu shown in Figure A-11 is
displayed.
Figure A-11. File PARMS Menu
----------------------- XPEDITER/TSO - FILE PARMS MENU ----------------------
OPTION ===>
DDNAME: INFILE
DSN: 'SYS2.XPEDITER.V7R7M0.SLXTSAMP(TRIDATA)'
1 ALLOCATION
- Specify data set allocation parameters
2 DCB
- Specify data set description parameters
3 SYSOUT
- Specify JES SYSOUT parameters
4 PROTECTION
- Specify data set security parameters
5 HFS
- Specify Hierarchical File System parameters
Press ENTER to Process or Enter END Command to Terminate
You can select to look at the allocation, DCB, protection, SYSOUT, and HFS parameters
for the selected ddname. Depending on your selection, one of the five Parameters
(PARMS) screens shown in Figure A-12 on page A-13 through Figure A-16 on page A-14 is
displayed. These screens display many of the keywords/parameters supported by the JCL
DD statements.
The primary commands (which are also used as panel codes) listed at the top of each
screen can be used to display other PARMS screens.
Shortcut: Use left and right scrolling to display the four screens in succession.
Items listed on the screens can be changed by typing over the information.
Using the File Allocation Utility
Figure A-12. Allocation PARMS Screen (SA)
---------------------- XPEDITER/TSO - ALLOCATION PARMS ----------------------
COMMAND ===>
Primary Commands: SA SD (Select DCB) SO (SYSOUT) SP (Protection) SH (HFS)
DDNAME:
DSN:
DISP ===> ___ (Status) _______ (Normal Disp) _______ (Conditional Disp)
FAU DEL? ===> ______ (Yes, No, Use, Prompt)
FREE ===> _____ (End/Close)
SPACE ===> _____ (Units) _____ (Primary) _____ (Secondary) ___ (Dir)
AVGREC _ RLSE ___ (Yes/No) CONTIG ______ ROUND ___ (Yes/No)
UNIT ===> ________ (Device) __ (Unit Count) DEFER ___ (Yes/No)
VOL SER ===> ______ ______ ______ ______ ______ (Serial Numbers)
VOL SEQ ___ VOL COUNT ___ PRIVATE ___ (Yes/No) MSVGP ________
REF DSN ______________________________________________
LABEL ===> ____ (Dataset Seq) ___ (Label Type) OPEN ___ (In/Out)
RETPD ____ EXPDT ________
STORCLAS ===> ________ MGMTCLAS ===> ________
SUBSYS ===> _________________________________________________________________
______________________________________________________________________________
Figure A-13. DCB PARMS Screen (SD)
-------------------------- XPEDITER/TSO - DCB PARMS -------------------------
COMMAND ===>
Primary Commands: SA (Allocation) SD SO (SYSOUT) SP (Protection) SH (HFS)
DDNAME:
DSN:
DCB ===> ______________________________________________ (Ref DSNAME)
RECFM _____ LRECL _____ BLKSIZE _____ DSORG ___
OPTCD _____ KEYLEN ___ KEYOFF _____ (SMS Only)
BFTEK _ BUFNO ___ BUFL _____ BUFOFF __ BFALN _ LIMCT _____
NCP __ TRTCH ______ DEN _ PRTSP _ STACK _ FUNC _____
DIAGNS _____ EROPT ___ (ACC/SKP/ABE)
RECORG ===> __ (SMS Only)
RLS ===> ___ (SMS Only)
DSNTYPE ===> ________ (SMS Only)
LIKE ===> ______________________________________________ (SMS Only)
DATACLAS ===> ________
A-13
A-14
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure A-14. SYSOUT PARMS Screen (SO)
------------------------ XPEDITER/TSO - SYSOUT PARMS ------------------------
COMMAND ===>
Primary Commands: SA (Allocation) SD (DCB) SO SP (Protection) SH (HFS)
DDNAME:
DSN:
SYSOUT ===> _ (Class) ________ (Writer) ____ (Form)
DEST ===> ________ (Node) ________ (User ID)
HOLD ===> ___ (Yes/No)
OUTPUT ===> ________ ________ ________ ________ ________ ________ ________
OUTLIM ===> ________ (Maximum Logical Records)
CHARS ===> ____ ____ ____ ____ (Table Names)
UCS ===> ____ (Character Set Code)
BURST ===> ___ (Yes/No)
FCB ===> ____ (FCB Name)
MODIFY ===> ____ (Module Name) _ (Table Reference Character)
FLASH ===> ____ (Overlay Name) ___ (Overlay Count)
COPIES ===> ___ GROUP ___ ___ ___ ___ ___ ___ ___ ___ (Group Values)
Figure A-15. Protection PARMS Screen (SP)
---------------------- XPEDITER/TSO - PROTECTION PARMS ----------------------
COMMAND ===>
Primary Commands: SA (Allocation) SD (DCB) SO (SYSOUT) SP SH (HFS)
DDNAME:
DSN:
ACCODE ===> ________
PROTECT ===> ___ (Yes/No)
SECMODEL ===> ______________________________________________
GENERIC ===> ___ (Yes/No)
Figure A-16. HFS PARMS Screen (SH)
-------------------------- XPEDITER/TSO - HFS PARMS -------------------------
COMMAND ===>
Primary Commands: SA (Allocation) SD (DCB) SO (SYSOUT) SP (Protection) SH
DDNAME:
DSN:
PATH ===>
PATHDISP ===> ______ (Normal Disposition)
______ (Abnormal Disposition)
PATHMODE ===> ______ ______ ______ ______ ______ ______ ______
______ ______ ______ ______ ______ ______ ______
PATHOPTS ===> _________ _________ _________
_________ _________ _________ _________
FILEDATA ===> ______
Using the File Allocation Utility
A-15
Converting JCL to a File List
When you specify a dataset that contains JCL, the dataset is displayed on the Select
DDNAME screen shown in Figure A-17 on page A-15. From this data, you can select the
ddnames to be converted to a file list. The parameters (space and catalog or SMS and
DCB) associated with each selected ddname are also copied to the appropriate Edit File
List screens.
The primary commands UP and DOWN or PF keys can be used to scroll the screen.
Note:
The primary commands listed on the screen may vary.
Information on the screen can be typed over; e.g., commented lines can be changed to
uncommented lines and the I(nsert), R(epeat), and D(elete) line commands are also
available when editing.
Figure A-17. Select DDNAME Screen
----------------------- XPEDITER/TSO - SELECT DDNAME --------------- Row 1 of 16
COMMAND ===>
SCROLL ===> CSR
LINE COMMAND: S (Select) PRIMARY COMMANDS: END (Process selected statements)
BR (Browse dataset)
CAN (Quit without processing)
ED (Edit dataset)
Edit (Edit JCL using ISPF Editor)
SEtup JOB Card
EXP (Expand JCL procedures)
SELECT the DDNAMES to be copied to the allocate screen
SEL
JCL DATA SET: 'PFHABCX.JCL.CNTL(TRIPROGM)'
--------------------------------------------------------------------------
''''' //ADSA99XA JOB (ACCNT),'USER',MSGCLASS=X,
''''' //
NOTIFY=ADSA99X
''''' //*
''''' //STEP1
EXEC PGM=TRIMAINX,PARM='YES'
''''' //STEPLIB
DD DSN=ADSA99X.WORK.LINKLIB,DISP=SHR
''''' //INFILE
DD DSN=ADSA.CLASS.SOURCE(TRIDATA),DISP=SHR
''''' //OUTFILE
DD SYSOUT=A,COPIES=3
''''' //*
''''' //STEP2
EXEC PGM=PROGRAM2
''''' //STEPLIB
DD DSN=ADSA.TEST.LOAD,DISP=SHR
''''' //NEWFILE
DD DSN=ADSA99X.NEW.OUT,DCB=(RECFM=FB,BLKSIZE=200),
''''' //
SPACE=(TRK,(10,10)),DISP=(NEW,KEEP)
Use the primary commands as follows:
END
Copies the selected ddnames. After you enter the END command, but before the files
are copied, any errors are reported. The errors must be corrected before the copy is
performed.
CANcel
Cancels the ddname selection.
Edit
Accesses an ISPF edit session where you can make changes to your JCL.
EXPand
Expands references to cataloged, in-stream procedures and performs symbolic
parameter replacement, making procedures available for use. See “Things to Know
About JCL Expansion” on page A-16 for more information.
A-16
Xpediter/TSO and Xpediter/IMS PL/I User Guide
SEtup
Displays a screen on which you can enter and change the skeleton job card needed
for the EXPAND function.
Use the line commands as follows:
S (Select)
Selects the DD statements to be copied to the file list. When you select DD
statements, you are basically selecting the file names and all concatenated DD
statements to be copied as a unit. Enter S on a line to select a single statement. Enter
a beginning and ending SS to select all file names between the two entries. When you
enter an S for an EXEC statement, all file names up to the next EXEC statement are
selected. Any combination of these entries can be used to select all the files you
require.
BR (Browse)
Displays the dataset associated with the selected statement.
ED (Edit)
Displays the dataset associated with the selected statement for editing.
Things to Know About JCL Expansion
There are two ways to expand the JCL:
1. In one mode (job submission), the EXPAND command submits the current JCL as a
job. If there are multiple jobs in the JCL, only the first job is processed; therefore,
you should delete any jobs preceding the one you want to process.
If there is a job card present in the JCL, it is not used for this process. The SETUP
command can be used to look at and change the job card that is used. Consider the
following:
– MSGCLASS, MSGLEVEL, and TYPRUN are supplied by the expand process and
should not be included on the job card.
– The job card should be valid to avoid job-not-found or no-held-output
conditions.
– Include only the minimum parameters required to pass the installation
validation routines. Since the job does not actually run, extra parameters tend to
cause undesired results, such as extra asynchronous messages to the terminal.
2. In the other mode (direct expansion), Xpediter directly accesses the procedure
libraries. For this to be possible, the installer must have provided the list of datasets
containing the catalogued procedures and you must have read access to all of these
libraries.
Unsupported Keywords and Subparameters
Not all JCL parameters in the JCL dataset are copied to the file list; DEN is one, for
example. The following JCL items are not supported:
•
•
•
•
Special ddnames - JOBCAT, JOBLIB, STEPCAT, STEPLIB, SYSPROC
Datasets extending onto more than five volumes
Unresolved symbolic references
Parameters not corresponding to fields on the Edit File List screens.
If a selected ddname contains parameters/keywords not specified on the Edit File List
screens, the Allocate/Copy warning screen shown in Figure A-18 on page A-17 is
displayed.
Using the File Allocation Utility
A-17
Errors are identified by ddname, keyword, and JCL statement. If an error is found on a
concatenated file, the name appears in the form ddname+nn.
Figure A-18. Allocate/Copy (Errors) Screen
------------------ XPEDITER/TSO - ALLOCATE/COPY (ERRORS) ---- ROW 00001 OF 00003
COMMAND ===>
LINE COMMAND: S (Select )
PRIMARY COMMANDS: CAN (Quit without processing)
WARNING: The following keywords and subparameters are not supported.
Press END to continue processing and ignore all these parameters
or Select a DD statement you wish to correct.
------------------------------------------------------------------------
''''' DDNAME: DOC1
KEYWORD: LABEL
SUBPARAMETER:
JCL: //
DISP=(NEW,CATLG,DELETE),LABEL=(,NL)
------------------------------------------------------------------------
''''' DDNAME: DOC2
KEYWORD: LABEL
SUBPARAMETER:
JCL: //
DISP=(NEW,CATLG,DELETE),LABEL=(,NL)
------------------------------------------------------------------------
''''' DDNAME: DOC3
KEYWORD: LABEL
SUBPARAMETER:
JCL: //
DISP=(NEW,CATLG,DELETE),LABEL=(,NL)
------------------------------------------------------------------------
The errors can be ignored by entering END. The JCL is displayed on the Edit File List 1
screen. To correct the errors, enter the S line command next to the ddname in question.
The Select DDNAME 1 screen is displayed with the selected ddname at the top of the
screen and the cursor positioned at the value in error. You can correct the errors from this
screen.
By entering CANCEL, you are returned to the screen from which you entered the FAU.
Types of Files That Can Be Allocated
This section describes some common types of datasets that can be allocated using the File
Allocation Utility.
Existing Datasets
Existing datasets can be allocated with a disposition of SHR, OLD, or MOD. Unless
exclusive use of a dataset is required for your application, SHR is the recommended
disposition.
A dataset allocation with the disposition of SHR, OLD, or MOD fails if:
1. You request disposition OLD/MOD, but the dataset is already allocated to another
user.
2. You request disposition SHR, but the dataset is already allocated exclusively
OLD/MOD to another user.
3. The dataset is not found (SHR or OLD only).
Notes:
1. For uncataloged datasets, enter the name of the volume on which the dataset resides
in the VOLUME field on the Edit File List 2 screen.
2. For concatenating datasets, 1) list the dataset with the largest block size first; 2) code
the dsnames of the datasets to be concatenated on successive lines, leaving the
DDNAME field blank after the first line; and 3) concatenate a maximum of 255
sequential or 16 partitioned datasets.
A-18
Xpediter/TSO and Xpediter/IMS PL/I User Guide
New Datasets
To allocate a new dataset, values must be supplied for the DDNAME, DSNAME, DISP
(NEW), UNITS, PRIMARY, and SECONDARY fields on the Edit File List screens. A value
must be entered in the DIR field if you are allocating a PDS. If no value is entered in the
DIR field, the DSORG is assumed to be PS (physical sequential).
Values must also be supplied for the RECFM, LRECL, and BLKSIZE fields unless these
parameters are coded in the program itself. Some versions of MVS will calculate an
optimum blocksize. For these systems, the BLKSIZE field should be left blank or set to
zero. If your version of MVS does not provide this, the FAU will calculate an optimum
block size (based on an installation specification) if you enter the RECFM and LRECL and
leave the BLKSIZE blank.
For a new or temporary dataset, values are pre-filled for the UNITS, PRIMARY,
SECONDARY, RLSE, and DEL? fields. YES is entered in the RLSE field to release unused
space when the dataset is closed. Entering YES in the DEL? field tells Xpediter/TSO to
delete the old file, if any, when attempting to allocate a new dataset.
If your installation requires it, a value must be specified for the UNIT and VOLUME fields
on the Edit File List 2 (space and catalog information) screen.
Dummy Files
Dummy files are generally used for nonessential input and output. These files can also be
used to test program flow without actually processing data. For instance, unwanted
output can be suppressed by giving the output datasets a dummy status.
Since dummy files do not exist, DCB requirements are the same as for a new dataset.
However, since no real allocation occurs, space information is not used.
Temporary Files
Temporary datasets are often used to allocate sort or other work files. Since a temporary
file usually has no dsname, the data it contains is lost whenever the file is freed or when
you log off.
Temporary datasets defined with the TEMP keyword have a system-generated, unique
name. They must generally be allocated as new datasets. Temporary datasets using an
&&name form also have a system-generated name. They cannot be cataloged and are
automatically deleted when the allocation creating them is freed. Thus, they can only be
allocated as OLD while the allocation creating them still exists.
Space and DCB requirements are the same as for other new (or existing) datasets.
In-Stream Data
The data for the program can be provided as part of the file list. To use this feature,
specify an asterisk (*) as the dataset name for the data. You can then use the EDIT and
BROWSE commands to create, modify, and review the data associated with the
allocations.
Since these datasets are temporary, the allocation and DCB parameters are the same as for
temporary datasets. Additionally, since the data is manipulated via the ISPF/PDF editor,
the DCB information must be consistent with ISPF/PDF (fixed or variable length records
and LRECL of 0 to 255 bytes). Also, for compatibility with normal JCL conventions, the
RECFM defaults to FB and the LRECL defaults to 80. If variable length records are
specified, LRECL defaults to 84.
Using the File Allocation Utility
A-19
Allocating Files to the Terminal
Sequential files can be allocated to the terminal. SYSOUT files (COBOL DISPLAY verb) are
often allocated to the terminal. The files can be opened for input or output. Unlike other
forms of new datasets, a block size is not required.
If an input file is allocated to the terminal, Xpediter/TSO suspends the execution of your
program while awaiting terminal input. The keyboard is unlocked and Xpediter prompts
you to enter data. A slash asterisk (/*) is entered to indicate the end of the file.
SYSOUT Files
The SYSOUT parameter instructs the system to queue the output on a direct access
volume, and system output writers later transcribe the output onto the specified I/O
device. To allocate a SYSOUT file, enter a ddname in the DDNAME field and the
SYSOUT=class parameter in the DSNAME field. The SYSOUT class can be any
alphanumeric (A-Z, 0-9) character or an asterisk (*) - default. As with a terminal file, a
block size is not required.
HFS Files
An HFS dataset is a Hierarchical file under UNIX (USS). To allocate an HFS file, enter a
ddname in the DDNAME field and the keyword HFS in the DSNAME field. The
PATHNAME, as well as other path parameters, can be entered on the HFS PARMS screen
(Figure A-16 on page A-14). The PATHNAME field is case sensitive, and no quotes are
required as part of the specification.
Generation Datasets
A generation data group (GDG) is a collection of cataloged datasets that have the same
name and are related to one another chronologically. A GDG can consist of sequential,
partitioned, and direct datasets residing on direct access volumes. The GDG dsname is
limited to 35 characters. Each generation can be distinguished from the others by its
relative or absolute generation number. A relative generation number cannot exceed 255.
To create or retrieve a generation dataset, enter the GDG name, followed by its relative
(or absolute) number in the DSNAME field. If a relative generation number is used, you
cannot also specify a member name.
If GDG stability was set to YES during the installation process, the relative generation
numbers remain static during a TSO session. Specifically, if you create a new generation
with a relative generation number of +1 and you want to refer to it later during your
session, continue to refer to it as +1.
If GDG stability was set to NO during the installation process, the positive relative
numbers will always allocate a new dataset relative to the current generation,
notwithstanding any prior use of the same generation.
This stability has implications when multiple new generations are allocated in TSO, but
are not allocated in ascending order. You must assume that a GDG has 25 generations at
TSO logon time and that the following allocations have been made:
ALLOCATE
GDG(+2)
GDG(+1)
GDG(0)
STABILITY=NO
creates G0027V00 (25+2)
creates G0028V00 (27+1)
allocates G0028V00 (28+0)
STABILITY=YES
allocates G0027V00
allocates G0026V00
allocates G0025V00
On the DCB PARMS screen, enter the name of a fully qualified dataset where
Xpediter/TSO can obtain the model DCB information, unless a model DSCB was created
for the generation data group. If a PDS is specified, do not include a member name.
A-20
Xpediter/TSO and Xpediter/IMS PL/I User Guide
If all the generations in a GDG have identical DCB attributes, the generations can be
retrieved together as a single dataset. To process the entire GDG, enter its dsname
without a relative generation number.
ISAM Files
ISAM files can be allocated, but certain IBM SVC 99 restrictions for ISAM files also apply:
• The data and key areas must be in the same dataset, on one volume.
• The file cannot be NEW.
B-1
Appendix B.
Xpediter/TSO Environment Test Screens
Appendix A.
The first time you invoke an Xpediter test session using option 2 (TSO) on the Primary
Menu, the Xpediter/TSO Environments Menu shown in Figure B-1 is displayed.
Note:
The range of environment options available on this menu depends on the site
defaults set by your installer.
Each option on the Environments Menu accesses a test screen. The environment test
screens are used to specify the name of the program to be tested and other parameters
associated with the program and the test session. For example, if you are testing a
program in a standard environment with no special services, you would select option 1
(Standard). The Standard Test screen (Standard Environment) shown in Figure B-3 on
page B-4 is displayed.
Figure B-1. Xpediter/TSO Environment Menu
Profile: DEFAULT ----- XPEDITER/TSO - ENVIRONMENTS MENU ------------------------
OPTION ===>
XPEDITER/TSO
1
STANDARD - Test a program with no special environment services
2
DIALOG
- Test programs that make ISPF dialog manager calls
3
IMS
- Test a program that makes IMS/DB calls
4
BTS
- Test programs using BTS
5
BATCHPEM - Test a program in a Hogan BATCHPEM environment
6
DLIPEM
- Test a program in a Hogan DLIPEM/BMPPEM environment
7
IMSPEM
- Test a program in a Hogan BTS IMSPEM environment
XPEDITER/IMS
8
MPP
- Test programs in an IMS message region
9
BMP/IFP
- Test a program in a BMP or Fast Path region
10 IMSPEM
- Test Hogan IMSPEM in an IMS message region
11 BMPPEM
- Test Hogan BMPPEM in a BMP region
DB2 STORED PROCEDURES
12 DB2SP
- Test DB2 Stored Procedure interactively
Note: The environment highlighted is currently selected.
Press ENTER to process or enter END command to terminate
The structure diagram in Figure B-2 on page B-2 shows the menu hierarchy of the
execution environments you can select.
App B
B-2
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure B-2. Diagram of the Execution Environments
XPEDITER/TSO
Environments
STANDARD
(Option 1)
DIALOG
(Option 2)
IMS
(Option 3)
BTS
(Option 4)
DIALOG
Invoke
BATCHPEM
(Option 5)
DLIPEM
(Option 6)
IMSPEM
(Option 7)
XPEDITER/IMS
Environments
MPP
(Option 8)
BMP/IFP
(Option 9)
IMSPEM
(Option 10)
BMPPEM
(Option 11)
DB2 STORED
PROCEDURES
Environment
DB2SP
(Option 12)
Each option in Figure B-2 represents the test screen for the environment. The test screens
let you specify the environment parameters for initiating a debugging session.
Xpediter/TSO Environment Test Screens
B-3
Some test screens have commands that will access submenus. The commands that may
appear on a test screen are described below:
SE (SETUP)
Displays the Setup Menu. The options on the Setup Menu display submenus that are
used to override the default values defined at your site. You can specify the load
libraries, DDIO files, test script libraries, session log and test script dataset
disposition, DSN libraries, and PANEXEC load libraries. The SETUP command is valid
on all test screens.
PROFile (PROFILE)
Displays a list of current user profiles that retain information about Xpediter test
environments. You may Select (S), Delete (D), Copy (C), Rename (R), or Use (U) the
profiles stored in the displayed file by entering the appropriate line command in the
CMD (Command) field. You may also utilize the only Primary Command, the Merge
command. This command lets you copy other user’s profiles to your own profile.
L, LO (LOG)
Browses the session log. The session log file contains a record of the commands that
were entered during the debugging session and the responses to them.
The LOG command is valid on all the test screens where it is displayed. However, the
session log cannot be viewed until you return to the test screen after testing has been
performed.
SC (SCRIPT)
Browses and edits the test script created during the debugging session. A sequential
test script file contains commands recorded during the debugging session. The
generated test script must be moved to a member of an INCLUDE library for it to be
executed.
The SCRIPT command is valid on all test screens where it is displayed, but the script
cannot be viewed until you return to the test screen after testing has been performed.
BT (BTSIN)
Displays a list of BTS transactions that you can select to debug. Any transactions
selected through the use of the BTSIN command are automatically entered on the
BTS or Hogan IMSPEM screen.
The BTSIN command is valid only on the BTS and Hogan IMSPEM test screens.
SY (SYSIN)
Displays the Hogan SYSIN dataset, so you can edit the control cards. The SYSIN
command is valid only on the Hogan test screens.
IN (INTER)
Displays a list of transactions that are intercepted by Xpediter/IMS.
UP (UP)
Scrolls toward the top of your screen. Scrolling up rolls the screen downward,
bringing the previous section of the data into view.
DO (DOWN)
Scrolls toward the end of your screen. Scrolling down rolls the screen upward,
bringing the following section of the data into view.
D (DOCEDIT)
Browses and edits the document dataset. The document dataset is a sequential file
that contains JCL used to collect site information for later transfer to Xpediter/TSO
Technical Support.
B-4
Xpediter/TSO and Xpediter/IMS PL/I User Guide
The DOCEDIT command is valid on all test screens where it is displayed, but the JCL
cannot be viewed unless the DOCUMENT command has been entered during the test
session.
Standard Test Screen – Environments Menu - Option 1
The Standard Test screen (Environments Menu) shown in Figure B-3 on page B-4 is used
to specify the standard environment parameters. Batch programs that process QSAM or
VSAM files, batch programs that issue third-party database calls (IMS/DB, ADABAS,
TOTAL, TIS, SUPRA, DATACOM/DB, and System 2000), and batch programs that issue
EXEC SQL (DB2) statements can be executed in this environment.
Figure B-3. Standard Environment Screen
Profile: DEFAULT -----COMMAND ===>
XPEDITER/TSO - STANDARD (2.1)
-----------------------
COMMANDS:
SEtup (Display Setup Menu)
PROFile (Display Profile Selection)
TEST SELECTION CRITERIA:
Program ===> SQL
Entry Point ===>
Load Module ===>
Initial Script ===>
Post Script ===>
PARM
( Caps = YES ) ===>
File List/JCL Member
Preview Files?
Code Coverage Test?
Is This a DB2 Test?
===>
===> NO
===> NO
===> NO
Press ENTER to process
(YES, NO, TDO)
Plan ===>
or
System Flow? ===> NO
System ===>
enter END command to terminate
The fields on the Standard Environment screen are described below:
Program
Required. Enter the name of the load module.
Entry Point
Enter an alternate entry point if execution is to start at a point other than the linkedited entry point.
Note:
Not recommended for PL/I or C.
Load Module
Enter only if executing a CSECT other than the link-edited entry point of a load
module, such as unit testing CSECTs within a load module.
Note:
Not recommended for PL/I or C.
Initial Script
Enter the member name of a test script if you want to execute a predefined command
stream at the beginning of the debugging session. This member will be executed after
the inclusion of the site-wide script member @@SITE@@, if defined.
Xpediter/TSO Environment Test Screens
B-5
Post Script
Enter the member name of a test script if you want to execute a predefined command
stream at the end of the debugging session.
PARM (Caps=YES)
When this field is left blank:
If JCL PROC expansion option CONVERT is being used and the step you are testing
has the PARM= or PARMDD= keyword, Xpediter/TSO will use the JCL-supplied PARM
value. To make Xpediter ignore the JCL-supplied PARM value, enter two consecutive
single quotes ('') in this field.
When this field is non-blank:
Up to 100 characters may be specified in this field to pass parameter string(s) and/or
run-time option(s) to the program being tested. If the field consists of several
substrings separated by commas, or if it contains special characters (/, =, etc.),
enclose the entire parameter in quotes (single or double).
The Caps field can be used to designate whether or not you want the PARM string to
be converted to upper case.
Note:
This conversion applies only to the parameter string entered on this screen
and not to any PARM values supplied in the JCL.
File List/JCL Member
Enter the dataset name that contains the file list, CLIST, or JCL. The File Allocation
Utility (FAU) preallocates files and databases that are processed by the program upon
entry to the debugging session.
If the member name of a PDS is omitted, a member list is displayed.
If the dataset contains a CLIST, Xpediter/TSO immediately executes it and begins the
debugging session.
If the dataset contains a file list or JCL, the FAU is invoked to dynamically allocate
the specified files before beginning the debugging session. Refer to Appendix A,
“Using the File Allocation Utility” for detailed information about the FAU.
Preview Files?
Enter YES to browse or edit the content of files prior to allocation. For more
information, see “Using the Edit File List Screens” on page A-4.
Code Coverage Test?
Enter YES to collect statistics without Test Data Optimization information. Enter
TDO to collect statistics and TDO information. The default value is NO.
System Flow?
Enter YES to collect Xpediter/Code Coverage System Flow data. The default value is
NO.
Note:
The Code Coverage options are only available if you have purchased
Xpediter/Code Coverage.
CAUTION:
Code Coverage does not currently support VisualAge PL/I programs. However,
statistics will be collected on any non-VA PL/I programs involved in the Code
Coverage test.
B-6
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Is This a DB2 Test?
Enter YES if the program executes EXEC SQL statements. Xpediter/TSO executes the
DSN RUN command and establishes the DB2 environment upon entry to the
debugging session. The default value is NO.
Plan
Enter the DB2 plan name generated during the bind process. If omitted, the plan
name defaults to the name specified in the Program field.
System
Enter the DB2 subsystem name. The subsystem name depends on the release level of
DB2 allocated to the DSNLOAD library specified on the Setup option.
Note:
If the following conditions are met, Xpediter will search the JCL member’s
SYSTSIN DD for the plan name and/or system name and use values found for the
current debugging session:
•
•
•
•
File List/JCL Member field contains a JCL library
Is This a DB2 Test? field set to YES
Plan and/or System field(s) blank
JCL PROC expansion set to CONVERT.
If a plan name is not found in the JCL, the default will be used. If a system name
is not found, an error will result. Also, if the Library keyword is used in the
SYSTSIN DD, Xpediter will concatenate the dataset after the user libraries that
were specified on the Load Module Libraries screen.
Press Enter to initiate the debugging session. Refer to Chapter 5, “Debugging
Interactively” for information on how to debug your program.
Dialog Test Screen – Environments Menu - Option 2
The Dialog Test screen, shown in Figure B-4 on page B-7, lets you specify the dialog
environment parameters and initiate a debugging session. The screen is designed to allow
programmers to debug ISPF dialog programs that are running as a part of the larger
application process. For instance, programs that are invoked by entering data from an
ISPF panel, issuing an edit macro, or executing a CLIST can be debugged in this
environment.
All the dialog components, such as screens, CLISTs, tables, messages, and load modules,
must be preallocated before initiating the debugging session unless the dialog includes a
function to use the ISPF LIBDEF facility. Refer to the IBM ISPF Dialog Management Services
Manual for additional information regarding file allocations for dialog testing.
Notes:
• The load module libraries must be allocated to ISPLLIB and be included in the
Xpediter load library list.
• The dialog environment, when Xpediter is in control, is only a simulated ISPF
environment and provides no ISPF command support, except through Xpediter’s TSO
command. See the description of the TSO command in the Xpediter/TSO and
Xpediter/IMS Reference Manual for a list of ineligible TSO command parameters.
Xpediter/TSO Environment Test Screens
B-7
Figure B-4. Dialog Test Screen
Profile: DEFAULT ------COMMAND ===>
COMMANDS:
XPEDITER/TSO - DIALOG (2.2)
------------------------
SEtup (Display Setup Menu)
PROFile (Display Profile List)
DOwn
PROGRAM
===>
===>
===>
===>
===>
===>
INITSCR
POSTSCR
===>
===>
===>
===>
===>
===>
ISPF Menu ===> ISR@PRIM
(Scroll Down)
INTERCEPTS
File List/JCL Member
Preview Files?
Code Coverage Test?
Is This a DB2 Test?
===>
===> NO
===> NO
===> NO
Press ENTER to process
===>
===>
===>
===>
===>
===>
OPT ===>
(YES, NO, TDO)
or
START
===>
===>
===>
===>
===>
===>
MAX
===>
===>
===>
===>
===>
===>
APPLID ===> ISR
System Flow? ===> NO
System ===>
enter END command to terminate
The fields on the Dialog Test screen are described below.
PROGRAM
Required. Enter a series of load module names that you want to debug when the
dialog is invoked. You must specify either the main program or subprograms. Do not
specify both.
Six load modules can be specified on this screen. If you want to continue the list, you
can scroll down to a subsequent screen.
INITSCR
Enter the member name of a test script if you want to execute a predefined command
stream at the beginning of the debugging session. This member will be executed after
the inclusion of the site-wide script member @@SITE@@, if defined.
POSTSCR
Enter the member name of a test script if you want to execute a predefined command
stream at the end of the debugging session.
START
Enter up to four digits to specify on which occurrence of the program invocation the
intercept is to begin. By default, program intercept begins on the first occurrence.
When the program is intercepted, the debugging session is initiated and the source is
displayed.
MAX
Enter up to four digits to specify the maximum number of times the program
intercept is processed. If this field is left blank, the value defaults to an infinite
number. If you enter an EXIT command and there are still intercepts remaining,
those intercepts are ignored.
ISPF Menu
Required. Specify the driver panel to start your dialog application. Typically, this is
the ISPF/PDF Primary Option Menu, ISR@PRIM. You can initiate your dialog
application through the dialog test facilities (option 7.1 of ISPF/PDF) and trace the
ISPF variables while tracing the host variables and setting breakpoints at the COBOL
verbs under Xpediter/TSO.
B-8
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Compuware supplies a separate panel, XPPISPFT, which is functionally similar to the
ISPF Dialog Test option 1. To use this panel to identify the dialog function to be
debugged, enter XPPISPFT in the ISPF Menu field.
OPT
If you use XPPISPFT, leave this field blank. Otherwise, enter the starting point by ISPF
option number (for example, 7.1).
APPLID
Enter the application ID.
File List/JCL Member
Enter the dataset name that contains the file list, CLIST, or JCL. The File Allocation
Utility (FAU) preallocates files and databases that are processed by the program upon
entry to the debugging session.
If the member name of a PDS is omitted, a member list is displayed.
If the dataset contains a CLIST, Xpediter/TSO immediately executes it and begins the
debugging session.
If the dataset contains a file list or JCL, the FAU is invoked to dynamically allocate
the specified files before beginning the debugging session. Refer to Appendix A,
“Using the File Allocation Utility” for detailed information about the FAU.
Preview Files?
Enter YES to enable browse/edit of file allocations. If File-AID is installed, its file
browse (FB) and file edit (FE) functions will also be available. For more information,
see “Using the Edit File List Screens” on page A-4.
Code Coverage Test?
Enter YES to collect statistics without Test Data Optimization information. Enter
TDO to collect statistics and TDO information. The default value is NO.
System Flow?
Enter YES to collect Xpediter/Code Coverage System Flow data. The default value is
NO.
Note:
The Code Coverage options are only available if you have purchased
Xpediter/Code Coverage.
CAUTION:
Code Coverage does not currently support VisualAge PL/I programs. However,
statistics will be collected on any non-VA PL/I programs involved in the Code
Coverage test.
Is This a DB2 Test?
Enter YES if the program executes EXEC SQL statements. Xpediter/TSO selects the
proper DB2 libraries for inclusion in the setup library (XTASKLIB) concatenation.
The DB2 connection must be established, such as executing the TSO DSN RUN
command, before initiating the debugging session.
System
Enter the DB2 subsystem name. Use the subsystem name assigned to the DB2
DSNLOAD library to be included in XTASKLIB.
When you press Enter from the Dialog screen, the specified ISPF screen is displayed, but
you must invoke the program or edit macro as you would if you were debugging without
Xpediter/TSO.
Xpediter/TSO Environment Test Screens
B-9
To invoke a function on the XPPISPFT screen, shown in Figure B-5 on page B-9, only one
entry is required in one of the following fields: PANEL, CMD, or PGM.
Note:
When control is passed from Xpediter/TSO to any user panel, all Xpediter
commands become inactive.
Effect of Dialog Program Intercepts
Each of the programs named on the Dialog screen must be an MVS load module name.
Programs named in the intercept list must not be referenced within the Xpediter session
with the SOURCE or INTERCEPT command. These programs will be intercepted under
Xpediter dialog control when activated by sequences of LOAD/CALL, LINK, or ATTACH.
Typical external events that can result in one of these sequences are: running the
programs as TSO command processors, naming the programs as the target of a TSO CALL
command, or executing the programs via ISPF SELECT services. Each of the programs
should be independent of any other program named in the intercept list.
When the programs are not independent, special processing is performed by Xpediter
and user interaction is necessary to test multiple programs simultaneously. For example,
assume that program PGMA calls program PGMB, which then calls program PGMC. Also,
assume that all three programs are named as dialog intercepts. When PGMA is activated
by the user dialog, an Xpediter session is initiated and the source of PGMA is displayed.
During the execution of PGMA, PGMB is eventually activated. However, since Xpediter is
already active for the PGMA intercept, PGMB is not intercepted and executes as if no
intercept had been set. The same is true for PGMC.
There are two ways in which such a nested sequence of programs can be tested. The first
method is to name only PGMA on the Dialog screen. When PGMA is intercepted, then
SOURCE or INTERCEPT commands can be used to reference PGMB and PGMC. A second
method can be used when programs are executed multiple times within the dialog. The
START and MAX values determine when the intercepts are to be active for each program
in the list. For example, let PGMA and PGMB both be named in the intercept list with the
MAX value for PGMA set to 3. Now when the user dialog invokes PGMA repetitively,
PGMA is intercepted each of the first three times it executes, but on the fourth and
subsequent executions, when PGMA calls PGMB, Xpediter intercepts PGMB.
Figure B-5. XPPISPFT - Invoke Dialog Function/Selection Panel
------------------- INVOKE DIALOG FUNCTION/SELECTION PANEL -------------------
COMMAND ===>
Invoke Selection Menu:
PANEL ===>
OPT ===>
Invoke Command:
CMD ===>
LANG ===>
(APL or blank)
MODE ===>
(LINE, FSCR, or blank)
Invoke Program:
PGM ===>
TASKLIB ===> NO
(Yes/No)
PARM ===>
MODE ===>
(LINE, FSCR, or blank)
For Any Of The Above:
NEWAPPL ===>
(Optional. Application ID)
NEWPOOL ===>
(Yes/No)
PASSLIB ===>
(Yes/No)
The fields on the Invoke Dialog Function/Selection Panel (refer to Figure B-5) are
described as follows:
B-10
Xpediter/TSO and Xpediter/IMS PL/I User Guide
PANEL
Name of the ISPF panel to be invoked. Required if CMD or PGM is not specified.
OPT
Optional; the initial option that must be valid on the panel named above.
CMD
The name of a command procedure (CLIST or EXEC), or any TSO command, to be
invoked as a dialog function. Command parameters can be included. Required if
PANEL or PGM is not specified.
LANG
Specify APL if the string specified by the CMD keyword is an APL function and the
APL2 environment is active. Otherwise, leave blank.
MODE
Determines whether line mode will be entered or not. LINE causes line mode to be
entered. FSCR causes full screen mode to be entered. If you leave MODE blank when
selecting a command procedure, line mode is entered unless you prefix the command
with a percent sign (%).
PGM
The name of a program to be invoked as a dialog function. The program name must
be one of the program names specified in the previous Dialog screen. Otherwise, it
causes an abend. Required if PANEL or CMD is not specified.
PARM
Optional; parameters to be passed to the program.
TASKLIB
Enter Yes if XTASKLIB is to be searched for the specified program name. The default
is No.
NEWAPPL
Specifies the new application ID name, if one is being invoked. If a new application
is specified, the next selection menu displayed is the application’s primary option
menu.
NEWPOOL
Enter Yes if a new shared variable pool is to be created. This value is ignored if
NEWAPPL is specified.
PASSLIB
Enter Yes if the current set of application level ISPF libraries (if any exist) are to be
passed to the application being selected. This field is valid only if NEWAPPL is
specified.
To invoke a function through the ISPF Menu ISR@PRIM, select option 1 (FUNCTIONS) on
the Dialog Test Primary Option Menu shown in Figure B-6 on page B-11 and press Enter.
Xpediter/TSO Environment Test Screens
B-11
Figure B-6. Dialog Test Primary Option Menu
--------------------- DIALOG TEST PRIMARY OPTION MENU ------------------------
OPTION ===>
1 FUNCTIONS
- Invoke dialog functions/selection menus
2 PANELS
- Display panels
3 VARIABLES
- Display/set variable information
4 TABLES
- Display/modify table information
5 LOG
- Browse ISPF log
6 DIALOG SERVICES - Invoke dialog services
7 TRACES
- Specify trace definitions
8 BREAKPOINTS
- Specify breakpoint definitions
T TUTORIAL
- Display information about Dialog Test
X EXIT
- Terminate dialog testing
Enter END command to terminate dialog testing.
Then specify the function to be invoked in one of the following three fields on the
Invoke Dialog Function/Selection Menu screen shown in Figure B-7:
PANEL, CMD, or PGM
Figure B-7. ISR@PRIM - Invoke Dialog Function/Selection Menu
-------------------- INVOKE DIALOG FUNCTION/SELECTION MENU -------------------
COMMAND ===>
INVOKE SELECTION MENU:
PANEL ===>
OPT
===>
INVOKE COMMAND:
CMD
===>
LANG
===>
(APL OR BLANK)
MODE
===>
(LINE, FSCR, OR BLANK)
INVOKE PROGRAM:
PGM
===>
PARM ===>
MODE
===>
(LINE, FSCR, OR BLANK)
NEWAPPL
===>
ID
===>
NEWPOOL
===>
PASSLIB ===> NO
Press Enter to initiate the debugging session. Refer to Chapter 5, “Debugging
Interactively” for information on how to debug your program.
IMS Test Screen – Environments Menu - Option 3
The IMS Test screen, shown in Figure B-8, lets you specify the IMS/DB environment
parameters and initiate a debugging session. Batch programs that issue IMS/DB database
calls or both IMS/DB and DB2 database calls can be executed in this environment.
B-12
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure B-8. IMS Test Screen
Profile: DEFAULT --------COMMAND ===>
XPEDITER/TSO - IMS (2.3)
-------------------------
COMMANDS:
SEtup (Display Setup Menu)
PROFile (Display Profile List)
TEST SELECTION CRITERIA:
Program ===> SQL
Entry Point ===>
Load Module ===>
Initial Script ===>
Post Script ===>
PSB ===>
Program Type ===> DLI
PARM Passing Option ===> STD
File List/JCL Member ===>
Code Coverage Test? ===> NO
Is This a DB2 Test? ===> NO
Press ENTER to process
(DLI, BMP, DBB)
(STD, SUB, NOQ)
(YES, NO, TDO)
Plan ===>
or
System Flow? ===> NO
System ===>
enter END command to terminate
The fields on the IMS Test screen are described below:
Program
This field is required. Enter the name of the load module.
Note: If executing other than the linked entry name, then the program name is the
CSECT name and the load module name must be specified under Load
Module.
Entry Point
Enter an alternate entry point if execution is to start at a point other than the linkedited entry point.
Load Module
Enter only if executing a CSECT other than the link-edited entry point of a load
module, such as unit testing CSECTs within a load module.
Initial Script
Enter the member name of a test script if you want to execute a predefined command
stream at the beginning of the debugging session. This member will be executed after
the inclusion of the site-wide script member @@SITE@@, if defined.
Post Script
Enter the member name of a test script if you want to execute a predefined command
stream at the end of the debugging session.
PSB
Required. Enter the name of the program specification block (PSB) associated with
the program. The PSB defines the database accessed by the program and the type of
I/O operations performed. The PSB name for MPP programs should be the same as
the load module name.
If you are debugging a subordinate module that does not have a PSB, but does make
DLI calls, you must supply the PSB of the main program.
Xpediter/TSO Environment Test Screens
B-13
Program Type
Required. Enter the type of IMS program. It is generally the first parameter value
passed to IMS in the JCL. This field can have one of the following values:
BMP
A BMP program is attached to a control region. The particular control
region is determined by the IMS RESLIBS allocated and the IMSID within
the BMP parameter.
DBB
A DBB program is processed in an offline DL/I batch processing region
using ACB libraries instead of PSB and DBD libraries.
DLI
A DL/I program is processed in an offline DL/I batch processing region
using PSB and DBD libraries.
Note:
These program types are retrieved from the PARM lists in the Setup option.
Your specific site options determine which program types are available on
the screen.
PARM Passing Option
Required. Default values are pre-filled for this field. The valid PARM passing options
are:
STD
Specify STD when debugging an IMS program. Xpediter/TSO passes the
PARM string to the program unaltered. STD is the default.
SUB
Specify SUB when an IMS subroutine is to be debugged as a stand-alone
program. No PARM string is needed because you are debugging an IMS
subroutine without the IMS driver module present.
NOQ
Specify NOQ (no queue) when you are debugging an IMS/DC program with
Xpediter/TSO.
Xpediter/TSO matches the PARM string that IMS passes to the program with
the PARM string that the program is expecting in reverse order. This lets
you debug the logic and database calls of an IMS/DC program under TSO
when a message queue is not available.
File List/JCL Member
Enter the dataset name that contains the file list, CLIST, or JCL. The File Allocation
Utility (FAU) preallocates files and databases that are processed by the program upon
entry to the debugging session.
If the member name of a PDS is omitted, a member list is displayed.
If the dataset contains a CLIST, Xpediter/TSO immediately executes it and begins the
debugging session.
If the dataset contains a file list or JCL, the FAU is invoked to dynamically allocate
the specified files before beginning the debugging session. Refer to Appendix A,
“Using the File Allocation Utility” for detailed information about the FAU.
Code Coverage Test?
Enter YES to collect statistics without Test Data Optimization information. Enter
TDO to collect statistics and TDO information. The default value is NO.
System Flow?
Enter YES to collect Xpediter/Code Coverage System Flow data. The default value is
NO.
B-14
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Note:
The Code Coverage options are only available if you have purchased
Xpediter/Code Coverage.
CAUTION:
Code Coverage does not currently support VisualAge PL/I programs. However,
statistics will be collected on any non-VA PL/I programs involved in the Code
Coverage test.
Is This a DB2 Test?
Enter YES if the program executes EXEC SQL statements. The default value is NO.
Plan
Enter the DB2 plan name generated during the bind process if the program executes
EXEC SQL statements. If omitted, the plan name defaults to the name specified in
the Program field.
System
Enter the DB2 subsystem name. The subsystem name depends on the release level of
DB2 allocated to the DSNLOAD library specified in the Setup option.
Note: If the following conditions are met, Xpediter will search the DDITV02 DD for the
plan name and/or system name and use values found for the current debugging
session:
- Is This a DB2 Test? field set to YES
- Plan and/or System fields blank
- JCL PROC expansion set to CONVERT
- Program name DSNMTV01 specified in JCL’s IMS PARM
- DDITV02 DD used to supply IMS with DB2 information.
If a plan name is not found in the DDITV02 DD, the default will be used. If a
system name is not found, an error will result.
Press Enter to initiate the debugging session. Refer to Chapter 5, “Debugging
Interactively” for information on how to debug your program.
BTS Test Screen – Environments Menu - Option 4
The BTS Test screen, shown in Figure B-9, lets you specify the BTS environment
parameters and initiate a debugging session. IMS/DC, MPP, and BMP programs can be
debugged with the use of BTS in this environment.
Xpediter/TSO Environment Test Screens
B-15
Figure B-9. BTS Test Screen
Profile: DEFAULT --------COMMAND ===>
COMMANDS:
-------------------------
SEtup (Display Setup Menu)
BTsin (Display BTSIN Menu)
PROFile (Display Profile List)
INTERCEPTS
PROGRAM
TRANCODE
INITSCR
===> PQ4CODEL ===> TQ4COCNG ===>
===>
===>
===>
===>
===>
===>
DOwn
POSTSCR
===>
===>
===>
(Scroll Down)
START
===>
===>
===>
MAX
===>
===>
===>
BTSIN ===> XPEDITER.BTSIN
Program Type ===> DLI
(DLI, BMP, DBB)
XPEDITER/TSO - BTS (2.4)
PARM Passing Option ===> STD
File List/JCL Member
Unattended?
Code Coverage Test?
Is This a DB2 Test?
===>
===>
===>
===>
(STD)
Retain Breakpoints? ===> NO
XPEDITER.FLIST(TRIMPP)
NO
NO
(YES, NO, TDO)
NO
Press ENTER to process
or
System Flow? ===> NO
System ===>
Enter END command to terminate
The fields on the BTS Test screen (Figure B-9) are described below:
PROGRAM
Required if TRANCODE is not specified. Used to identify which programs are to be
debugged by Xpediter/TSO. You can enter the load module name in this field, the
transaction code in the TRANCODE field, or supply values for both fields. If you
enter only the program name, all the transactions associated with that program are
intercepted by Xpediter/TSO. If you enter only a transaction code, its associated
program is intercepted.
Three programs or transaction codes can be specified on the first BTS Test screen
(Figure B-9 on page B-15). If you want to continue the list, you can scroll down to a
second BTS Test screen, shown in Figure B-10. The last entry on the previous page is
displayed in the top row. Once the second screen is full, you can scroll down to a
third screen. Notice that on the second (and subsequent screens), the UP command is
available in addition to the DOWN command.
B-16
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure B-10. BTS Test Screen 2
Profile: DEFAULT --------COMMAND ===>
COMMANDS:
XPEDITER/TSO - BTS (2.4)
SEtup (Display Setup Menu)
BTsin (Display BTSIN Menu)
PROFile (Display Profile List) UP
INTERCEPTS
PROGRAM
TRANCODE
INITSCR
===> PQ4CODEL ===> TQ4COCNG ===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
Press ENTER to process
or
-------------------------
(Scroll Up)
POSTSCR
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
DOwn
(Scroll Down)
Row 1 of 1
START
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
MAX
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
enter END command to terminate
TRANCODE
Required if PROGRAM is not specified. Used to identify which transactions are to
be debugged by Xpediter/TSO. You can enter the transaction code in this field, the
load module name in the PROGRAM field, or enter values for both fields.
Each transaction code must be unique. If you enter only a transaction code, its
associated program is intercepted. However, multiple transactions can invoke the
same program. Therefore, if you enter only the program name, all transactions
associated with the program are intercepted for debugging under Xpediter/TSO.
INITSCR
Enter the member name of a test script if you want to execute a predefined command
stream at the beginning of the debugging session. This member will be executed after
the inclusion of the Site-side script member @@SITE@@, if defined.
POSTSCR
Enter the member name of a test script if you want to execute a predefined command
stream at the end of the debugging session.
START
Enter up to four digits to specify on which occurrence of the program invocation the
intercept is to begin. By default, program intercept begins on the first occurrence.
When the program is intercepted, the debugging session is initiated and the source is
displayed.
MAX
Enter up to four digits to specify the maximum number of times the program
intercept is processed. If this field is left blank, the value defaults to an infinite
number. If you enter an EXIT command and there are still intercepts remaining,
those intercepts are ignored.
BTSIN
Required. Xpediter/TSO scans the BTSIN dataset and searches for the program and
transaction code to be debugged. An intercept is established for each one found. The
BTSIN dataset must be either a sequential dataset or a member of a partitioned
dataset. The BTSIN cards should not be modified.
Xpediter/TSO Environment Test Screens
B-17
Entering BTSIN on the command line of the BTS Test screen displays a list of transactions (./T cards) in the BTSIN file (shown in Figure B-11). You can enter the S
(Select) line command next to the transaction you want to debug and return to the
BTS screen. The selected transactions are automatically filled in for the appropriate
fields.
Note: When testing DB2 under the BTS/DLI environment, you must define the DB2
subsystem name to BTS by using the ./P statement as part of the BTSIN
control cards.
Figure B-11. BTS Transaction/Program Menu
Profile: DEFAULT ----- BTS TRANSACTION/PROGRAM MENU ------------ ROW 9 OF 19
COMMAND ===>
Select Any Transactions/Programs To Be Tested With XPEDITER
Enter END Command To Return To The Previous Menu
SELECT -------------- ./T CARDS FROM BTSIN DATA SET --------------------
TC=TQ4CNINQ MBR=PQ4CNINQ PSB=PQ4CNINQ LANG=CBL TYPE=MSG
TC=TQ4COINQ MBR=PQ4COINQ
TC=TQ4COINQ MBR=PQ4COINQ PSB=PE4COINQ LANG=CBL TYPE=MSG
TC=TQ4CONEW MBR=PQ4CORDR PSB=PE4CORDR LANG=CBL TYPE=MSG SPA=1300
TC=TQ4CODEL MBR=PQ4CODEL PSB=PE4CODEL LANG=CBL TYPE=MSG SPA=1300
TC=TQ4COCNG MBR=PQ4CODEL PSB=PE4CODEL LANG=CBL TYPE=MSG SPA=1300
****************************** BOTTOM OF DATA ****************************
Program Type
Required. Enter the type of IMS program. It is generally the first parameter value
passed to IMS in the JCL. This field can have one of the following values:
BMP
A BMP program is manually scheduled by the system operator and,
typically, processes some data that was held by IMS in a message queue.
DBB
A DBB program is processed in an offline DL/I batch processing region
using ACB libraries instead of PSB and DBD libraries.
DLI
A DL/I program is processed in an offline DL/I batch processing region
using PSB and DBD libraries.
Note:
These program types are retrieved from PARM lists in the Setup option. Your
specific site options determine which program types are available on the
screen.
PARM Passing Option
Required. Default values are pre-filled for this field. The valid PARM passing option
is STD. If you specify STD when debugging an IMS program, Xpediter/TSO passes the
PARM string to the program unaltered.
Retain Breakpoints?
If you want Xpediter to retain breakpoints from one iteration of an IMS or BTS
program or transaction to the next, enter YES in this field. Before breakpoints, after
breakpoints, onetime breakpoints, counts, skips, traces, Code Coverage breakpoints,
and when conditions from the previous test iteration will be reapplied. Count values
will accumulate across iterations, but a count with a maximum execution limit will
be converted to a standard counter. Keeps and inserted lines are not retained.
The default is NO and will result in each iteration starting with only the standard
before and after breakpoints.
B-18
Xpediter/TSO and Xpediter/IMS PL/I User Guide
File List/JCL Member
Enter the dataset name that contains the file list, CLIST, or JCL. The File Allocation
Utility (FAU) preallocates files and databases that are processed by the program upon
entry to the debugging session.
If the member name of a PDS is omitted, a member list is displayed.
If the dataset contains a CLIST, Xpediter/TSO immediately executes it and begins the
debugging session.
If the dataset contains a file list or JCL, the FAU is invoked to dynamically allocate
the specified files before beginning the debugging session. Refer to Appendix A,
“Using the File Allocation Utility” for detailed information about the FAU.
Unattended?
Enter YES to run in Unattended mode. The default value is NO. In unattended mode,
after BTS gives control to the application program, Xpediter commands are only
processed in the Initial Script, the Post Script, and the Abend Script. Interactive
Xpediter commands are not permitted (from the terminal).
Code Coverage Test?
Enter YES to collect statistics without Test Data Optimization information. Enter
TDO to collect statistics and TDO information. The default value is NO.
System Flow?
Enter YES to collect Xpediter/Code Coverage System Flow data. The default value is
NO.
Note:
The Code Coverage options are only available if you have purchased
Xpediter/Code Coverage.
CAUTION:
Code Coverage does not currently support VisualAge PL/I programs. However,
statistics will be collected on any non-VA PL/I programs involved in the Code
Coverage test.
Is This a DB2 Test?
Enter YES if the program executes EXEC SQL statements. The default value is NO.
System
Enter the DB2 subsystem name. The subsystem name depends on the release level of
DB2 allocated to the DSNLOAD library specified in the Setup option.
Note: When testing DB2 under the BTS/DLI environment, you must define the DB2
subsystem name to BTS by using the ./P statement as part of the BTSIN
control cards.
Press Enter to initiate the debugging session. BTS will be invoked first and prompt you for
a transaction code to start a transaction. Refer to Chapter 5, “Debugging Interactively”
for information on how to debug your program.
Hogan BATCHPEM Test Screen – Environments Menu Option 5
The Hogan BATCHPEM screen, shown in Figure B-12, lets you specify the Hogan
BATCHPEM environment parameters and initiate a debugging session. Batch programs
that run under the Hogan umbrella and process QSAM and VSAM files can be executed in
this environment.
Xpediter/TSO Environment Test Screens
B-19
Figure B-12. Hogan BATCHPEM Screen
Profile: DEFAULT ---COMMAND ===>
XPEDITER/TSO - HOGAN BATCHPEM (2.5)
----------------
COMMANDS:
SEtup (Display Setup Menu)
PROFile (Display Profile List)
SYsin (Edit SYSIN Data Set)
TEST SELECTION CRITERIA:
Initial Script ===>
Post Script ===>
PARM String ===>
HOGAN SYSIN Data Set ===>
HOGAN PEM Driver ===> BATCHPEM
("BATCHPEM" is Default for This Test)
File List/JCL Member ===>
Code Coverage Test? ===> NO
Is This a DB2 Test? ===> NO
(YES, NO, TDO)
Plan ===>
Press ENTER to process
or
System Flow? ===> NO
System ===>
enter END command to terminate
The fields on the Hogan BATCHPEM screen (Figure B-12) are defined below:
Initial Script
Enter the member name of a test script if you want to execute a predefined command
stream at the beginning of the debugging session. This member will be executed after
the inclusion of the site-wide script member @@SITE@@, if defined.
Post Script
Enter the member name of a test script if you want to execute a predefined command
stream at the end of the debugging session.
PARM String
Optional field. Enter the parameter string to be passed to the Hogan PEM driver
program. You can enter up to 100 characters in this field.
If the run-time parameter consists of several substrings separated by commas, or if it
contains special characters (/, =, etc.), enclose the entire parameter in quotes (single
or double).
Hogan SYSIN Data Set
A control file used by Hogan programs. Enter SYSIN on the command line to edit or
create the SYSIN dataset, shown in Figure B-13 on page B-19.
Figure B-13. Displaying the SYSIN Dataset
EDIT ----- AXPTSO.XPEDITER.SYSINDS(HOGSYS01) - 01.00 ---------- COLUMNS 001 072
COMMAND ===>
SCROLL ===> PAGE
****** *************************** TOP OF DATA *******************************
000001 1 49 904
000002 #905¬704¬1%
****** ************************** BOTTOM OF DATA *****************************
Hogan PEM Driver
The name of the Hogan driver. BATCHPEM is the default.
B-20
Xpediter/TSO and Xpediter/IMS PL/I User Guide
File List/JCL Member
Enter the dataset name that contains the file list, CLIST, or JCL. The File Allocation
Utility (FAU) preallocates files and databases that are processed by the program upon
entry to the debugging session. Any files or databases that are not dynamically
allocated by Hogan must be allocated through this file.
If the member name of a PDS is omitted, a member list is displayed.
If the dataset contains a CLIST, Xpediter/TSO immediately executes it and begins the
debugging session.
If the dataset contains a file list or JCL, the FAU is invoked to dynamically allocate
the specified files before beginning the debugging session. Refer to Appendix A,
“Using the File Allocation Utility” for detailed information about the FAU.
Note:
All CDMF files and databases should be allocated.
Code Coverage Test?
Enter YES to collect statistics without Test Data Optimization information. Enter
TDO to collect statistics and TDO information. The default value is NO.
System Flow?
Enter YES to collect Xpediter/Code Coverage System Flow data. The default value is
NO.
Note:
The Code Coverage options are only available if you have purchased
Xpediter/Code Coverage.
CAUTION:
Code Coverage does not currently support VisualAge PL/I programs. However,
statistics will be collected on any non-VA PL/I programs involved in the Code
Coverage test.
Is This a DB2 Test?
Enter YES if the program executes EXEC SQL statements. The default value is NO.
Plan
Enter the DB2 plan name generated during the bind process if the program executes
EXEC SQL statements.
System
Enter the DB2 subsystem name. The subsystem name depends on the release level of
DB2 and is assigned at the time of installation.
Press Enter to initiate the debugging session. Refer to Chapter 5, “Debugging
Interactively” for information on how to debug your program.
Hogan DLIPEM Test Screen – Environments Menu Option 6
The Hogan DLIPEM screen, shown in Figure B-14, lets you specify the Hogan DLIPEM
environment parameters and initiate a debugging session. Batch programs that run under
the Hogan umbrella and issue IMS/DB calls can be executed in this environment.
Xpediter/TSO Environment Test Screens
B-21
Figure B-14. Hogan DLIPEM Screen
Profile: DEFAULT ---COMMAND ===>
XPEDITER/TSO - HOGAN DLIPEM (2.6)
---------------------
COMMANDS:
SEtup (Display Setup Menu)
PROFile (Display Profile List)
SYsin (Edit SYSIN Data Set)
TEST SELECTION CRITERIA:
Initial Script ===>
Post Script ===>
PSB ===>
Program Type ===> DLI
(DLI, BMP, DBB)
HOGAN SYSIN Data Set ===>
HOGAN PEM Driver ===> DLIPEM
("DLIPEM" is Default for DLI Program)
File List/JCL Member ===>
Code Coverage Test? ===> NO
Is This a DB2 Test? ===> NO
Press ENTER to process
(YES, NO, TDO)
Plan ===>
or
System Flow? ===> NO
System ===>
enter END command to terminate
The fields on the Hogan DLIPEM screen are:
Initial Script
Enter the member name of a test script if you want to execute a predefined command
stream at the beginning of the debugging session. This member will be executed after
the inclusion of the site-wide script member @@SITE@@, if defined.
Post Script
Enter the member name of a test script if you want to execute a predefined command
stream at the end of the debugging session.
PSB
The program specification block (PSB) associated with the program you are
debugging.
Program Type
Required. Default values are pre-filled for this field. Indicates the kind of IMS
program you are debugging with IMS under Xpediter/TSO. This field can have one of
the following values:
DLI
A DL/I program is processed in an offline DL/I batch processing region
using PSB and DBD libraries if your program is not connected to the IMS
control region and does not use an ACB library.
BMP
A BMP program is manually scheduled by the system operator and,
typically, processes some data that was held by IMS in a message queue if
your program is connected to the IMS control region.
DBB
A DBB program is processed in an offline DL/I batch processing region
using ACB libraries instead of PSB and DBD libraries if your program is not
connected to the IMS control region and uses an ACB library.
Hogan SYSIN Data Set
A control file used by Hogan programs. Enter SYSIN on the command line to edit or
create the SYSIN dataset, as shown in Figure B-15.
B-22
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure B-15. Displaying the SYSIN Dataset
EDIT ----- AXPTSO.XPEDITER.SYSINDS(HOGSYS01) - 01.00 ---------- COLUMNS 001 072
COMMAND ===>
SCROLL ===> PAGE
****** *************************** TOP OF DATA *******************************
000001 1 49 904
000002 #905¬704¬1%
****** ************************** BOTTOM OF DATA *****************************
Hogan PEM Driver
The name of the Hogan driver. DLIPEM is the default Hogan driver for DL/I or DBB
programs. BMPPEM is the default for BMP programs.
File List/JCL Member
Enter the dataset name that contains the file list, CLIST, or JCL. The File Allocation
Utility (FAU) preallocates files and databases that are processed by the program upon
entry to the debugging session. Any files or databases that are not dynamically
allocated by Hogan must be allocated through this file.
If the member name of a PDS is omitted, a member list is displayed.
If the dataset contains a CLIST, Xpediter/TSO immediately executes it and begins the
debugging session.
If the dataset contains a file list or JCL, the FAU is invoked to dynamically allocate
the specified files before beginning the debugging session. Refer to Appendix A,
“Using the File Allocation Utility” for detailed information about the FAU.
Code Coverage Test?
Enter YES to collect statistics without Test Data Optimization information. Enter
TDO to collect statistics and TDO information. The default value is NO.
System Flow?
Enter YES to collect Xpediter/Code Coverage System Flow data. The default value is
NO.
Note:
The Code Coverage options are only available if you have purchased
Xpediter/Code Coverage.
CAUTION:
Code Coverage does not currently support VisualAge PL/I programs. However,
statistics will be collected on any non-VA PL/I programs involved in the Code
Coverage test.
Is This a DB2 Test?
Enter YES if the program executes EXEC SQL statements. The default value is NO.
Plan
Enter the DB2 plan name generated during the bind process if the program executes
EXEC SQL statements. If omitted, the plan name defaults to the name specified in
the Program field.
System
Enter the DB2 subsystem name. The subsystem name depends on the release level of
DB2 and is assigned at the time of installation.
Press Enter to initiate the debugging session. Refer to Chapter 5, “Debugging
Interactively” for information on how to debug your program.
Xpediter/TSO Environment Test Screens
B-23
Hogan IMSPEM Test Screen – Environments Menu Option 7
The Hogan IMSPEM screen, displayed in Figure B-16, lets you specify debug parameters
before beginning execution of a program in a Hogan IMSPEM environment.
Figure B-16. Hogan IMSPEM Screen
Profile: DEFAULT ---COMMAND ===>
COMMANDS:
---------------------
SEtup (Display Setup Menu)
BTsin (Display BTSIN Menu)
PROFile (Display Profile List)
INTERCEPTS
PROGRAM
TRANCODE
INITSCR
===> PQ4CODEL ===> TQ4COCNG ===>
===>
===>
===>
===>
===>
===>
DOwn
POSTSCR
===>
===>
===>
(Scroll Down)
START
===>
===>
===>
MAX
===>
===>
===>
BTSIN ===> 'ASJUSR1.INCLUDE(BTSIN)'
Program Type ===> DLI
(DLI, BMP, DBB)
HOGAN PEM Driver ===> IMSPEM
XPEDITER/TSO - HOGAN IMSPEM (2.7)
File List/JCL Member
Unattended?
Code Coverage Test?
Is This a DB2 Test?
===>
===> NO
===> NO
===> NO
Press ENTER to process
("IMSPEM" is Default for DLI Program)
(YES, NO, TDO)
or
System Flow? ===> NO
System ===>
enter END command to terminate
The fields on the Hogan IMSPEM screen are:
PROGRAM
This field is required if TRANCODE is not specified. Used to identify which
programs are to be debugged by Xpediter/TSO. You can enter the load module name
in this field, the transaction code in the TRANCODE field, or supply values for both
fields. If you enter only the program name, all the transactions associated with that
program are intercepted by Xpediter/TSO. If you enter only a transaction code, its
associated program is invoked.
Three programs or transaction codes can be specified on the first Hogan IMSPEM
screen. If you want to continue viewing the list, you can scroll down to a second
screen, shown in Figure B-17 on page B-24. The last entry on the previous page is
displayed in the top row. Once the second screen is full, you can scroll down to a
third screen. Notice that on the second (and subsequent screens), the UP command is
available in addition to the DOWN command.
Note:
Xpediter/TSO processes every intercept specified on the panel and there is a
memory overhead associated with each program specified.
B-24
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure B-17. Hogan IMSPEM Screen 2
Profile: DEFAULT ---COMMAND ===>
COMMANDS:
XPEDITER/TSO - HOGAN IMSPEM (2.7)
SEtup (Display Setup Menu)
BTsin (Display BTSIN Menu)
PROFile (Display Profile List) UP
INTERCEPTS
PROGRAM
TRANCODE
INITSCR
===> PQ4CODEL ===> TQ4COCNG ===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
Press ENTER to process
or
---------------------
(Scroll Up)
POSTSCR
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
DOwn
(Scroll Down)
START
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
MAX
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
enter END command to terminate
TRANCODE
Required if PROGRAM is not specified. Used to identify which transactions are to
be debugged by Xpediter/TSO. You can enter the transaction code in this field, the
load module name in the PROGRAM field, or enter values for both fields.
Each transaction code must be unique. If you enter only a transaction code, its
associated program is invoked. However, multiple transactions can invoke the same
program. Therefore, if you enter only the program name, all the transactions
associated with that program are intercepted and debugged by Xpediter/TSO.
INITSCR
Enter the member name of a test script if you want to execute a predefined command
stream at the beginning of the debugging session. This member will be executed after
the inclusion of the site-wide script member @@SITE@@, if defined.
POSTSCR
Enter the member name of a test script if you want to execute a predefined command
stream at the end of the debugging session.
START
Enter up to four digits to specify on which occurrence of the program invocation the
intercept is to begin. By default, program intercept begins on the first occurrence.
When the program is intercepted, the debugging session is initiated and the source is
displayed.
MAX
Enter up to four digits to specify the maximum number of times the program
intercept is processed. If this field is left blank, the value defaults to an infinite
number. If you enter EXIT and there are still intercepts remaining, those intercepts
are ignored.
BTSIN
Required. Xpediter/TSO scans the BTSIN dataset and searches for the program and
transaction code to be debugged. An intercept is established for each one found. The
BTSIN dataset must be either a sequential dataset or a member of a partitioned
dataset. The BTSIN cards should not be modified.
Xpediter/TSO Environment Test Screens
B-25
Entering BTSIN on the command line of the HOGAN IMSPEM screen displays a list of
transactions (./T cards) in the BTSIN file shown in Figure B-18. You can enter the S
(Select) line command next to the transaction you want to debug and return to the
Hogan IMSPEM screen. The selected transactions are automatically filled in for the
appropriate fields.
Figure B-18. BTS Transaction/Program Menu
Profile: DEFAULT ----- BTS TRANSACTION/PROGRAM MENU ------------ ROW 9 OF 19
COMMAND ===>
Select Any Transactions/Programs To Be Tested With XPEDITER
Enter END Command To Return To The Previous Menu
SELECT -------------- ./T CARDS FROM BTSIN DATA SET --------------------
TC=TQ4CNINQ MBR=PQ4CNINQ PSB=PQ4CNINQ LANG=CBL TYPE=MSG
TC=TQ4COINQ MBR=PQ4COINQ
TC=TQ4COINQ MBR=PQ4COINQ PSB=PE4COINQ LANG=CBL TYPE=MSG
TC=TQ4CONEW MBR=PQ4CORDR PSB=PE4CORDR LANG=CBL TYPE=MSG SPA=1300
TC=TQ4CODEL MBR=PQ4CODEL PSB=PE4CODEL LANG=CBL TYPE=MSG SPA=1300
TC=TQ4COCNG MBR=PQ4CODEL PSB=PE4CODEL LANG=CBL TYPE=MSG SPA=1300
****************************** BOTTOM OF DATA ****************************
Program Type
Required. Enter the type of IMS program. It is generally the first parameter value
passed to IMS in the JCL. This field can have one of the following values:
MPP
An MPP program is automatically loaded by IMS when a message to be
processed by that program is received. The scheduling of MPP programs is
entirely under the control of IMS.
BMP
A BMP program is manually scheduled by the system operator and,
typically, processes some data that was held by IMS in a message queue.
DBB
A DBB program is processed in an offline DL/I batch processing region
using ACB libraries instead of PDB and DBD libraries.
DLI
A DL/I program is processed in an offline DL/I batch processing region
using PSB and DBD libraries.
Note:
These program types are retrieved from PARM lists in the Setup option. Your
specific site options determine which program types are available on the
screen.
Hogan PEM Driver
Enter the name of the Hogan PEM driver. IMSPEM is the default Hogan PEM driver
for BTS testing.
File List/JCL Member
Enter the dataset name that contains the file list, CLIST, or JCL. The File Allocation
Utility (FAU) preallocates files and databases that are processed by the program upon
entry to the debugging session.
If the member name of a PDS is omitted, a member list is displayed.
If the dataset contains a CLIST, Xpediter/IMS immediately executes it and begins the
debugging session.
If the dataset contains a file list or JCL, the FAU is invoked to dynamically allocate
the specified files before beginning the debugging session. Refer to Appendix A,
“Using the File Allocation Utility” for detailed information about the FAU.
B-26
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Note:
To allocate a dataset to a BTS ddname, enter SETUP on the command line of
the Hogan IMSPEM screen and then select option B on the Setup Menu. The
BTS Test Setup Options screen is displayed. You can enter/verify the installed
defaults for any BTS ddnames listed on the Setup Menu. Refer to “BTS Setup
Menu” on page C-25 for more information.
Unattended?
Enter YES to run in Unattended mode. The default value is NO. In unattended mode,
after BTS gives control to the application program, Xpediter commands are only
processed in the Initial Script, the Post Script, and the Abend Script. Interactive
Xpediter commands are not permitted (from the terminal).
Code Coverage Test?
Enter YES to collect statistics without Test Data Optimization information. Enter
TDO to collect statistics and TDO information. The default value is NO.
System Flow?
Enter YES to collect Xpediter/Code Coverage System Flow data. The default value is
NO.
Note:
The Code Coverage options are only available if you have purchased
Xpediter/Code Coverage.
CAUTION:
Code Coverage does not currently support VisualAge PL/I programs. However,
statistics will be collected on any non-VA PL/I programs involved in the Code
Coverage test.
Is This a DB2 Test?
Enter YES if the program executes EXEC SQL statements. The default value is NO.
System
Enter the DB2 subsystem name if the program executes EXEC SQL statements. The
subsystem name depends on the release level of DB2 assigned to the DSNLOAD
library specified at installation time.
Press Enter to initiate the debugging session. Refer to Chapter 5, “Debugging
Interactively” for information on how to debug your program.
MPP Test Screen – Environments Menu - Option 8
The MPP Test screen displayed in Figure B-19 on page B-27 lets you set up environment
parameters before beginning program execution of a program in an IMS message region.
When you identify the transactions to be debugged and initiate a session, Xpediter/IMS
attaches the IMS message region within the TSO address space. You can enter the
transaction code from an IMS terminal to start the transaction, and the source will be
displayed on the TSO terminal where the debugging session was initiated. The operation
of the product requires one logical TSO terminal and one logical IMS terminal (can be an
ATM terminal), both on the same CPU.
Xpediter/TSO Environment Test Screens
B-27
Figure B-19. MPP Test Screen
Profile: DEFAULT -------COMMAND ===>
COMMANDS:
XPEDITER/TSO - MPP (2.8)
SEtup (Display Setup Menu)
INter (Display Intercepts)
PROFile (Display Profile List)
INTERCEPTS
-------------------------
DOwn
(Scroll Down)
Row 1 of 3
PROGRAM TRANCODE INITSCR POSTSCR START MAX ------------ DATA ------------
> TRIMPP
>
XPEDTRAN
>
IMS USERID ===> PFHABC0
Retain Breakpoints? ===> NO
NBA ===> 0
(Normal Buffer Allocation)
OBA ===> 0
(Overflow Buffer Allocation)
File List/JCL Member ===>
Unattended ===> NO
Code Coverage Test? ===> NO
(YES, NO, TDO)
System Flow? ===> NO
Is This a DB2 Test? ===> NO
System ===>
Press ENTER to process or enter END command to terminate
The fields on the MPP Test screen (Figure B-19) are:
PROGRAM
Required if TRANCODE is not specified. Used to identify which programs are to be
debugged by Xpediter/IMS. You can enter the load module name in this field, the
transaction code in the TRANCODE field, or supply values for both fields. If you
enter only the program name, all the transactions associated with that program will
be intercepted by Xpediter/IMS. If you enter only a transaction code, its associated
program is intercepted.
Three programs or transaction codes can be specified on the first MPP Test screen. If
you want to continue viewing the list, you can scroll down to a second MPP Test
screen, shown in Figure B-20 on page B-28. The last entry on the previous page is
displayed in the top row. Once the second screen is full, you can scroll down to a
third screen. Notice that on the second (and subsequent screens), the UP command is
available in addition to the DOWN command.
B-28
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure B-20. MPP Test Screen 2
Profile: DEFAULT --------COMMAND ===>
COMMANDS:
XPEDITER/TSO - MPP (2.8)
SEtup (Display Setup Menu)
INter (Display Intercepts)
PROFile (Display Profile List)
UP
INTERCEPTS
PROGRAM
> TRIMPP
>
>
>
>
>
>
>
>
>
>
TRANCODE INITSCR
POSTSCR
START MAX
-------------------------
(Scroll Up)
DOwn
(Scroll Down)
Row 1 of 11
------------ DATA ------------
XPEDTRAN
Press ENTER to process
or
enter END command to terminate
TRANCODE
Used to identify which transactions are to be debugged by Xpediter/IMS. You can
enter the transaction code in this field, the load module name in the PROGRAM
field, or supply values for both fields.
This field is required if PROGRAM is not specified or if multiple transactions are
associated with the program.
INITSCR
Enter the member name of a test script if you want to execute a predefined command
stream at the beginning of the debugging session. This member will be executed after
the inclusion of the site-wide script member @@SITE@@, if defined.
POSTSCR
Enter the member name of a test script if you want to execute a predefined command
stream at the end of the debugging session.
START
Enter up to four digits to specify on which occurrence of the program invocation the
intercept is to begin. By default, program intercept begins on the first occurrence.
When the program is intercepted, the debugging session is initiated and the source is
displayed.
MAX
Enter up to four digits to specify the maximum number of times the program
intercept is processed. If this field is left blank, the value defaults to an infinite
number. If you enter an EXIT command and there are still intercepts remaining,
those intercepts are ignored.
DATA
Specify up to 30 bytes of data from the IMS transaction you want to debug.
The DATA field is only active if IMS User ID/Data Value Intercept Support is enabled.
See the Xpediter/TSO and Xpediter/IMS Installation and Configuration Guide for more details.
Note:
This field cannot contain the , (comma) or ¢ (cent) characters.
Xpediter/TSO Environment Test Screens
B-29
IMS USERID
Specify the ID of the IMS user issuing the IMS transaction you want to debug. If IMS
User ID/Data Value Intercept Support is enabled, you can enter an asterisk (*) to
specify a generic match on any user ID.
The IMS USERID field is only active if either IMS User ID Support or IMS User
ID/Data Value Intercept Support is enabled. See the Xpediter/TSO and Xpediter/IMS
Installation and Configuration Guide for more details.
Note:
If Xpediter/Code Coverage is active, this field is also used to record the IMS
user ID in the Code Coverage Repository. If an asterisk is specified, the TSO
user ID will be recorded.
Retain Breakpoints?
If you want Xpediter to retain breakpoints from one iteration of an IMS program or
transaction to the next, enter YES in this field. Before breakpoints, after breakpoints,
onetime breakpoints, counts, skips, traces, and when conditions from the previous
test iteration will be reapplied. Count values will accumulate across iterations, but
maximum execution count limits are not preserved. Keeps and inserted lines are not
retained.
The default is NO and will result in each iteration starting with only the standard
before and after breakpoints.
Xpediter/Code Coverage counters and breakpoints, where applicable, are unaffected
by this feature.
NBA
Enter the Normal Buffer Allocation (NBA), up to two digits. The default value is 0.
OBA
Enter the Overflow Buffer Allocation (OBA), up to two digits. The default value is 0.
Note:
The NBA and OBA fields appear on the screen only if your site installer
indicated that your site uses Fast Path databases. The values are inserted in
the PARM string when the IMS region is attached.
File List/JCL Member
Enter the dataset name that contains the file list, CLIST, or JCL. The File Allocation
Utility (FAU) preallocates files and databases that are processed by the program upon
entry to the debugging session.
If the member name of a PDS is omitted, a member list is displayed.
If the dataset contains a CLIST, Xpediter/IMS immediately executes it and begins the
debugging session.
If the dataset contains a file list or JCL, the FAU is invoked to dynamically allocate
the specified files before beginning the debugging session. Refer to Appendix A,
“Using the File Allocation Utility” for detailed information about the FAU.
Unattended?
Enter YES to run in Unattended mode. The default value is NO. In unattended mode,
after the Xpediter/IMS Message Processing Region (MPR) is attached, Xpediter
commands are only processed in the Initial Script, Post Script, and Abend Script. The
TSO terminal remains locked and Xpediter commands are not allowed from the
terminal. When you are finished testing in the Xpediter/IMS MPR, the MPR may be
stopped and the TSO terminal unlocked by using either the Xpediter Stop Region
transaction, XPST, or the Xpediter Stop Region BMP procedure XPSTOP. Refer to
“Stopping the Xpediter/IMS Dependent Region” on page 7-14.
B-30
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Code Coverage Test?
Enter YES to collect statistics without Test Data Optimization information. Enter
TDO to collect statistics and TDO information. The default value is NO.
System Flow?
Enter YES to collect Xpediter/Code Coverage System Flow data. The default value is
NO.
Note:
The Code Coverage options are only available if you have purchased
Xpediter/Code Coverage.
CAUTION:
Code Coverage does not currently support VisualAge PL/I programs. However,
statistics will be collected on any non-VA PL/I programs involved in the Code
Coverage test.
Is This a DB2 Test?
Enter YES if the program executes EXEC SQL statements. The default value is NO.
System
Enter the DB2 subsystem name if the program executes EXEC SQL statements. The
subsystem name depends on the release level of DB2 and is assigned at the time of
installation.
Press Enter to initiate the debugging session. Refer to Chapter 5, “Debugging
Interactively” for information on how to debug your program.
When intercepts cannot be set and the message MAX USERS is displayed on the test
screen, enter INTER on the command line to look at the Intercepts screen, shown in
Figure B-21 on page B-30. The Number of Available Class Codes field will be zero (0),
indicating that the maximum number of users are testing with Xpediter/IMS.
The Intercepts screen provides valuable information regarding the use of Xpediter/IMS:
how many users can still test using Xpediter/IMS, what programs or transactions are
being tested, and other information connected with the program and the transaction
code.
Figure B-21. Intercepts Screen
Profile: DEFAULT ----------- INTERCEPTS -------------------COMMAND ===>
Number Of Available Class Codes: 0
Current IMSID: IMSA
USERID
========
ASJUSR1
ASJUSR1
ASJUSR1
ASJUSR2
ASJUSR3
ASJUSR4
ASJUSR5
ASJUSR6
ASJUSR7
ASJUSR8
ASJUSR9
ASJUSR9
ASJUSR9
ASJUSR10
F1=HELP
F7=UP
TRAN CODE
=========
XPEDTRAN
XPE1
XPE2
XPE3
XPE4
XPE5
XFP1
XFP2
XPE6
XPE7
XPE8
F2=SPLIT
F8=DOWN
PROGRAM
========
XPEDTRAN
XPEDTRA1
XPEDTRA2
XPEDBMP1
XPEDBMP2
XPEDTRA4
XPEDTRA5
XPEDFP1
XPEDFP2
XPEDBMP3
XPEDTRA6
XPEDTRA7
XPEDTRA8
XPEDBMP4
F3=END
F9=SWAP
TYPE
====
TP
TP
TP
BMP
BMP
TP
TP
IFP
IFP
BMP
TP
TP
TP
BMP
F4=RETURN
F10=LEFT
PSB
=========
XPEDTRAN
XPEDTRA1
XPEDTRA2
XPEDPSB1
XPEDPSB2
XPEDTRA4
XPEDTRA5
FASTPAT1
FASTPAT2
XPEDBMP
XPEDTRA6
XPEDTRA7
XPEDTRA8
XPEDPSB2
F5=RFIND
F11=RIGHT
ROW 1 TO 14 OF 14
SCROLL ===> PAGE
CLASS
OLD
NEW
===
===
002
045
004
045
005
045
004
004
001
001
016
018
004
005
005
019
019
019
IMSID
=====
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
F6=RCHANGE
F12=RETRIEVE
Xpediter/TSO Environment Test Screens
B-31
The Intercepts screen (Figure B-21) does not contain any input fields; all of the
information is displayed for you. The fields on the screen are described below:
Number Of Available Class Codes
The number of class codes available. This field tells you how many more people can
run an MPP test. Notice that Figure B-21 indicates that the maximum number of MPP
users are testing with Xpediter/IMS by displaying the number of class codes available
for use as zero (0).
Current IMSID
The name of the IMS control region with which the current user communicates.
USERID
The user ID of the person running the test.
TRAN CODE
The transaction code associated with the program, if one was used.
PROGRAM
The name of the program being tested.
TYPE
The type of program being tested.
PSB
The program specification block (PSB) name associated with the program. Often, this
name is the same as the program name.
OLD CLASS
The original class code of the user’s transaction.
NEW CLASS
The Xpediter/IMS reserved class code for the transaction. Xpediter/IMS reassigns the
class codes for message processing transactions.
IMSID
The name of the IMS control region with which the IMS user programs
communicate. This name does not have to be the current IMSID.
BMP/IFP Test Screen – Environments Menu - Option 9
The BMP/IFP screen displayed in Figure B-22 lets you set up debug parameters before
beginning program execution of a program in an IMS, BMP, or Fast Path Region. When
you identify the transactions to be debugged and initiate a session, Xpediter/IMS
attaches the IMS message region within the TSO address space. You can enter the
transaction code from an IMS terminal to start the transaction, and the source will be
displayed on the TSO terminal where the debugging session was initiated. The operation
of the product requires one logical TSO terminal and one logical IMS terminal (can be an
ATM terminal), both on the same CPU.
B-32
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure B-22. BMP/IFP Screen
Profile: DEFAULT ------COMMAND ===>
XPEDITER/TSO - BMP/IFP (2.9)
-----------------------
COMMANDS:
SEtup (Display Setup Menu)
INter (Display Intercepts)
PROFile (Display Profile List)
TEST SELECTION CRITERIA:
Program ===> TRIIFP
PSB ===> TRIIFP
TRAN CODE ===>
Initial Script ===>
Post Script ===>
NBA ===> 0
OBA ===> 0
(Normal Buffer Allocation)
(Overflow Buffer Allocation)
File List/JCL Member ===>
Code Coverage Test? ===> NO
Is This a DB2 Test? ===> NO
Press ENTER to process
(YES, NO, TDO)
or
System Flow? ===> NO
System ===>
enter END command to terminate
The fields on the BMP/IFP screen (Figure B-22) are:
Program
Required. Used to identify which program is to be intercepted and debugged by
Xpediter/IMS. You must enter the load module name in this field. Xpediter inserts
this value into the program subparameter for the parameter it passes to IMS.
PSB
Required. Enter the program specification block (PSB) associated with the program
you are debugging. Xpediter inserts the specified value into the BMP parameter
passed to the IMS driver program.
TRAN CODE
Enter the optional IMS transaction code. The value specified is inserted into the
INPUT TRAN subparameter of the BMP parameter passed to the IMS driver program.
Initial Script
Enter the member name of a test script if you want to execute a predefined command
stream at the beginning of the debugging session. This member will be executed after
the inclusion of the site-wide script member @@SITE@@, if defined.
Post Script
Enter the member name of a test script if you want to execute a predefined command
stream at the end of the debugging session.
NBA
Enter the Normal Buffer Allocation (NBA), up to two digits. The default value is 0.
OBA
Enter the Overflow Buffer Allocation (OBA), up to two digits. The default value is 0.
Note:
The NBA and OBA fields appear on the screen only if your site installer
indicated that your site uses Fast Path databases. The values are inserted in
the PARM string when the IMS region is attached.
Xpediter/TSO Environment Test Screens
B-33
File List/JCL Member
Enter the dataset name that contains the file list, CLIST, or JCL. The File Allocation
Utility (FAU) preallocates files and databases that will be processed by the program
upon entry to the debugging session.
If the member name of a PDS is omitted, a member list is displayed.
If the dataset contains a CLIST, Xpediter/IMS immediately executes it and begins the
debugging session.
If the dataset contains a file list or JCL, the FAU is invoked to dynamically allocate
the specified files before beginning the debugging session. Refer to Appendix A,
“Using the File Allocation Utility” for detailed information about the FAU.
Code Coverage Test?
Enter YES to collect statistics without Test Data Optimization information. Enter
TDO to collect statistics and TDO information. The default value is NO.
System Flow?
Enter YES to collect Xpediter/Code Coverage System Flow data. The default value is
NO.
Note:
The Code Coverage options are only available if you have purchased
Xpediter/Code Coverage.
CAUTION:
Code Coverage does not currently support VisualAge PL/I programs. However,
statistics will be collected on any non-VA PL/I programs involved in the Code
Coverage test.
Is This a DB2 Test?
Enter YES if the program executes EXEC SQL statements. The default value is NO.
System
Enter the DB2 subsystem name if the program executes EXEC SQL statements. The
subsystem name depends on the release level of DB2 and is assigned at the time of
installation.
Press Enter to initiate the debugging session. Refer to Chapter 5, “Debugging
Interactively” for information on how to debug your program.
When intercepts cannot be set and the message MAX USERS is displayed on the test
screen, enter INTER on the command line to look at the Intercepts screen, shown in
Figure B-23 on page B-34. The Number of Available Class Codes field will be zero (0),
indicating that the maximum number of users are testing with Xpediter/IMS.
The Intercepts screen provides valuable information regarding the use of Xpediter/IMS:
how many users can still test using Xpediter/IMS, what programs or transactions are
being tested, and other information connected with the program and the transaction
code.
B-34
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure B-23. Intercepts Screen
Profile: DEFAULT ------------ INTERCEPTS ------------------COMMAND ===>
Number Of Available Class Codes: 0
Current IMSID: IMSA
USERID
========
ASJUSR1
ASJUSR1
ASJUSR1
ASJUSR2
ASJUSR3
ASJUSR4
ASJUSR5
ASJUSR6
ASJUSR7
ASJUSR8
ASJUSR9
ASJUSR9
ASJUSR9
ASJUSR10
F1=HELP
F7=UP
TRAN CODE
=========
XPEDTRAN
XPE1
XPE2
XPE3
XPE4
XPE5
XFP1
XFP2
XPE6
XPE7
XPE8
F2=SPLIT
F8=DOWN
PROGRAM
========
XPEDTRAN
XPEDTRA1
XPEDTRA2
XPEDBMP1
XPEDBMP2
XPEDTRA4
XPEDTRA5
XPEDFP1
XPEDFP2
XPEDBMP3
XPEDTRA6
XPEDTRA7
XPEDTRA8
XPEDBMP4
F3=END
F9=SWAP
TYPE
====
TP
TP
TP
BMP
BMP
TP
TP
IFP
IFP
BMP
TP
TP
TP
BMP
PSB
=========
XPEDTRAN
XPEDTRA1
XPEDTRA2
XPEDPSB1
XPEDPSB2
XPEDTRA4
XPEDTRA5
FASTPAT1
FASTPAT2
XPEDBMP
XPEDTRA6
XPEDTRA7
XPEDTRA8
XPEDPSB2
F4=RETURN
F10=LEFT
F5=RFIND
F11=RIGHT
ROW 1 TO 14 OF 14
SCROLL ===> PAGE
CLASS
OLD
NEW
===
===
002
045
004
045
005
045
004
004
001
001
016
018
004
005
005
019
019
019
IMSID
=====
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
F6=RCHANGE
F12=RETRIEVE
The Intercepts screen (Figure B-23) does not contain any input fields; all of the
information is displayed for you. The fields on the screen are described below:
Number Of Available Class Codes
The number of class codes available. This field tells you how many more people can
run an MPP test. Notice that Figure B-23 displays the number of class codes available
for use as zero (0), indicating that the maximum number of MPP users are testing
with Xpediter/IMS.
Current IMSID
The name of the IMS control region with which the current user communicates.
USERID
The user ID of the person running the test.
TRAN CODE
The transaction code associated with the program, if one was used.
PROGRAM
The name of the program being tested.
TYPE
The type of program being tested.
PSB
The program specification block (PSB) name associated with the program. Often, this
name is the same as the program name.
OLD CLASS
The original class code of the user’s transaction.
NEW CLASS
The Xpediter/IMS reserved class code for the transaction. Xpediter/IMS reassigns the
class codes for message processing transactions.
Xpediter/TSO Environment Test Screens
B-35
IMSID
The name of the IMS control region with which the IMS user programs
communicate. This name does not have to be the current IMSID.
Hogan IMSPEM Test Screen – Environments Menu Option 10
The Hogan IMSPEM Test screen displayed in Figure B-24 lets you set up debug parameters
before beginning program execution of Hogan IMSPEM in an IMS message region. When
you identify the transactions to be debugged and initiate a session, Xpediter/IMS
attaches the IMS message region within the TSO address space. You can enter the
transaction code from an IMS terminal to start the transaction, and the source will be
displayed on the TSO terminal where the debugging session was initiated. The operation
of the product requires one logical TSO terminal and one logical IMS terminal (can be an
ATM terminal), both on the same CPU.
Figure B-24. Hogan IMSPEM Test Screen
Profile: HOGAN __---- XPEDITER/TSO - HOGAN IMSPEM (2.10) --------------------
COMMAND ===>
COMMANDS: SEtup (Display Setup Menu)
INter (Display Intercepts)
PROFile (Display Profile List)
DOwn (Scroll Down)
INTERCEPTS
Row 1 of 1
PROGRAM TRANCODE INITSCR POSTSCR START MAX ------------ DATA ------------
>
TRIMPP
>
>
IMS USERID ===> MFHABC0
Retain Breakpoints? ===> NO
NBA ===> 2
(Normal Buffer Allocation)
OBA ===> 3
(Overflow Buffer Allocation)
HOGAN PEM Driver ===> IMSPEM
("IMSPEM" is Default for This Test)
File List/JCL Member ===>
Unattended? ===> NO
Code Coverage Test? ===> NO
(YES, NO, TDO)
System Flow? ===> NO
Is This a DB2 Test? ===> NO
System ===>
Press ENTER to process or enter END command to terminate
The fields on the Hogan IMSPEM screen are:
PROGRAM
Required if TRANCODE is not specified. This field is used to identify which
programs are to be intercepted and debugged by Xpediter/IMS. You can enter the
load module name in this field, the transaction code in the TRANCODE field, or
supply values for both fields. If you enter only the program name (as shown in Figure
B-24), all the transactions associated with that program are intercepted and debugged
by Xpediter/IMS. If you enter only a transaction code, its associated program is
intercepted.
Three lines of intercept-related data can be specified on this first screen. If you want
to continue the list, you can scroll down to a second screen, which contains only
intercept information.
The second test screen, shown in Figure B-25, must be filled up before the third
screen can be called. Note that on the second and subsequent screens, the UP
command is available in addition to the DOWN command. Only eleven intercepts
are scrolled at a time, and the last entry on the previous page shows at the top.
B-36
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Note:
Xpediter/IMS processes every intercept specified on the panel and there is a
memory overhead associated with each program specified.
Figure B-25. Hogan IMSPEM Test Screen 2
Profile: STORE -----COMMAND ===>
COMMANDS:
XPEDITER/TSO - HOGAN IMSPEM (2.10)
SEtup (Display Setup Menu)
INter (Display Intercepts)
PROFile (Display Profile List)
UP
INTERCEPTS
(Scroll Up)
--------------------
DOwn
(Scroll Down)
Row 1 of 11
PROGRAM TRANCODE INITSCR POSTSCR START MAX ------------ DATA ------------
> TRIHOGAN
>
>
>
>
>
>
>
>
>
>
Press ENTER to process or enter END command to terminate
TRANCODE
Required if PROGRAM is not specified. This field is used to identify which
transactions are to be intercepted and debugged by Xpediter/IMS. You can enter the
transaction code in this field, the load module name in the PROGRAM field, or
supply values for both fields.
Each transaction code must be unique. If you enter only a transaction code, its
associated program is intercepted. However, multiple transactions can invoke the
same program. Therefore, if you enter only the program name, all the transactions
associated with that program are intercepted and debugged by Xpediter/IMS.
INITSCR
Enter the member name of a test script if you want to execute a predefined command
stream at the beginning of the debugging session. You can optionally enter a member
name from a Setup INCLUDE library. This member will be executed after the
inclusion of the site-wide script member @@SITE@@, if defined.
POSTSCR
Enter the member name of a test script if you want to execute a predefined command
stream at the end of the debugging session. You can optionally enter a member name
from a Setup INCLUDE library.
START
Enter up to four digits; the default value is 1. The start value specifies the intercept
on which processing begins. The program’s source code is displayed when the start
intercept is processed.
MAX
Enter the number of times the intercept is to remain active. If you do not supply a
MAX value, Xpediter/IMS intercepts the transaction (or program) each time it is
invoked. If you enter an EXIT command and there are still intercepts remaining,
those intercepts are ignored.
Xpediter/TSO Environment Test Screens
B-37
DATA
Specify up to 30 bytes of data from the IMS transaction you want to debug.
The DATA field is only active if IMS User ID/Data Value Intercept Support is enabled.
See the Xpediter/TSO and Xpediter/IMS Installation and Configuration Guide for more details.
Note:
This field cannot contain the , (comma) or ¢ (cent) characters.
IMS USERID
Specify the ID of the IMS user issuing the IMS transaction you want to debug. This
applies only if IMS user ID support is enabled. See the Xpediter/TSO and Xpediter/IMS
Installation and Configuration Guide for more details.
This field is also used to record the user ID in the Code Coverage Repository if
Xpediter/Code Coverage is active.
Retain Breakpoints?
If you want Xpediter to retain breakpoints from one iteration of an IMS program or
transaction to the next, enter YES in this field. Before breakpoints, after breakpoints,
onetime breakpoints, counts, skips, traces, and when conditions from the previous
test iteration will be reapplied. Count values will accumulate across iterations, but
maximum execution count limits are not preserved. Keeps and inserted lines are not
retained.
The default is NO and will result in each iteration starting with only the standard
before and after breakpoints.
Xpediter/Code Coverage counters and breakpoints, where applicable, are unaffected
by this feature.
NBA
Enter the Normal Buffer Allocation (NBA), up to two digits.
OBA
Enter the Overflow Buffer Allocation (OBA), up to two digits.
Note:
The NBA and OBA fields appear on the screen only if your site installer
indicated that your site uses Fast Path databases. The values are inserted in
the PARM string when the IMS region is attached.
Hogan PEM Driver
Enter the name of the Hogan driver. IMSPEM is the default.
File List/JCL Member
Enter the dataset name that contains the file list, CLIST, or JCL. The File Allocation
Utility (FAU) preallocates files and databases that will be processed by the program
upon entry to the debugging session.
If the member name of a PDS is omitted, a member list is displayed.
If the dataset contains a CLIST, Xpediter/IMS immediately executes it and begins the
debugging session.
If the dataset contains a file list or JCL, the FAU is invoked to dynamically allocate
the specified files before beginning the debugging session. Refer to Appendix A,
“Using the File Allocation Utility” for detailed information about the FAU.
Unattended?
Enter YES to run in Unattended mode. The default value is NO. In unattended mode,
after the Xpediter/IMS Message Processing Region (MPR) is attached, Xpediter
commands are only processed in the Initial Script, Post Script, and Abend Script. The
TSO terminal remains locked and Xpediter commands are not allowed from the
B-38
Xpediter/TSO and Xpediter/IMS PL/I User Guide
terminal. When you are finished testing in the Xpediter/IMS MPR, the MPR may be
stopped and the TSO terminal unlocked by using either the Xpediter Stop Region
transaction, XPST, or the Xpediter Stop Region BMP procedure XPSTOP. Refer to
“Stopping the Xpediter/IMS Dependent Region” on page 7-14.
Code Coverage Test?
Enter YES to collect statistics without Test Data Optimization information. Enter
TDO to collect statistics and TDO information. The default value is NO.
System Flow?
Enter YES to collect Xpediter/Code Coverage System Flow data. The default value is
NO.
Note:
The Code Coverage options are only available if you have purchased
Xpediter/Code Coverage.
CAUTION:
Code Coverage does not currently support VisualAge PL/I programs. However,
statistics will be collected on any non-VA PL/I programs involved in the Code
Coverage test.
Is This a DB2 Test?
Enter YES if the program executes EXEC SQL statements. The default value is NO.
System
Enter the DB2 subsystem name if the program executes EXEC SQL statements. The
subsystem name depends on the release level of DB2 and is assigned at the time of
installation.
Press Enter to initiate the debugging session. Refer to Chapter 5, “Debugging
Interactively” for information on how to debug your program.
When intercepts cannot be set and the message MAX USERS is displayed on the test
screen, enter INTER on the command line to look at the Intercepts screen, shown in
Figure B-26. The Number of Available Class Codes field will be zero (0), indicating that
the maximum number of users are testing with Xpediter/IMS.
The Intercepts screen provides valuable information regarding the use of Xpediter/IMS—
how many users can still test using Xpediter/IMS, what programs or transactions are
being tested, and other information connected with the program and the transaction
code.
Xpediter/TSO Environment Test Screens
B-39
Figure B-26. Intercepts Screen
Profile: DEFAULT ------------ INTERCEPTS ------------------COMMAND ===>
Number Of Available Class Codes: 0
Current IMSID: IMSA
USERID
========
ASJUSR1
ASJUSR1
ASJUSR1
ASJUSR2
ASJUSR3
ASJUSR4
ASJUSR5
ASJUSR6
ASJUSR7
ASJUSR8
ASJUSR9
ASJUSR9
ASJUSR9
ASJUSR10
F1=HELP
F7=UP
TRAN CODE
=========
XPEDTRAN
XPE1
XPE2
XPE3
XPE4
XPE5
XFP1
XFP2
XPE6
XPE7
XPE8
F2=SPLIT
F8=DOWN
PROGRAM
========
XPEDTRAN
XPEDTRA1
XPEDTRA2
XPEDBMP1
XPEDBMP2
XPEDTRA4
XPEDTRA5
XPEDFP1
XPEDFP2
XPEDBMP3
XPEDTRA6
XPEDTRA7
XPEDTRA8
XPEDBMP4
F3=END
F9=SWAP
TYPE
====
TP
TP
TP
BMP
BMP
TP
TP
IFP
IFP
BMP
TP
TP
TP
BMP
PSB
=========
XPEDTRAN
XPEDTRA1
XPEDTRA2
XPEDPSB1
XPEDPSB2
XPEDTRA4
XPEDTRA5
FASTPAT1
FASTPAT2
XPEDBMP
XPEDTRA6
XPEDTRA7
XPEDTRA8
XPEDPSB2
F4=RETURN
F10=LEFT
F5=RFIND
F11=RIGHT
ROW 1 TO 14 OF 14
SCROLL ===> PAGE
CLASS
OLD
NEW
===
===
002
045
004
045
005
045
004
004
001
001
016
018
004
005
005
019
019
019
IMSID
=====
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
F6=RCHANGE
F12=RETRIEVE
The Intercepts screen (Figure B-26) does not contain any input fields; all of the
information is displayed for you. The fields on the screen are described below:
Number Of Available Class Codes
The number of class codes available. This field tells you how many more people can
run an MPP test. Notice that Figure B-26 displays the number of class codes available
for use as zero (0), indicating that the maximum number of MPP users are testing
with Xpediter/IMS.
Current IMSID
The name of the IMS control region with which the current user communicates.
USERID
The user ID of the person running the test.
TRAN CODE
The transaction code associated with the program, if one was used.
PROGRAM
The name of the program being tested.
TYPE
The type of program being tested.
PSB
The program specification block (PSB) name associated with the program. Often, this
name is the same as the program name.
OLD CLASS
The original class code of the user’s transaction.
NEW CLASS
The Xpediter/IMS reserved class code for the transaction. Xpediter/IMS reassigns the
class codes for message processing transactions.
B-40
Xpediter/TSO and Xpediter/IMS PL/I User Guide
IMSID
The name of the IMS control region with which the IMS user programs
communicate. This name does not have to be the current IMSID.
Hogan BMPPEM Test Screen – Environments Menu Option 11
The Hogan BMPPEM screen displayed in Figure B-27 lets you set up debug parameters
before beginning program execution of Hogan BMPPEM in a BMP Region.
Figure B-27. Hogan BMPPEM Screen
Profile: DEFAULT ---COMMAND ===>
COMMANDS:
XPEDITER/TSO - HOGAN BMPPEM (2.11)
SEtup (Display Setup Menu)
INter (Display Intercepts)
PROFile (Display Profile List)
TEST SELECTION CRITERIA:
Initial Script ===>
Post Script ===>
PSB ===>
TRAN CODE ===>
NBA ===> 0
OBA ===> 0
--------------------
SYsin (Edit SYSIN dataset)
(Normal buffer allocation)
(Overflow buffer allocation)
HOGAN SYSIN Data Set ===>
HOGAN PEM Driver ===> BMPPEM
("BMPPEM" is default for this test)
File List/JCL Member ===>
Code Coverage Test? ===> NO
Is This a DB2 Test? ===> NO
Press ENTER to process
(YES, NO, TDO)
or
System Flow? ===> NO
System ===>
enter END command to terminate
The fields on the Hogan BMPPEM screen (Figure B-27) are:
Initial Script
Enter the member name of a test script if you want to execute a predefined command
stream at the beginning of the debugging session. You can optionally enter a member
name from a Setup INCLUDE library. This member will be executed after the
inclusion of the site-wide script member @@SITE@@, if defined.
Post Script
Enter the member name of a test script if you wish to execute a predefined command
stream at the end of the debugging session. You can optionally enter a member name
from a Setup INCLUDE library.
PSB
Enter the program specification block (PSB) name associated with the program you
are debugging.
TRAN CODE
Enter the optional IMS input transaction code. This value is inserted into the IMS
PARM specified under Setup.
NBA
Enter the Normal Buffer Allocation (NBA), up to two digits. The default value is 0.
Xpediter/TSO Environment Test Screens
B-41
OBA
Enter the Overflow Buffer Allocation (OBA), up to two digits. The default value is 0.
Note:
The NBA and OBA fields appear on the screen only if your site installer
indicated that your site uses Fast Path databases. The values are inserted in
the PARM string when the IMS region is attached.
Hogan SYSIN Data Set
A control file used by Hogan programs. Enter SYSIN on the command line to edit or
create the SYSIN dataset, shown in Figure B-28.
Figure B-28. Displaying the SYSIN Dataset
EDIT --- AXPTSO.XPEDITER.SYSINDS(HOGSYS01) - 01.00 -------- COLUMNS 001 072
COMMAND ===>
SCROLL ===> PAGE
****** *************************** TOP OF DATA ****************************
000001 1 49 904
000002 #905¬704¬1%
****** ************************** BOTTOM OF DATA **************************
Hogan PEM Driver
Enter the name of the Hogan driver. BMPPEM is the default.
File List/JCL Member
Enter the dataset name that contains the file list, CLIST, or JCL. The File Allocation
Utility (FAU) preallocates files and databases that are processed by the program upon
entry to the debugging session. Any files or databases that are not dynamically
allocated by Hogan must be allocated through this file.
If the member name of a PDS is omitted, a member list is displayed.
If the dataset contains a CLIST, Xpediter/TSO immediately executes it and begins the
debugging session.
If the dataset contains a file list or JCL, the FAU is invoked to dynamically allocate
the specified files before beginning the debugging session. Refer to Appendix A,
“Using the File Allocation Utility” for detailed information about the FAU.
Note:
All CDMF files and databases should be allocated.
Code Coverage Test?
Enter YES to collect statistics without Test Data Optimization information. Enter
TDO to collect statistics and TDO information. The default value is NO.
System Flow?
Enter YES to collect Xpediter/Code Coverage System Flow data. The default value is
NO.
Note:
The Code Coverage options are only available if you have purchased
Xpediter/Code Coverage.
CAUTION:
Code Coverage does not currently support VisualAge PL/I programs. However,
statistics will be collected on any non-VA PL/I programs involved in the Code
Coverage test.
B-42
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Is This a DB2 Test?
Enter YES if the program executes EXEC SQL statements. The default value is NO.
System
Enter the DB2 subsystem name if the program executes EXEC SQL statements. The
subsystem name depends on the release level of DB2 and is assigned at the time of
installation.
Press Enter to initiate the debugging session. Refer to Chapter 5, “Debugging
Interactively” for information on how to debug your program.
When intercepts cannot be set and the message MAX USERS is displayed on the test
screen, enter INTER on the command line to look at the Intercepts Screen, shown in
Figure B-29 on page B-42. The Number of Available Class Codes field will be zero (0),
indicating that the maximum number of users are testing with Xpediter/IMS.
The Intercepts screen provides valuable information regarding the use of Xpediter/IMS:
how many users can still test using Xpediter/IMS, what programs or transactions are
being tested, and other information connected with the program and the transaction
code.
Figure B-29. Intercepts Screen
Profile: DEFAULT ------------ INTERCEPTS ------------------COMMAND ===>
Number Of Available Class Codes: 0
Current IMSID: IMSA
USERID
========
ASJUSR1
ASJUSR1
ASJUSR1
ASJUSR2
ASJUSR3
ASJUSR4
ASJUSR5
ASJUSR6
ASJUSR7
ASJUSR8
ASJUSR9
ASJUSR9
ASJUSR9
ASJUSR10
F1=HELP
F7=UP
TRAN CODE
=========
XPEDTRAN
XPE1
XPE2
XPE3
XPE4
XPE5
XFP1
XFP2
XPE6
XPE7
XPE8
F2=SPLIT
F8=DOWN
PROGRAM
========
XPEDTRAN
XPEDTRA1
XPEDTRA2
XPEDBMP1
XPEDBMP2
XPEDTRA4
XPEDTRA5
XPEDFP1
XPEDFP2
XPEDBMP3
XPEDTRA6
XPEDTRA7
XPEDTRA8
XPEDBMP4
F3=END
F9=SWAP
TYPE
====
TP
TP
TP
BMP
BMP
TP
TP
IFP
IFP
BMP
TP
TP
TP
BMP
F4=RETURN
F10=LEFT
PSB
=========
XPEDTRAN
XPEDTRA1
XPEDTRA2
XPEDPSB1
XPEDPSB2
XPEDTRA4
XPEDTRA5
FASTPAT1
FASTPAT2
XPEDBMP
XPEDTRA6
XPEDTRA7
XPEDTRA8
XPEDPSB2
F5=RFIND
F11=RIGHT
ROW 1 TO 14 OF 14
SCROLL ===> PAGE
CLASS
OLD
NEW
===
===
002
045
004
045
005
045
004
004
001
001
016
018
004
005
005
019
019
019
IMSID
=====
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
IMSA
F6=RCHANGE
F12=RETRIEVE
The Intercepts screen (Figure B-29) does not contain any input fields; all of the
information is displayed for your analysis. The fields on the screen are described below:
Number Of Available Class Codes
The number of class codes available. This field tells you how many more people can
run a MPP test. Notice that Figure B-29 displays the number of class codes available
for use as zero (0), indicating that the maximum number of MPP users are testing
with Xpediter/IMS.
Current IMSID
The name of the IMS control region with which the current user communicates.
USERID
The user ID of the person running the test.
Xpediter/TSO Environment Test Screens
B-43
TRAN CODE
The transaction code associated with the program, if one was used.
PROGRAM
The name of the program being tested.
TYPE
The type of program being tested.
PSB
The program specification block (PSB) name associated with the program. Often, this
name is the same as the program name.
OLD CLASS
The original class code of the user’s transaction.
NEW CLASS
The Xpediter/IMS reserved class code for the transaction. Xpediter/IMS reassigns the
class codes for message processing transactions.
IMSID
The name of the IMS control region with which the IMS user programs
communicate. This name does not have to be the current IMSID.
DB2 Stored Procedures – Environments Menu - Option 12
The DB2 Stored Procedure screen (2.12) shown in Figure B-30 lets you set up debug
parameters before beginning program interception of a call to a DB2 stored procedure.
Establish the intercept request by entering the information necessary on the DB2 Stored
Procedure screen. Pressing Enter will establish the environment and prepare Xpediter to
intercept the call to the stored procedure.
Figure B-30. DB2 Stored Procedure Screen (2.12)
PROFILE: DB2SP
XPEDITER/TSO - DB2 Stored Procedure (2.12) ----------------
COMMAND ===>
COMMANDS: SEtup (Display Setup Menu)
PROFile (Display Profile List)
Schema Name ===> XT
Stored Procedure Name
or UDF ===> TRISPTG
Client End UserID
or PC Account Code
or IP Address ===> MFHABC0
DB2 Subsystem Name ===> D610 (D610,D701,D510)
Maximum Number of Tests ===> 1
(1 - 9999)
Initial Script ===>
Post Script ===>
File List/JCL Member ===>
Preview Files? ===> NO
Code Coverage Test? ===> NO
(YES, NO, TDO) System Flow? ===> NO
Press ENTER to process or enter END command to terminate
The fields on the DB2 Stored Procedure screen (2.12) are:
B-44
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Schema Name
Used to supply the schema name associated with the stored procedure. Xpediter will
use this name, along with the stored procedure name, to resolve the Workload
Manager (WLM) application environment and the load module name. Your site’s DB2
administrator or WLM System Support specialist should be able to provide the
schema and stored procedure names that have been defined to WLM and DB2.
Beginning with DB2 8.1, the schema name can be up to 128 bytes long.
Stored Procedure Name or UDF
Required. Used to identify the stored procedure name or User Defined Function
(UDF) to be intercepted. The stored procedure must have been defined. Beginning
with DB2 8.1, the stored procedure name can be up to 128 bytes long.
Client End UserID or PC Account Code or IP Address
Required. Enter whichever of the following is appropriate for your test:
– The ID of the user executing the client program that calls the stored procedure. If
the client is a batch job, specify the user ID assigned to the job. Xpediter will not
trap the stored procedure if the client calling it is associated with a different user
ID.
– The TCP/IP address where a network call of the stored procedure is done. An
example would be a DB2 UDB on the PC.
– The DB2 accounting code of the PC used to execute the client program. If DB2
UDB is installed and appropriately configured on the PC, the accounting code
can be set at the DOS prompt by entering DB2SET ACCOUNT=xxxxxx where
xxxxxx is the desired code. The code is then passed to the mainframe and used to
set the trap for the stored procedure.
– An asterisk (*). This will match on anything.
DB2 Subsystem
Required. Enter the DB2 subsystem name. To define DB2 subsystems and programs,
use the SETUP option, then the DSNLOAD option.
Number of Tests
Enter the number of test intercepts to perform. This field can be used to set the
number of times a stored procedures is to be intercepted.
Initial Script
Enter the member name of a test script if you want to execute a predefined command
stream at the beginning of the debugging session. This member will be executed after
the inclusion of the site-wide script member @@SITE@@, if defined.
Post Script
Enter the member name of a test script if you want to execute a predefined command
stream at the end of the debugging session.
File List/JCL Member
Enter the dataset name that contains the file list, CLIST, or JCL. The File Allocation
Utility (FAU) preallocates files and databases that will be processed by the program
upon entry to the debugging session.
If the member name of a PDS is omitted, a member list is displayed.
If the dataset contains a CLIST, Xpediter immediately executes it and begins the
debugging session.
If the dataset contains a file list or JCL, the FAU is invoked to dynamically allocate
the specified files before beginning the debugging session. Refer to Appendix A,
“Using the File Allocation Utility” for detailed information about the FAU.
Xpediter/TSO Environment Test Screens
B-45
Preview Files?
Enter YES to browse or edit the content of files prior to allocation. If File-AID is
installed, its file browse (FB) and file edit (FE) functions will also be available. For
more information, see “Using the Edit File List Screens” on page A-4.
Code Coverage Test?
Enter YES to collect statistics without Test Data Optimization information. Enter
TDO to collect statistics and TDO information. The default value is NO.
System Flow?
Enter YES to collect Xpediter/Code Coverage System Flow data. The default value is
NO.
Note:
The Code Coverage options are only available if you have purchased
Xpediter/Code Coverage.
Press Enter to initiate the debugging session. Refer to Chapter 5, “Debugging
Interactively” for information on how to debug your program.
B-46
Xpediter/TSO and Xpediter/IMS PL/I User Guide
C-1
Appendix C.
Specifying Setup Options
Appendix A.
App C
Setup is a user initialization procedure that lets you assign values to installed options
such as: (1) application load library names, (2) DDIO file names, (3) test script library
names, and so on. These options automatically default to the installed options the first
time you access Xpediter/TSO; however, you can override the installed options by using
the setup procedure. The options you specify are retained across debugging sessions until
you change them.
Note:
At least one DDIO library is required for Xpediter/TSO.
The setup procedure is accessed by typing SETUP or SE on the command line of any
environment test screen or any screen on which the command appears. The options
displayed on a Setup Menu depend on the environment in which you run your program
and may vary for different environments.
For example, if you selected option 7 (IMSPEM) on the Xpediter/TSO Environments
Menu shown in Figure C-1, the Hogan IMSPEM environment test screen shown in Figure
C-2 on page C-2 is displayed.
Figure C-1. Xpediter/TSO Environments Menu
Profile: DEFAULT ----- XPEDITER/TSO - ENVIRONMENTS MENU ------------------------
OPTION ===>
XPEDITER/TSO
1
STANDARD - Test a program with no special environment services
2
DIALOG
- Test programs that make ISPF dialog manager calls
3
IMS
- Test a program that makes IMS/DB calls
4
BTS
- Test programs using BTS
5
BATCHPEM - Test a program in a Hogan BATCHPEM environment
6
DLIPEM
- Test a program in a Hogan DLIPEM/BMPPEM environment
7
IMSPEM
- Test a program in a Hogan BTS IMSPEM environment
XPEDITER/IMS
8
MPP
- Test programs in an IMS message region
9
BMP/IFP
- Test a program in a BMP or Fast Path region
10 IMSPEM
- Test Hogan IMSPEM in an IMS message region
11 BMPPEM
- Test Hogan BMPPEM in a BMP region
DB2 STORED PROCEDURES
12 DB2SP
- Test DB2 Stored Procedure interactively
Note: The environment highlighted is currently selected.
Press ENTER to process or enter END command to terminate
C-2
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure C-2. Hogan IMSPEM Test Screen
Profile: DEFAULT ---COMMAND ===>
COMMANDS:
XPEDITER/TSO - HOGAN IMSPEM (2.7)
---------------------
SEtup (Display Setup Menu)
BTsin (Display BTSIN Menu)
PROFile (Display Profile List)
INTERCEPTS
PROGRAM
TRANCODE
INITSCR
===> PQ4CODEL ===> TQ4COCNG ===>
===>
===>
===>
===>
===>
===>
DOwn
POSTSCR
===>
===>
===>
(Scroll Down)
START
===>
===>
===>
MAX
===>
===>
===>
BTSIN ===> 'ASJUSR1.INCLUDE(BTSIN)'
Program Type ===> DLI
(DLI, BMP, DBB)
HOGAN PEM Driver ===> IMSPEM
File List/JCL Member
Unattended?
Code Coverage Test?
Is This a DB2 Test?
===>
===> NO
===> NO
===> NO
Press ENTER to process
("IMSPEM" is Default for DLI Program)
(YES, NO, TDO)
or
System Flow? ===> NO
System ===>
enter END command to terminate
If you enter SETUP on Command line of the Hogan IMSPEM environment test screen,
the Setup Menu shown in Figure C-3 is displayed.
Figure C-3. Xpediter/TSO IMSPEM Setup Menu
Profile: DEFAULT --------- XPEDITER/TSO - SETUP MENU ---------------------------
OPTION ===>
0
ENVIRONMENT - Execution environments menu
1
LOADLIBS
- Application load module libraries
2
DDIO
- DDIO files
3
INCLUDES
- Test script libraries
4
LOG
- Session log dataset disposition
5
SCRIPT
- Test script dataset disposition
6
DSNLOAD
- DB2 system names and DSNLOAD libraries
7
PANEXEC
- PANEXEC load libraries
I
IMS
- IMS setup options menu
B
BTS
- BTS setup options menu
H
HOGAN
- HOGAN setup options menu
C
CODE COVERAGE- Code Coverage setup options
D
DOCUMENT
- Document dataset disposition
E
EXTENDED
- Extended Setup Menu
A
ALL
- Display all of the above in succession (except 0)
Press ENTER to process or enter END command to terminate
Option E on all Setup Menus displays the Extended Setup Menu. Extended Setup allows
the user to modify NEW and WORK dataset allocation values that were previously
assigned by the installer of the Xpediter product. Option 0 on all Setup Menus displays
the Execution Environments Menu. Options 1 through 7 on the Setup menus are
available for all environments and are referred to as the common setup options. The
screens for each of these seven options are described in “Common Setup Screens” on
page C-5.
Note: As a convenience, you can bypass the Setup Menus by using the SETUP command
and specifying the setup option you want. For example, SETUP 1 takes you
directly to the Load Module Libraries screen, SE A automatically cycles you
through all the setup screens, and SETUP 0.4 changes your test type to BTS.
Specifying Setup Options
C-3
This appendix shows examples of the Setup Menus, and the screens and submenus that
can be accessed from them. Since many of the Setup Menus are the same, all of the
menus are not shown.
Setup Options Available Under Xpediter/TSO
Environments
Table C-1 shows the setup options that are available for each Xpediter/TSO environment.
Table C-1.
Setup Options Available for Xpediter/TSO Environments
Xpediter/TSO Environments
Setup Options
Standard
Dialog
IMS
BTS
BATCHPEM
DLIPEM
IMSPEM
LOADLIBS
X
X
X
X
X
X
X
DDIO
X
X
X
X
X
X
X
INCLUDES
X
X
X
X
X
X
X
LOG
X
X
X
X
X
X
X
SCRIPT
X
X
X
X
X
X
X
DSNLOAD
X
X
X
X
X
X
X
PANEXEC
X
X
X
X
X
X
X
X
X
X
X
IMS
BTS
X
HOGAN
X
X
X
X
CODE COVERAGE
X
X
X
X
X
X
X
DOCUMENT
X
X
X
X
X
X
X
CAUTION:
Code Coverage does not currently support VisualAge PL/I or C programs. However,
statistics will be collected on any non-VA PL/I and non-C programs involved in the
Code Coverage test.
Setup Options Available Under Xpediter/IMS
Environments
Table C-2 on page C-4 shows the setup options that are available for each Xpediter/IMS
environment. The Setup Menu shown in Figure C-4 on page C-4 is displayed when you
select option 11 (BMPPEM) under Xpediter/IMS on the Environments Menu and type
SETUP in the command line of the displayed environment test screen.
Refer to “Common Setup Screens” on page C-5 for a description of the first seven options
(options 1 through 7) on the Setup Menu. Refer to the “IMS Setup Menu” on page C-16
for descriptions of options 8 through 11 and refer also to the “Hogan Setup Menu” on
page C-35 for information about option H.
C-4
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure C-4. Xpediter/IMS BMPPEM Setup Menu
Profile: DEFAULT --------- XPEDITER/TSO - SETUP MENU ---------------------------
OPTION ===>
0
ENVIRONMENT - Execution environments menu
1
LOADLIBS
- Application load module libraries
2
DDIO
- DDIO files
3
INCLUDES
- Test script libraries
4
LOG
- Session log dataset disposition
5
SCRIPT
- Test script dataset disposition
6
DSNLOAD
- DB2 system names and DSNLOAD libraries
7
PANEXEC
- PANEXEC load libraries
8
IMS
- PSB and DBD libraries
9
PROCLIB
- IMS preload list
10 DFSRESLB
- IMS authorized load libraries
11 PARMS
- IMS region ID and parameter strings
H
HOGAN
- Hogan setup options menu
C
CODE COVERAGE- Code Coverage setup options
D
DOCUMENT
- Document dataset disposition
E
EXTENDED
- Extended Setup Menu
A
ALL
- Display all of the above in succession (except 0)
Press ENTER to process or enter END command to terminate
The following notes list the differences between Figure C-4 and the Setup Menu for the
different Xpediter/IMS environments:
Notes:
3. Options 8 (MPP) and 9 (BMP/IFP) on the Environments Menu do not display option
H (HOGAN).
4. Option 10 (IMSPEM) on the Environments Menu displays a Setup Menu similar to
Figure C-4.
Table C-2.
Setup Options Available for Xpediter/IMS Environments
Xpediter/IMS Environments
Setup Options
MPP
BMP/IFP
IMSPEM
BMPPEM
LOADLIBS
X
X
X
X
DDIO
X
X
X
X
INCLUDES
X
X
X
X
LOG
X
X
X
X
SCRIPT
X
X
X
X
DSNLOAD
X
X
X
X
IMS
X
X
X
X
PROCLIB
X
X
X
X
DFSRESLB
X
X
X
X
PARMS
X
X
X
X
X
X
HOGAN
CODE COVERAGE
X
X
X
X
DOCUMENT
X
X
X
X
Specifying Setup Options
C-5
CAUTION:
Code Coverage does not currently support VisualAge PL/I or C programs. However,
statistics will be collected on any non-VA PL/I and non-C programs involved in the
Code Coverage test.
Using the RESTORE Command
When you type over an installed default value on a setup screen, that default value is
permanently updated with the new value until either a RESTORE command is executed
or another update is made to the same field.
You can use the RESTORE command to reinstate the installed defaults for a single screen
whose values have been changed or for all Setup and installation screens whose values
have been changed.
To restore installed defaults for a single setup screen, enter RESTORE on the command
line of that particular setup screen. RESTORE reinstates all installed default values for the
screen and saves them automatically. You cannot undo the RESTORE when you enter it
for a single setup screen.
To restore installed defaults globally for all setup and installation screens, enter RESTORE
on the command line of the Setup Menu screen. A confirmation screen is displayed to
remind you that the RESTORE command reinstates all installed default values for all
setup and installation screens. When the confirmation screen is displayed, press Enter to
execute the RESTORE command. If you decide to cancel the RESTORE command, enter
the END command and exit this screen without restoring the installed default values.
Common Setup Screens
If you selected option 1 (STANDARD) on the Environments Menu and entered SETUP on
the environment test screen, the Standard Setup Menu screen shown in Figure C-5 is
displayed.
Figure C-5. Standard Setup Menu Screen
Profile: DEFAULT --------- XPEDITER/TSO - SETUP MENU --------------------------
OPTION ===>
0 ENVIRONMENT - Execution environments menu
1 LOADLIBS
- Load module libraries
2 DDIO
- DDIO files
3 INCLUDES
- Test script libraries
4 LOG
- Session log dataset disposition
5 SCRIPT
- Test script dataset disposition
6 DSNLOAD
- DB2 system names and DSNLOAD libraries
7 PANEXEC
- PANEXEC load libraries
C CODE COVERAGE- Code Coverage setup options
D DOCUMENT
- Document dataset disposition
E EXTENDED
- Extended Setup Menu
A ALL
- Display all of the above in succession (except 0)
Press ENTER to process or enter END command to terminate
The Setup Menu is available for all execution environments. Many of the screens are
optional. The choices always displayed on the Setup Menu are 0 through 5, D, E, and A.
C-6
Xpediter/TSO and Xpediter/IMS PL/I User Guide
They are used to specify a test environment, load libraries, DDIO libraries, and test script
libraries, as well as session log, test script, and document dataset attributes. In addition,
an extended setup menu can be selected or all setup screens can be displayed in order.
The screens for each of these options are described in the following subsections.
Load Module Libraries Screens
A load module library list is a set of partitioned datasets containing your link-edited
application programs. Xpediter/TSO searches the list for the modules you want to call or
debug during the debugging session. The load module library containing any module you
want to intercept (i.e., set a breakpoint on) must be listed on this screen.
The Load Module Libraries screens are used to enter the dsnames of common load
libraries needed for most debugging sessions. Up to 32 libraries can be concatenated in
this load library list (24 on the User Library list and 8 on the Installation Library list).
The first screen you see is one of three screens. On the first one (as shown in Figure C-6),
there is room for eight user libraries and eight installation libraries.
Figure C-6. First Load Module Libraries Screen
Profile: DEFAULT ---- XPEDITER/TSO - LOAD MODULE LIBRARIES ---------------------
COMMAND ===>
COMMANDS: DOWN (for additional User Libraries)
User Libraries:
--->>> Include ALL libraries your program requires <<<---
(Even if the library is in LINKLST, ie. COBOL or LE runtime libraries)
(1) ===> 'ASJUSR1.TEST.LOADLIB'
(2) ===>
(3) ===>
(4) ===>
(5) ===>
(6) ===>
(7) ===>
(8) ===>
Installation Libraries: (Changes made to this list override installed defaults)
(9) ===> 'COBOL.C2V130X.COB2LIB'
(10) ===>
(11) ===> 'XT.SLS61.LINKLIB'
(12) ===>
(13) ===>
(14) ===>
(15) ===>
(16) ===>
Press ENTER to Process or Enter END Command to Terminate
If you need to list additional user libraries, enter DOWN or press the PF8 key. A second
screen appears. This screen lists the user libraries you have already entered and space for
eight more libraries. DOWN is still active and you can also enter UP or press the PF7 key
to return to the previous screen.
Enter DOWN to receive a third screen (Figure C-7 on page C-7), which has space for eight
additional user libraries and a list of the original installation libraries. On this third
screen, you can enter the UP command to return to the previous screen.
Specifying Setup Options
C-7
Figure C-7. Third Load Module Libraries Screen
Profile: DEFAULT ---- XPEDITER/TSO - LOAD MODULE LIBRARIES ---------------------
COMMAND ===>
COMMANDS: UP (for additional User Libraries)
User Libraries:
(17) ===>
(18) ===>
(19) ===>
(20) ===>
(21) ===>
(22) ===>
(23) ===>
(24) ===>
Installation Libraries: (Changes made to this list override installed defaults)
(25) ===> 'COBOL.C2V130X.COB2LIB'
(26) ===>
(27) ===> 'XT.SLS61.LINKLIB'
(28) ===>
(29) ===>
(30) ===>
(31) ===>
(32) ===>
Press ENTER to Process or Enter END Command to Terminate
Values for the two fields on these screens are described below:
User Libraries
You can specify up to 24 libraries. Normal concatenation rules are in effect—libraries
specified first will be searched first, and buffer space for Xpediter’s task library will be
determined by the first library specified.
Installation Libraries
The installer entered the DSNAMEs of common load libraries that should be allocated
to any debugging session. Usually, only PL/I subroutines and in-house utility libraries
are listed here. You can override installed default libraries by specifying new libraries
in these fields.
The application load libraries entered in the User Libraries fields are concatenated on
top of any libraries entered in these fields.
Usage Note
Even if your application programs would normally find any required Language
dependent run-time subroutines (including LE - Language Environment), without being
included in the JOBLIB/STEPLIB of the batch JCL (usually from the LINKLIST or (E)LPA),
the libraries must still be specified as part of the test session setup. This will ensure that
Xpediter’s Task Library will be properly configured.
DDIO Files Screen
The DDIO Files screen shown in Figure C-8 on page C-8 is used to enter the names of
your DDIO libraries. At least one DDIO dataset is required.
Notes:
1. If a program was pre-processed with Compuware Shared Services and the listing
output still resides in the original DDIO/Shared Directory file, you do not need to
supply a DDIO/Shared Directory file name in Xpediter/TSO’s setup because this
information is contained within the program load module directory data in
compressed format.
2. Compuware Source Support Best Practices recommends that source Shared
Directories (SSD) be paired with each load library, and the SSD dataset name match
C-8
Xpediter/TSO and Xpediter/IMS PL/I User Guide
the load library name with either the last qualifier changed to SSD or SSD appended
to it. If this process is followed, Xpediter will automatically derive the SSD name for
each needed listing from the program’s load library name.
Figure C-8. DDIO Files Screen
Profile: DEFAULT ---------- XPEDITER/TSO - DDIO FILES --------------------------
COMMAND ===>
User Libraries:
(1) ===> 'ASJUSR1.XPEDITER.DDIO'
(2) ===>
(3) ===>
(4) ===>
(5) ===>
(6) ===>
Installation Libraries: (Changes made to this list override installed defaults)
(7) ===> 'AXPQA.SLS8920.DDIO'
(8) ===>
(9) ===>
Press ENTER to process or enter END command to terminate
The fields on the DDIO Files screen are:
User Libraries
Some sites find it useful to create multiple DDIO libraries based on user, project, or
some other criteria. You can enter the name of your DDIO dataset in these fields.
Fill in the dataset name of the DDIO file that contains the source listing member for
your program (load module). In addition to the original DDIO dataset names, you
may also specify Shared Directory dataset names and/or LP database dataset names.
Installation Libraries
If your site has a common DDIO dataset, the installer entered its dsname in this field.
At least one library dsname is required before Xpediter can be invoked, but up to
three libraries can be concatenated.
Test Script Libraries Screen
The test script libraries screen shown in Figure C-9 on page C-9 contains sets of
Xpediter/TSO command streams used to set up, run, or rerun a debugging session. You
can copy these command streams into a debugging session with the INCLUDE command.
Each script dataset must be partitioned, and is allocated to the XINCLUDE ddname.
While you are executing or debugging your program, Xpediter/TSO automatically
generates a script of all the commands entered during the debugging session.
Specifying Setup Options
C-9
Figure C-9. Test Script Libraries Screen
Profile: DEFAULT ----- XPEDITER/TSO - TEST SCRIPT LIBRARIES --------------------
COMMAND ===>
User Libraries:
(1) ===>
(2) ===>
(3) ===>
Installation Libraries: (Changes made to this list override installed defaults)
(4) ===> 'AXPQA.TSO.INCLUDE'
(5) ===>
(6) ===>
Press ENTER to Process or Enter END Command to Terminate
You are not required to provide the dsname of a test script library unless you specify an
Initial or Post Script on the test screen, or use the INCLUDE command referencing a
member not contained in a site-wide library (specified at installation).
The fields on the Test Script Libraries screen are:
User Libraries
The user test scripts library is created by you. You can create a member by copying
the script dataset created during a debugging session.
Installation Libraries
The installer may have entered the DSN of a test script library included on the
installation tape. These sample INCLUDE scripts can be used during installation of
Xpediter/TSO and for subsequent verification and training.
Log, Script, and Document Dataset Screens
The Log Dataset, Script Dataset, and Document Dataset screens contain the same fields,
so the fields displayed on each set of screens are discussed only once. When the text in
this section and the next section refer to session log or the session log dataset, you can
assume it refers also to script and document, if these three screens are involved.
Although session log, script, and document datasets are automatically created for every
debugging session, they each contain a different kind of information at the end of the
debugging session:
• The session log contains a record of the Xpediter/TSO commands entered during the
debugging session and the responses to them.
• The script dataset contains each executable command entered in the debugging
session. Before the debugging session is terminated, Xpediter/TSO lets you copy the
test script into a test script library. This predefined stream of Xpediter/TSO
commands can then be used to set up, run, or rerun another debugging session.
• The document dataset remains empty unless used for diagnostic purposes under the
direction of Xpediter Technical Support.
The Log Dataset, Script Dataset, and Document Dataset screens let you display and
modify the default values for the session log, script, and document datasets. Default
C-10
Xpediter/TSO and Xpediter/IMS PL/I User Guide
values are supplied for the dsname and allocation parameters. The disposition of the
session log, test script, and document datasets before and after a debugging session must
be specified because a session log, test script, and document dataset are created for every
session.
Note:
You can also scroll down on the Document Dataset screen to enter jobcard, FTP,
and customer contact information for use with the DOCUMENT command.
Figure C-10. Log/Script/Document Dataset Screen
-------------------------- XPEDITER/TSO - LOG DATASET --------------------------
COMMAND ===>
Log Dataset Name:
(DSNAME will be generated if blank)
DSNAME ===>
Allocation Parameters:
Process Options: A (Append)
Data Class ===>
D (Delete)
Space Units ===> TRK
K (Keep)
Primary ===> 2
PD (Print-Delete)
Secondary ===> 2
PK (Print-Keep)
Storage Class ===>
? (Prompt)
Unit ===>
Volume ===>
Disposition After the Test:
Process Option ===> K
(D, K, PD, PK, or ?)
Disposition Before the Test:
Process Option ===> ?
(A, D, or ?
Used only if DSNAME is specified)
(Under Multi-Batch, ? = Append)
Press ENTER to process or enter END command to terminate
The screen fields shown in Figure C-10 are described as follows:
Log Dataset Name
If you leave the DSNAME field blank, Xpediter/TSO generates a session log, script, or
document dataset dsname of:
– 'userid.XPLOG.mondd.Thhmmss' (for a session log dataset),
– 'userid.XPSCR.mondd.Thhmmss' (for a script dataset), or
– 'userid.XPDOC.mondd.Thhmmss' (for a document dataset)
where mon is a 3-character abbreviation for the current month, dd is the date in the
month, and hhmmss is the hour, minute, and second the dataset is created.
Allocation Parameters
The session log, script, and document datasets are created for each debugging
session. Values for the Space Units, Primary, and Secondary fields are required.
Valid default values for allocation of a session log, script, or document dataset are as
follows:
Data Class
If required, enter the data class name defined by your site that
contains the dataset attributes related to the allocation of the
dataset. A data class is displayed only when SMS (Storage
Management Subsystem) is being used.
Space Units
Valid values are TRK, CYL, or a block size (1-32760).
Primary
Valid values are 0-32760.
Secondary
Valid values are 0-32760.
Specifying Setup Options
C-11
Storage Class
If required, enter the storage class name defined by your site that
contains the dataset attributes related to the storage occupied by
the dataset. A storage class is displayed only when SMS (Storage
Management Subsystem) is being used.
Unit
Enter the unit if required at your site. Otherwise, leave blank for
defaults.
Volume
Enter the volume if required at your site. Otherwise, leave blank for
defaults.
The session log, script, and document datasets remain open throughout the current
session. If you modify the above parameters after these datasets have been allocated,
the new values take effect the next time you begin a debugging session.
Disposition After the Test
A value is required for Process Option. The action specified is taken when you END
from the test screen. Specify any of the following process options to indicate the
disposition of the session log, script, and document dataset after the debugging
session:
D
Delete the dataset without printing it. (Under Batch Connect, the dataset is
automatically printed, then deleted.)
K
Keep the dataset without printing it.
PD
Print and delete the dataset.
PK
Print and keep the dataset.
?
You will be prompted to select a process option each time you exit the test
screen. For more information, see “Data Set Disposition Screen After a Test”
on page C-12.
Under Batch Connect, the dataset is automatically printed. If a name was
specified in the DSNAME field, the dataset is then saved with that name. If no
name was specified, the dataset is then deleted.
Disposition Before the Test
A value for Process Option is required only if a DSNAME is specified. Use any of the
following process options to indicate the disposition of an existing session log,
script, or document dataset before the debugging session begins:
A
Append the new dataset to the end of the old dataset.
D
Delete the old dataset and reuse the same DSNAME.
C-12
Xpediter/TSO and Xpediter/IMS PL/I User Guide
?
Displays the Data Set Disposition screen shown in Figure C-11 before the
beginning of a debugging session so you can specify whether to append
(option A) the new dataset to the end of the existing session log, script, or
document dataset or to delete (option D) the existing dataset before creating
the session log, script, or document dataset for this debugging session.
Note:
Attempting to allocate a dataset with the same name as an existing
dataset causes a file allocation error. This Data Set Disposition screen
lets you specify what to do when that situation occurs.
The DDNAME field on the Data Set Disposition screen contains the ddname to
which this dataset is about to be allocated. For example, the session log
dataset is always allocated to the XPOUT ddname. The dsname you entered on
the previous screen is pre-filled in the DSNAME field.
Under Batch Connect, if the dataset does not exist, a step is added to your
converted JCL to allocate it with DISP=(MOD,CATLG,CATLG) without
displaying the Data Set Disposition screen. If the dataset already exists, you
must enter option A or D. If option A is specified, a step is added to your
converted JCL to allocate the dataset with DISP=(MOD,KEEP,KEEP). If option
D is specified, two allocation steps are added to your converted JCL, the first
with DISP=(OLD,DELETE,DELETE), the second with
DISP=(MOD,CATLG,CATLG).
Figure C-11. Data Set Disposition Screen Displayed Before the Debugging Session Begins
---------------------- XPEDITER/TSO - DATA SET DISPOSITION ---------------------
COMMAND ===>
DATA SET DISPOSITION:
Process Option ===>
Valid Options: A (Append new data to end of file)
D (Delete old data set and reuse)
DDNAME: XPOUT
DSNAME: 'ASJUSR1.LOG.TEST'
The above file was to be allocated as a new output file, but it already exists.
Press ENTER to Process or Enter END Command to Terminate
Data Set Disposition Screen After a Test
Xpediter displays the Data Set Disposition screen shown below in Figure C-12 after you
END from the test screen so you can select a disposition process option. The dataset’s
dsname and the ddname to which it is allocated are pre-filled on this screen.
Specifying Setup Options
C-13
Figure C-12. Data Set Disposition Screen Displayed After the Debugging Session is Ended
---------------------- XPEDITER/TSO - DATA SET
COMMAND ===>
DDNAME: XPOUT
DSNAME: 'ASJUSR1.LOG.TEST'
DATA SET DISPOSITION: VALID PROCESS OPTIONS:
Process Option ===> D
SYSOUT Class ===> A
Local Printer ID ===> XEROX01
DISPOSITION ---------------------
B
C
D
E
(Browse) K (Keep)
(Copy)
M (Move)
(Delete) PD (Print-Delete)
(Edit)
PK (Print-Keep)
R (Rename)
For Process Options C, M, or R:
DSNAME ===>
Member Name ===>
JOB CARD INFORMATION:
(Required for system printer)
----*----1----*----2----*----3----*----4----*----5----*----6----*----7--
//ASJUSR1Y JOB (ASJUSR1),'SUE',CLASS=A,MSGCLASS=Z
//*
//*
//*
Press ENTER to Process
or
Enter END Command to Terminate
The fields on the screen shown in Figure C-12 are:
Process Option
Any of the following process options can be specified:
B
Browse the session log, script, or document dataset.
C
Copy the session log, script, or document dataset to the partitioned dataset
named in the DSNAME field. The PDS member name must be entered in the
Member Name field.
D
Delete the session log, script, or document dataset without printing it.
E
Display the session log, script, or document dataset so you can edit it before
copying it to another dataset.
K
Keep the session log, script, or document dataset without printing it. The file
is saved as a sequential dataset by the same name.
M
Move the session log, script, or document dataset to the partitioned dataset
named in the DSNAME field. The PDS member name must be entered in the
Member Name field.
PD
Print and delete the session log, script, or document dataset.
PK
Print and keep the session log, script, or document dataset.
R
Rename a sequential dataset and enter its new name in the DSNAME field. No
member name is required because only a sequential dataset can be specified
for the Rename option.
SYSOUT Class
A default SYSOUT class can be entered for Xpediter/TSO datasets. If specified, it is
used when process option PD (print and delete) or PK (print and keep) is entered. The
SYSOUT class can be A-Z, 0-9, or *.
If the SYSOUT class is to be used to direct printing to the appropriate output device,
JOB CARD INFORMATION must also be specified.
C-14
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Local Printer ID
A default local printer ID can be specified for the Xpediter/TSO dataset. If specified, it
is used when process option PD (print and delete) or PK (print and keep) is selected.
The local printer ID is the name your installation assigned to a local IBM 328x
printer (for example, XEROX01, as shown in Figure C-12 on page C-13).
DSNAME
Required for process options C, M, and R. Enter the name of the partitioned dataset
into which the session log, script, or document dataset is to be copied, moved, or
renamed.
Member Name
Required for process options C and M. Enter the name of the PDS member.
JOB CARD INFORMATION
Required if SYSOUT Class is specified. Enter up to four default job statements to
submit a background job to print the session log, script, or document dataset when
the current debugging session ends.
DB2 System Name and DSNLOAD Libraries Screen
Establishing the connection to DB2 requires a DB2 system ID and access to the DB2
programs that reside in the DSNLOAD dataset that was created when DB2 was installed.
The DB2 system name can be defaulted, and the DSNLOAD dataset(s) can be placed in
the installation LPALIB or LINKLIST. The DB2 System Name and DSNLOAD screen shown
in Figure C-13 on page C-14 is used to define required or additional DB2 system IDs and
DSNLOAD datasets for access to DB2.
Access to multiple DB2 systems and multiple DSNLOAD datasets is controlled by the
entries on this screen. If your site defined a default DB2 system ID and the DB2
DSNLOAD dataset is permanently allocated when Xpediter/TSO is activated, then this
screen can be left blank.
Figure C-13. DSNLOAD Libraries Screen
Profile: DEFAULT ------ XPEDITER/TSO - DSNLOAD LIBRARIES -----------------------
COMMAND ===>
NAME
DSNLOAD DSNAME
(1) ===> D310 ===> 'DB2.V310X.DSNLOAD'
(2) ===> D220 ===> 'DB2.V220X.DSNLOAD'
(3) ===>
===>
(4) ===>
===>
(5) ===>
===>
(6) ===>
===>
(7) ===>
===>
(8) ===>
===>
Note: Changes made to this screen override installed defaults
Press ENTER to Process or Enter END Command to Terminate
The fields on the DSNLOAD Libraries screen are described below:
Specifying Setup Options
C-15
NAME
Defines DB2 system ID names that can be used at your site to connect to a DB2
system. DSNLOAD datasets can also be associated with the DB2 system IDs on this
screen. If you use more than one DB2 system, then each should be defined on this
screen.
For standard debugging sessions, specify a specific DB2 system ID to be used when
activating DB2. This value becomes the system parameter option for the DSN
command, and the associated DSNLOAD datasets are included in XTASKLIB.
For dialog debugging sessions, the DSNLOAD datasets are included in XTASKLIB, but
you must issue the DSN if it is required.
For IMS and BTS debugging sessions, the DSNLOAD datasets are allocated to DFSESL,
as well as XTASKLIB. IMS also connects through the IMS/DB2 interface module
DSNMTV01.
DSNLOAD DSNAME
Associates the DB2 system ID name with the DSNLOAD datasets. For each name, one
or more DSNLOAD datasets can be defined. The following example shows four
possible DB2 connections with various DSNLOAD dataset combinations:
(1)
(2)
(3)
(4)
(5)
===>
===>
===>
===>
===>
NAME
DSNX
DSNX
DSNY
DSNZ
===>
===>
===>
===>
===>
DSNLOAD DSNAME
'DSNX.LOADLIB'
'DSNX.RUNLIB'
'DSNZ.LOADLIB'
'DSNY.LOADLIB'
The DB2 system identified by DSNX has two DSNLOAD datasets allocated to
XTASKLIB.
The DB2 system identified by DSNZ has one DSNLOAD dataset allocated.
The system identified by DSNY does not have any DSNLOAD datasets allocated.
A DB2 test with no system specified is allocated on the DSNLOAD dataset.
PANEXEC Libraries Screen
The PANEXEC Libraries screen shown in Figure C-14 is used to enter the library names
and control card file datasets necessary to debug your application programs using
PANEXEC.
C-16
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure C-14. PANEXEC Libraries Screen
COMPUWARE INSTALL ----- XPEDITER/TSO - PANEXEC LIBRARIES ----------------------
COMMAND ===>
PANEXEC (Program Product) Load Library DSNAMEs (DDNAME PANESRL):
(1) ===>
(2) ===>
(3) ===>
(4) ===>
PANEXEC Control Card File DSNAMEs:
DDNAME ===> PECNTL
(1) ===>
(2) ===>
(3) ===>
(4) ===>
Note: Changes made to this screen override installed defaults
Press ENTER to process or enter END command to terminate
The fields on the PANEXEC Libraries screen are:
PANEXEC Load Library DSNAMEs
Enter the dataset name normally allocated to ddname PANESRL.
PANEXEC Control Card File DSNAMES
Enter the default ddname associated with your PANEXEC control cards. The default is
PECNTL.
If you normally direct your PECNTL (or site default PANEXEC control cards ddname)
to a dataset rather than to instream data, enter that dataset in the next field.
IMS Setup Menu
The menu that appears for option I (IMS) on the IMS Test Setup Menu is shown in Figure
C-15 on page C-17. The screens for these options are used to specify the datasets to be
allocated to the IMS ddnames. The nine screens can be selected individually or all
together as a complete sequence.
The following screens are required:
•
•
•
•
IMS processing types and parameters (option 1)
IMS authorized load libraries (option 2)
PSB and DBD libraries (option 3)
ACB libraries (option 4)
All these parameters are required to debug an IMS program.
The rest of the selections on the menu are optional.
The values specific to each of the screens should have been completed at installation
time. You may want to merely verify them, or in some cases, add to or override the
installation defaults. For example, you may want to change program parameters specific
to your application.
All the IMS setup screens are described in the following subsections.
Specifying Setup Options
C-17
Figure C-15. IMS Test Setup Menu Screen
Profile: C64 ------------- XPEDITER/TSO - IMS SETUP MENU -----------------------
OPTION ===>
1
PARMS
- IMS processing types and parameters
2
DFSRESLB - IMS authorized load libraries
3
IMS
- PSB and DBD libraries
4
IMSACB
- ACB libraries
5
PROCLIB
- IMS PROCLIB containing the preload list
6
IEFRDER
- IMS logging and recovery dataset
7
IMSMON
- IMS DB monitor dataset
8
DFSVSAMP - VSAM shared resource pool dataset
9
IMSERR
- IMS error dataset
A
ALL
- Display all of the above in succession
Press ENTER to process or enter END command to terminate
IMS Parameter Lists Screen
The IMS Parameter Lists screen shown in Figure C-16 lets you specify the valid program
types and their corresponding parameter lists.
Figure C-16. IMS Parameter Lists Screen
Profile: C64 -------- XPEDITER/TSO - IMS PARAMETER LISTS --------------------
COMMAND ===>
TYPE
PARM LIST
(1) ===> DLI ===> DLI,MODULE,PSB,8,0000,,0,,N,0,T,,,N
(2) ===> BMP ===> BMP,MODULE,PSB,,,N00000
(3) ===> DBB ===> DBB,MODULE,PSB,8,0000,,0,,N,0,T,,,N
(4) ===>
===>
(5) ===>
===>
(6) ===>
===>
(7) ===>
===>
(8) ===>
===>
Note: Changes made to this screen override installed defaults
Press ENTER to Process or Enter END Command to Terminate
The fields on the IMS Parameter Lists screen are:
TYPE
Enter the IMS program types supported at your site (DLI, DBB, BMP, etc.). Create a
separate line for each type and its corresponding PARM list.
PARM LIST
Enter the PARM list for the specified type. Each list contains the program type
followed by the keywords ,MODULE,PSB, and the rest of the parameters used at your
C-18
Xpediter/TSO and Xpediter/IMS PL/I User Guide
site. At execution time, the ,MODULE,PSB, string is replaced with the program name
and program specification block that the user enters on the test screen.
The supplied default parameter string(s) probably will not function correctly at your
site. If you are uncertain what parameter list to specify, consult one of the following
information sources:
–
–
–
–
One of your site’s typical DLI/BMP batch PROCs
Your system programmer
IBM’s IMS/VS System Programming Reference Manual
General information available through the HELP screens.
Note: Special characters (anything other than numerics, alphabetic characters, $, #,
or @) must be enclosed in quotation marks.
Using APARM Data from JCL
On the Xpediter/TSO environments IMS Test screen (2.3) shown in Figure B-8 on page
B-12, if the file specified in the File List/JCL Member field consists of JCL and its IMS
parameter contains APARM data, Xpediter will use that data for the test. Replacement
APARM data can be entered in the APARM position of the applicable parameter list on the
IMS Parameter List screen (Figure C-16 on page C-17). To prevent any APARM data,
including that in the JCL, from being sent to the program being tested, enter XPNULLXP
in the APARM position of the applicable parameter list.
IMS Load (DFSRESLB) Libraries Screen
The IMS DFSRESLB Libraries screen shown in Figure C-17 is used to allocate the dsnames
of the IMS authorized load libraries to the DFSRESLB ddname. The DFSRESLB dataset
contains all the system load modules that make up the IMS software, including both DL/I
and the data communications component.
Figure C-17. IMS DFSRESLB Libraries Screen
Profile: C64 -------- XPEDITER/TSO - DFSRESLB LIBRARIES --------------------
COMMAND ===>
IMS Authorized Load Library DSNAMEs (DDNAME DFSRESLB):
(1) ===> 'IMS610A.RESLIB'
(2) ===>
(3) ===>
(4) ===>
(5) ===>
(6) ===>
Note: Changes made to this screen override installed defaults
Press ENTER to Process or Enter END Command to Terminate
The field on the IMS DFSRESLB libraries screen is:
IMS Authorized Load Library DSNAMEs
Enter from one to six dsnames. Consult a batch IMS PROC at your site if you are not
sure which dsnames to enter.
Specifying Setup Options
C-19
PSB and DBD Libraries Screen
The PSB/DBD Libraries screen shown in Figure C-18 is used to list your IMS PSB and DBD
library dataset names. The PSBLIB contains your program specification blocks (PSBs). The
DBDLIB contains your data base definitions (DBDs). Both of these datasets are required
with DB or DB/DC systems. They can be used if a DL/I batch region is being executed.
Figure C-18. PSB/DBD Libraries Screen
Profile: C64 --------- XPEDITER/TSO - PSB/DBD LIBRARIES -------------------
COMMAND ===>
PSB/DBD Library DSNAMEs (DDNAME IMS):
(1) ===> 'FLGSGJ1.X70.IMS61.PSBLIB'
(2) ===> 'FLGSGJ1.X70.IMS61.DBDLIB'
(3) ===>
(4) ===>
(5) ===>
(6) ===>
(7) ===>
(8) ===>
(9) ===>
(10) ===>
(11) ===>
(12) ===>
Note: Changes made to this screen override installed defaults
Press ENTER to Process or Enter END Command to Terminate
The field on the PSB/DBD libraries screen is:
PSB/DBD Library DSNAMEs
Enter from zero to twelve dsnames. Consult a batch IMS PROC at your site if you are
unsure of the dsnames. If the application being debugged uses ACB libraries, the
DSNAME field can be left blank because the ACBLIB dataset stores the combined
DBDs and PSBs.
ACB Libraries Screen
The ACB Libraries screen shown in Figure C-19 on page C-20 is used to enter your ACB
library dataset names. When an IMS application program is executed, IMS must combine
the information in the DBD and PSB before the program can be executed. Your shop can
merge the DBD and PSB information in the ACBLIB, so that IMS will not have to do this
each time a program runs. The use of the ACBLIB dataset is optional for batch IMS
programs, but is required for MPP and BMP programs.
C-20
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure C-19. ACB Libraries Screen
Profile: C64 ---------- XPEDITER/TSO - ACB LIBRARIES --------------------
COMMAND ===>
ACB Library DSNAMEs (DDNAME IMSACB):
(1) ===> 'FLGSGJ1.X70.IMS61.ACBLIB'
(2) ===>
(3) ===>
(4) ===>
(5) ===>
(6) ===>
(7) ===>
(8) ===>
Note: Changes made to this screen override installed defaults
Press ENTER to Process or Enter END Command to Terminate
The field on the ACB libraries screen is:
ACB Library DSNAMEs
Enter from zero to eight dsnames. Consult a batch PROC at your site if you are
unsure of the dsnames. The DSNAME field can be left blank if the application being
debugged uses PSB and DBD libraries.
IMS Preload List Screen
The IMS Preload List screen shown in Figure C-20 on page C-21 lets you enter the
PROCLIB dataset name. Both IMS and BTS use the PROCLIB ddname to point to the
dataset where preload specifications are stored. The IMSVS.PROCLIB dataset stores all
IMS-generated cataloged procedures and jobs. DFSMPLxx is the IMSVS.PROCLIB member
that contains the preload list, which is a group of modules to be loaded before IMS loads
the user’s program.
A 2-character suffix from a parameter list is used to select the preload list to be executed.
For example, suppose you specify that the following DLI parameter list is to be used with
your program. (The DLI parameter list shown below would be displayed on your IMS
Parameter Lists screen.)
TYPE
PARM LIST
===> DLI ===> DLI,MODULE,PSB,12,0000,00,0,,N
Notice that the sixth parameter is a pair of zeros. This suffix is concatenated with
DFSMPLxx to define DFSMPL00 as the name of your preload list. Omit the suffix if no
preload list is needed.
Specifying Setup Options
C-21
Figure C-20. IMS Preload List Screen
Profile: C64 --------- XPEDITER/TSO - IMS PRELOAD LIST ---------------------
COMMAND ===>
Preload List Data Set (DDNAME PROCLIB):
DSNAME ===> 'SYS1.IMSVS.PROCLIB'
Note: Changes made to this screen override installed defaults
Press ENTER to Process or Enter END Command to Terminate
The field on the IMS Preload List screen is:
Preload List Data Set
Enter the name of the dataset containing preload lists, not the name of the dataset
where Xpediter/TSO or IMS PROCs are stored, unless the two are identical. Consult
an IMS batch PROC at your site if you are not sure which dsname to enter. If this
ddname is not required, leave the DSNAME field blank.
Logging and Recovery (IEFRDER) Dataset Screen
The IEFRDER Dataset screen shown in Figure C-21 is used to allocate a dataset to the
IEFRDER ddname. Supplying an IEFRDER dataset causes the IMS logging facility to be
invoked.
Figure C-21. IEFRDER Dataset Screen
Profile: C64 --------- XPEDITER/TSO - IEFRDER DATASET ---------------------
COMMAND ===>
Enter a DSNAME, DUMMY, TEMP, TERM, SYSOUT, or leave blank for no allocation.
DSNAME ===> DUMMY
DISP ===>
Storage Class ===>
Process Options for New Datasets:
Unit ===>
Before Allocation ===>
Volume ===>
Upon Deallocation ===>
Data Class ===>
Valid Process Options:
Space Units ===>
D (Delete) K (Keep) ? (Prompt)
Primary ===>
Secondary ===>
RECFM ===>
LRECL ===>
BLKSIZE ===>
Note: Changes made to this screen override installed defaults
Press ENTER to process or enter END command to terminate
C-22
Xpediter/TSO and Xpediter/IMS PL/I User Guide
The fields on the IEFRDER Dataset screen are:
DSNAME
Enter a qualified dsname (enclosed in quotes), DUMMY, TEMP, TERM, or SYSOUT
(JES dataset), or leave this field blank. If the dsname is entered without quotes, the
user ID (or other dsname high-level qualifier) is prefixed and quotes are added. If the
DSNAME field is left blank, the dataset is not allocated.
Consult a batch IMS PROC at your site if you are not sure which dsname to enter. If
the IEFRDER ddname is not required, you can leave the DSNAME field blank.
Actually, most sites allocate this ddname to DUMMY for debugging rather than
leaving it blank. This conforms to common batch and debugging message region
usage.
DISP
Valid values for the DISP field are:
S
Shared (SHR)
M
Modified (MOD)
O
Old
N
New
If you are allocating an existing dataset, you can specify a disposition of SHR, OLD,
or MOD. If you do not enter a value in the DISP field, a SHR disposition is assumed.
Datasets with a disposition of SHR can be concatenated.
If the DSNAME field contains a value of DUMMY, TEMP, TERM, or SYSOUT, leave the
DISP field blank.
Enter a disposition of NEW for a new or temporary dataset. If you are allocating a
new (DSNAME='qualified-dsname') or temporary file (DSNAME=TEMP), you must enter
values for all the fields below except Volume and Unit, which are optional for a NEW
or TEMP file.
If you specify a new dataset, it is allocated before your debugging session begins and
is deallocated immediately after your debugging session ends. The fields for the
Process Options for New Datasets let you specify how the new dataset is to be
allocated and deallocated.
For more information about NEW, OLD, MOD, or SHR dataset dispositions, refer to
“Types of Files That Can Be Allocated” on page A-17.
Storage Class
Enter the storage class name defined by your site that contains the dataset attributes
related to the storage occupied by the dataset. A storage class is displayed only when
SMS (Storage Management Subsystem) is being used.
Unit
If your site requires it, you must supply a value for the Unit field. Otherwise, leave
blank for the default value.
Volume
If your site requires it, you must supply a value for the Volume field. Also enter the
volume if you are specifying an uncataloged dataset. Otherwise, leave blank for the
default value.
Data Class
Enter the data class name defined by your site that contains the dataset attributes
related to the allocation of the dataset. A data class is displayed only when SMS
(Storage Management Subsystem) is being used.
Specifying Setup Options
C-23
Space Units
Valid values are TRK, CYL, or a block size (1-32760).
Primary
Valid values are 0-32760.
Secondary
Valid values are 0-32760.
RECFM
Valid values are FBM, FBA, FB, F, VBM, VBA, VBS, VS, VB, V, and U.
LRECL
Valid values are 0-32760. Omit this field if RECFM is U for undefined length records.
BLKSIZE
Valid values are 0-32760. If you are allocating a DUMMY or SYSOUT file
(DSNAME=DUMMY or DSNAME=SYSOUT), you must enter the block size.
Before Allocation
Valid process options are:
D
Automatically delete the old file, if one exists, before a new dataset is
allocated.
K
Keep the old dataset.
?
Display the Data Set Disposition screen each time a dataset is to be allocated,
so that you can decide whether to delete or keep the old one.
Upon Deallocation
Valid process options are:
D
Automatically delete the new file after every debugging session.
K
Always keep the new dataset.
?
Display the Data Set Disposition screen each time a dataset is to be
deallocated, so that you can decide whether to delete or keep the new one.
IMS Monitor (IMSMON) Dataset Screen
The IMSMON Dataset screen shown in Figure C-22 on page C-24 is used to allocate the
DB and DC monitor datasets to the IMSMON ddname. IMS run-time activities, especially
database calls, are recorded in the IMS monitor file. This dataset can be used as an input
for report programs that list, summarize, or analyze IMS activities.
C-24
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure C-22. IMSMON Dataset Screen
Profile: C64 ---------- XPEDITER/TSO - IMSMON DATASET ---------------------
COMMAND ===>
Enter a DSNAME, DUMMY, TEMP, TERM, SYSOUT, or leave blank for no allocation.
DSNAME ===> DUMMY
DISP ===>
Storage Class ===>
Process Options for New Datasets:
Unit ===>
Before Allocation ===>
Volume ===>
Upon Deallocation ===>
Data Class ===>
Valid Process Options:
Space Units ===>
D (Delete) K (Keep) ? (Prompt)
Primary ===>
Secondary ===>
RECFM ===>
LRECL ===> n
BLKSIZE ===>
Note: Changes made to this screen override installed defaults
Press ENTER to process or enter END command to terminate
The valid values for the fields on this screen are the same as for the IEFRDER screen. Refer
to “Logging and Recovery (IEFRDER) Dataset Screen” on page C-21 for descriptions of
these fields.
VSAM Buffer Pool Screen
The VSAM Buffer Pool screen shown in Figure C-23 is used to enter the name of the
dataset that contains the buffer length and the number of buffers to be used for a
program.
Figure C-23. VSAM Buffer Pool Screen
Profile: C64 -------- XPEDITER/TSO - VSAM BUFFER POOL ---------------------
COMMAND ===>
VSAM Buffer Pool Specification Data Set (DDNAME DFSVSAMP):
DSNAME ===> 'SYS1.IMSVS.PROCLIB(DFSVSAMP)'
Note: Changes made to this screen override installed defaults
Press ENTER to Process or Enter END Command to Terminate
The field on the VSAM Buffer Pool screen is:
Specifying Setup Options
C-25
VSAM Buffer Pool Specification Data Set
The DFSVSAMP dataset contains the buffer length and the number of buffers to be
used for a program. If not stated, IMS uses a default buffer size. If the DFSVSAMP
dataset is a PDS, enter its member name.
If VSAM databases are used, this dataset must be allocated. Since BTS can attach IMS
more than once, define the DFSVSAMP file as a DASD dataset so it can be reread. The
DFSVSAMP file can also be used for ISAM/OSAM databases.
Consult a batch PROC at your site if you are unsure of the dsname. If this ddname is
not required, leave the DSNAME field blank.
IMS Error (IMSERR) Dataset Screen
The IMSERR Dataset screen shown in Figure C-24 is used to allocate datasets to the
IMSERR ddname. An IMSERR dataset contains the formatted dump of the IMS/VS GSAM
control blocks when an error occurs, or when a DUMP or SNAP call is issued to a GSAM
PCB.
Figure C-24. IMSERR Dataset Screen
Profile: C64 ---------- XPEDITER/TSO - IMSERR DATASET ---------------------
COMMAND ===>
Enter a DSNAME, DUMMY, TEMP, TERM, SYSOUT, or leave blank for no allocation.
DSNAME ===> SYSOUT=*
DISP ===>
Storage Class ===>
Process Options for New Datasets:
Unit ===>
Before Allocation ===>
Volume ===>
Upon Deallocation ===>
Data Class ===>
Valid Process Options:
Space Units ===>
D (Delete) K (Keep) ? (Prompt)
Primary ===>
Secondary ===>
RECFM ===> FBA
LRECL ===> 133
BLKSIZE ===> 133
Note: Changes made to this screen override installed defaults
Press ENTER to process or enter END command to terminate
The valid values for the fields on this screen are the same as for the IEFRDER screen. Refer
to “Logging and Recovery (IEFRDER) Dataset Screen” on page C-21 for descriptions of
these fields.
Note: Consult a batch IMS PROC at your site if you are unsure of the dsname. Most sites
allocate this ddname to DUMMY for debugging.
BTS Setup Menu
The menu that appears for option B (BTS) on the BTS Test Setup Menu is shown in Figure
C-25 on page C-26. The BTS Setup Menu is used to select screens where you can list the
datasets to be allocated to BTS ddnames. The values specific to each of the option screens
should have been completed at installation time. You may want to verify them, or in
some cases, add to or override the installation defaults. The nine screens can be selected
individually or all together as a complete sequence.
The following parameters are required to debug a BTS program:
C-26
Xpediter/TSO and Xpediter/IMS PL/I User Guide
1. BTS processing types and parameters (option 1)
2. BTS load libraries (option 2)
3. BTSIN dataset, which is dynamically allocated by the application programmer during
the debugging session
All of the BTS setup screens are described in the following subsections.
Figure C-25. BTS Test Setup Screen
Profile: C64 ---------- XPEDITER/TSO - BTS SETUP MENU ---------------------
OPTION ===>
1
PARMS
- BTS processing types and parameters
2
BTSLOAD
- BTS load libraries
3
FORMAT
- MFS libraries
4
BTSOUT
- BTS output listing file
5
BTSPUNCH - BTS regression test input file
6
BTSDEBUG - BTS debug output file
7
QIOPCB
- Work file for output message queue (IOPCB)
8
QALTPCB
- Work file for output message queue (ALTPCB)
9
QALTRAN
- Work file for alternate PCB output
A
ALL
- Display all of the above in succession
Press ENTER to process or enter END command to terminate
BTS Parameter Lists Screen
The BTS Parameter Lists screen shown in Figure C-26 is used to specify the valid program
types and their corresponding PARM lists.
Figure C-26. BTS Parameter Lists Screen
Profile: C64 -------- XPEDITER/TSO - BTS PARAMETER LISTS --------------------
COMMAND ===>
TYPE
PARM LIST
(1) ===> DLI ===> DLI,7,0000,,0,,N,0,T,,,N
(2) ===> DBB ===> DBB,7,0000,,0,,N,0,T,,,N
(3) ===> BMP ===> BMP,,,N00000,,,,,,,,,IVP
(4) ===>
===>
(5) ===>
===>
(6) ===>
===>
(7) ===>
===>
(8) ===>
===>
Note: Changes made to this screen override installed defaults
Press ENTER to Process or Enter END Command to Terminate
The fields on the BTS Parameter Lists screen are:
Specifying Setup Options
C-27
TYPE
Enter the BTS program types supported at your site (DLI, DBB, BMP, etc.). Create a
separate line for each type and its corresponding PARM list.
PARM LIST
Enter the parameter list. Each list begins with the program type followed by the rest
of the parameters used at your site.
Note: Special characters (anything other than numerics, alphabetic characters, $, #,
or @) must be enclosed in quotation marks.
BTS Load Libraries Screen
The BTS Load Libraries screen shown in Figure C-27 is used to enter the dataset names of
your BTS authorized load libraries. Do not enter dsnames for your application programs
that are compiled to run under BTS. The BTS load libraries are system datasets that
contain all the load modules that make up the BTS software.
Figure C-27. BTS Load Libraries Screen
Profile: C64 -------- XPEDITER/TSO - BTS LOAD LIBRARIES -------------------
COMMAND ===>
BTS (Program Product) Load Library DSNAMEs:
(1) ===> 'SYS2.BTS3.V1R2M0.BTSLIB'
(2) ===>
(3) ===>
(4) ===>
(5) ===>
(6) ===>
Note: Changes made to this screen override installed defaults
Press ENTER to Process or Enter END Command to Terminate
The field on the BTS Load Libraries screen is:
BTS (Program Product) Load Library DSNAMEs
Enter from one to six dsnames. Consult a batch BTS PROC at your site if you are not
sure which dsnames to enter.
MFS Libraries (Format) Screen
The MFS Libraries screen shown in Figure C-28 on page C-28 is used to enter your format
library dataset names. The message format service helps to format messages that are
transmitted both to and from the display screens. These message definitions are stored in
the format library.
C-28
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure C-28. MFS Libraries Screen
Profile: C64 ----------- XPEDITER/TSO - MFS LIBRARIES ----------------------
COMMAND ===>
Message Format Services Library DSNAMEs (DDNAME FORMAT):
(1) ===> 'IMS610A.TFORMAT'
(2) ===> 'IMS610A.FORMAT'
(3) ===>
(4) ===>
(5) ===>
(6) ===>
(7) ===>
(8) ===>
(9) ===>
(10) ===>
(11) ===>
(12) ===>
Note: Changes made to this screen override installed defaults
Press ENTER to Process or Enter END Command to Terminate
The field on the MFS Libraries screen is:
Message Format Services Library DSNAMEs
Enter from one to twelve dsnames. Consult a batch BTS PROC at your site if you are
unsure which dsnames to enter. These DSNAME fields can be left blank if the
application to be debugged does not use MFS.
BTS Output (BTSOUT Dataset) Screen
The BTSOUT Dataset screen shown in Figure C-29 is used to allocate a sequential dataset
to the BTSOUT ddname. The BTS input and output screen images and output messages
are written to this BTS output listing. You can retain a copy of the BTSOUT dataset or, if
it was allocated with SYSOUT=A, you can print a hard copy.
Figure C-29. BTSOUT Dataset Screen
Profile: C64 ---------- XPEDITER/TSO - BTSOUT DATASET ----------------------
COMMAND ===>
Enter a DSNAME, DUMMY, TEMP, TERM, SYSOUT, or leave blank for no allocation
DSNAME ===> BTSOUT.DATA
DISP ===> NEW
Storage Class ===>
Process Options for New Datasets:
Unit ===>
Before Allocation ===>
Volume ===>
Upon Deallocation ===
Data Class ===>
Valid Process Options:
Space Units ===> TRK
D (Delete) K (Keep) ? (Prompt)
Primary ===> 2
Secondary ===> 2
RECFM ===> FBA
LRECL ===> 133
BLKSIZE ===> 6118
Note: Changes made to this screen override installed defaults
Press ENTER to process or enter END command to terminate
Specifying Setup Options
C-29
The fields on the BTSOUT Dataset screen are:
DSNAME
Enter a qualified dsname (enclosed in quotes), DUMMY, TEMP, TERM, or SYSOUT
(JES dataset), or leave this field blank. If the dsname is entered without quotes, the
user ID (or other dsname high-level qualifier) is prefixed and quotes are added. If the
DSNAME field is left blank, the dataset is not allocated.
Consult a batch BTS PROC at your site if you are not sure which dsname to enter. If
the BTSOUT ddname is not to be allocated, leave the DSNAME field blank.
DISP
Valid values for the DISP field are:
S
Shared (SHR)
M
Modified (MOD)
O
Old
N
New
If you are allocating an existing dataset, you can specify a disposition of SHR, OLD,
or MOD. If you do not enter a value in the DISP field, a SHR disposition is assumed.
Datasets with a disposition of SHR can be concatenated.
If the DSNAME field contains a value of DUMMY, TEMP, TERM, or SYSOUT, leave the
DISP field blank.
Enter a disposition of NEW for a new or temporary dataset. If you are allocating a
new (DSNAME='qualified-dsname') or temporary file (DSNAME=TEMP), you must enter
values for all the fields below except Volume and Unit, which are optional for a new
or temporary file.
If you specify a new dataset, it is allocated before your debugging session begins and
is deallocated immediately after your debugging session ends. The fields for the
Process Options for New Datasets let you specify how the new dataset is to be
allocated and deallocated.
For more information about NEW, OLD, MOD, or SHR dataset dispositions, refer to
“Types of Files That Can Be Allocated” on page A-17.
Storage Class
Enter the storage class name defined by your site that contains the dataset attributes
related to the storage occupied by the dataset. A storage class is displayed only when
SMS (Storage Management Subsystem) is being used.
Unit
If your site requires it, you must supply a value for the Unit field. Otherwise, leave
blank for the default value.
Volume
If your site requires it, you must supply a value for the Volume field. Also enter the
volume if you are specifying an uncataloged dataset. Otherwise, leave blank for the
default value.
Data Class
Enter the data class name defined by your site that contains the dataset attributes
related to the allocation of the dataset. A data class is displayed only when SMS
(Storage Management Subsystem) is being used.
Space Units
Valid values are TRK, CYL, or a block size (1-32760).
C-30
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Primary
Valid values are 0-32760.
Secondary
Valid values are 0-32760.
RECFM
Valid values are FBM, FBA, FB, F, VBM, VBA, VBS, VS, VB, V, and U.
LRECL
Valid values are 0-32760 (omit if RECFM is U for undefined length records).
BLKSIZE
Valid values are 0-32760.
If you are allocating a DUMMY or SYSOUT file (DSNAME=DUMMY or
DSNAME=SYSOUT), you must enter the block size.
Before Allocation
Valid process options are:
D
Automatically delete the old file, if one exists, before a new dataset is
allocated.
K
Always keep the old dataset.
?
Display the Data Set Disposition screen each time a dataset is to be allocated,
so that you can decide whether to delete or keep the old dataset.
Upon Deallocation
Valid process options are:
D
Automatically delete the new file after every debugging session.
K
Always keep the new dataset.
?
Display the Data Set Disposition screen each time a dataset is to be
deallocated, so that you can decide whether to delete or keep the new dataset.
BTS Punch Output (BTSPUNCH Dataset) Screen
The BTSPUNCH Dataset screen shown in Figure C-30 on page C-31 is used to allocate a
sequential dataset to the BTSPUNCH ddname. If executing as a TSO task, BTS attempts to
open a sequential output dataset named BTSPUNCH. This dataset is used to create
regression debugging input data. It contains everything that BTS receives as input.
Specifying Setup Options
C-31
Figure C-30. BTSPUNCH Dataset Screen
Profile: C64 --------- XPEDITER/TSO - BTSPUNCH DATASET ----------------------
COMMAND ===>
Enter a DSNAME, DUMMY, TEMP, TERM, SYSOUT, or leave blank for no allocation
DSNAME ===> DUMMY
DISP ===>
Storage Class ===>
Process Options for New Datasets:
Unit ===>
Before Allocation ===>
Volume ===>
Upon Deallocation ===>
Data Class ===>
Valid Process Options:
Space Units ===>
D (Delete) K (Keep) ? (Prompt)
Primary ===>
Secondary ===>
RECFM ===>
LRECL ===>
BLKSIZE ===>
Note: Changes made to this screen override installed defaults
Press ENTER to process or enter END command to terminate
The fields on the BTSPUNCH Dataset screen are:
DSNAME
Enter a qualified dsname (enclosed in quotes), DUMMY, TEMP, TERM, or SYSOUT
(JES dataset), or leave this field blank. If the dsname is entered without quotes, the
user ID (or other dsname high-level qualifier) is prefixed and quotes are added. If the
DSNAME field is left blank, the dataset is not allocated.
Consult a batch BTS PROC at your site if you are not sure which dsname to enter. If
you decide not to use this dataset, leave the DSNAME field blank. Most sites allocate
this ddname to DUMMY for debugging rather than leaving it blank. This conforms to
common batch and debugging message region usage.
The valid values for the remaining fields on this screen are the same as those on the
BTSOUT Dataset screen. Refer to “BTS Output (BTSOUT Dataset) Screen” on page C-28 for
descriptions of the fields.
BTS Debug (BTSDEBUG Dataset) Screen
The BTSDEBUG Dataset screen shown in Figure C-31 on page C-32 is used to allocate a
sequential dataset to the BTSDEBUG ddname. The BTS Debug function can be activated
by allocating a dataset to the BTSDEBUG ddname. The BTSDEBUG dataset contains SNAP
dumps of the Trace Table and various control blocks taken at critical points during BTS
execution.
C-32
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure C-31. BTSDEBUG Dataset Screen
Profile: C64 --------- XPEDITER/TSO - BTSDEBUG DATASET ----------------------
COMMAND ===>
Enter a DSNAME, TEMP, TERM, SYSOUT, or leave blank for no allocation
DSNAME ===> TEMP
DISP ===>
Storage Class ===>
Process Options for New Datasets:
Unit ===>
Before Allocation ===>
Volume ===>
Upon Deallocation ===>
Data Class ===>
Valid Process Options:
Space Units ===> TRK
D (Delete) K (Keep) ? (Prompt)
Primary ===> 2
Secondary ===> 2
RECFM ===>
LRECL ===>
BLKSIZE ===>
Note: Changes made to this screen override installed defaults
Press ENTER to process or enter END command to terminate
The fields on the BTSDEBUG Dataset screen are:
DSNAME
Enter a qualified dsname (enclosed in quotes), TEMP, TERM, or SYSOUT (JES dataset),
or leave this field blank. If the dsname is entered without quotes, the user ID (or
other dsname high-level qualifier) is prefixed and quotes are added. If the DSNAME
field is left blank, the dataset is not allocated.
Note:
For performance reasons, IBM strongly recommends that you do not allocate
BTSDEBUG to DUMMY.
DISP
Valid values for the DISP field are:
N
New
O
Old
M
Modified (MOD)
S
Shared (SHR)
If TERM or SYSOUT was entered in the DSNAME field, you do not have to supply a
value for the DISP field. If you are allocating a SYSOUT file (DSNAME=SYSOUT),
enter the block size in the BLKSIZE field.
Datasets with a disposition of SHR can be concatenated.
Enter a disposition of NEW for a new or temporary dataset. If you are allocating a
new (DSNAME='qualified-dsname') or temporary file (DSNAME=TEMP), you must
enter values for all the remaining fields except Volume and Unit, which are optional
for a new or temporary file. If you specify a new dataset, it is allocated before your
debugging session begins and is deallocated immediately after your debugging
session ends. The fields for the Process Options for New Datasets let you specify how
the new dataset is to be allocated and deallocated.
Specifying Setup Options
C-33
The valid values for the remaining fields on this screen are the same as those on the
BTSOUT Dataset screen. Refer to “BTS Output (BTSOUT Dataset) Screen” on page C-28 for
descriptions of the fields.
BTS Work File (QIOPCB Dataset) Screen
The BTS Work File screen shown in Figure C-32 is used to allocate a dataset to the
QIOPCB ddname. The QIOPCB dataset is used for INSERT calls against IOPCBs.
Figure C-32. QIOPCB (Work File) Dataset Screen
Profile: C64 ----------- XPEDITER/TSO - QIOPCB DATASET ----------------------
COMMAND ===>
Enter a DSNAME, DUMMY, TEMP, TERM, SYSOUT, or leave blank for no allocation
DSNAME ===> TEMP
DISP ===>
Storage Class ===>
Process Options for New Datasets:
Unit ===> VIO
Before Allocation ===>
Volume ===>
Upon Deallocation ===>
Data Class ===>
Valid Process Options:
Space Units ===> TRK
D (Delete) K (Keep) ? (Prompt)
Primary ===> 2
Secondary ===> 2
RECFM ===> VBS
LRECL ===> 1024
BLKSIZE ===> 3072
Note: Changes made to this screen override installed defaults
Press ENTER to process or enter END command to terminate
The fields on the QIOPCB Dataset screen are:
DSNAME
Enter a qualified dsname (enclosed in quotes), DUMMY, TEMP, TERM, or SYSOUT
(JES dataset), or leave this field blank. If the dsname is entered without quotes, the
user ID (or other dsname high-level qualifier) is prefixed and quotes are added. If the
DSNAME field is left blank, the dataset is not allocated.
Consult a batch BTS PROC at your site if you are not sure which dsname to enter. If
the QIOPCB ddname is not required, you can leave the DSNAME field blank.
Most sites allocate this ddname to TEMP for debugging. Therefore, since this is a
NEW dataset, the DCB attributes must be entered. The LRECL and BLKSIZE should
match the largest used by any application.
Note:
The pre-filled defaults for LRECL and BLKSIZE are rarely large enough for
actual application databases and transactions. Therefore, carefully check
your output (and application usage) before specifying them.
The valid values for the remaining fields on this screen are the same as those on the
BTSOUT Dataset screen. Refer to “BTS Output (BTSOUT Dataset) Screen” on page C-28 for
descriptions of the fields.
BTS Work File (QALTPCB Dataset) Screen
The QALTPCB Dataset screen shown in Figure C-33 on page C-34 is used to allocate a
dataset to the QALTPCB ddname. The QALTPCB dataset is used for GET-UNIQUE or
INSERT calls against alternate PCBs.
C-34
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure C-33. QALTPCB Dataset Screen
Profile: C64 ---------- XPEDITER/TSO - QALTPCB DATASET ----------------------
COMMAND ===>
Enter a DSNAME, DUMMY, TEMP, TERM, SYSOUT, or leave blank for no allocation
DSNAME ===> TEMP
DISP ===>
Storage Class ===>
Process Options for New Datasets:
Unit ===> VIO
Before Allocation ===>
Volume ===>
Upon Deallocation ===>
Data Class ===>
Valid Process Options:
Space Units ===> TRK
D (Delete) K (Keep) ? (Prompt)
Primary ===> 2
Secondary ===> 2
RECFM ===> VBS
LRECL ===> 1024
BLKSIZE ===> 3072
Note: Changes made to this screen override installed defaults
Press ENTER to process or enter END command to terminate
The fields on the QALTPCB Dataset screen are:
DSNAME
Enter a qualified dsname (enclosed in quotes), DUMMY, TEMP, TERM, or SYSOUT
(JES dataset), or leave this field blank. If the dsname is entered without quotes, the
user ID (or other dsname high-level qualifier) is prefixed and quotes are added. If the
DSNAME field is left blank, the dataset is not allocated.
Consult a batch BTS PROC at your site if you are not sure which dsname to enter. If
you do not plan to use the QALTPCB dataset, you can leave the DSNAME field blank.
Most sites allocate this ddname to TEMP for debugging. Therefore, since this is a new
dataset, the DCB attributes must be entered. The LRECL and BLKSIZE should match
the largest used by any application.
Note:
The pre-filled defaults for LRECL and BLKSIZE are rarely large enough for
actual application databases and transactions. Therefore, carefully check
your output (and application usage) before specifying them.
The valid values for the remaining fields on this screen are the same as those on the
BTSOUT Dataset screen. Refer to “BTS Output (BTSOUT Dataset) Screen” on page C-28 for
descriptions of the fields.
BTS Work File (QALTRAN Dataset) Screen
The QALTRAN Dataset screen shown in Figure C-34 on page C-35 is used to allocate a
dataset to the QALTRAN ddname. The QALTRAN dataset is a work file for alternate PCB
output for a 3270 display screen or a 3270 printer.
Specifying Setup Options
C-35
Figure C-34. QALTRAN Dataset Screen
Profile: C64 ---------- XPEDITER/TSO - QALTRAN DATASET ---------------------
COMMAND ===>
Enter a DSNAME, DUMMY, TEMP, TERM, SYSOUT, or leave blank for no allocation
DSNAME ===> TEMP
DISP ===>
Storage Class ===>
Process Options for New Datasets:
Unit ===> VIO
Before Allocation ===>
Volume ===>
Upon Deallocation ===>
Data Class ===>
Valid Process Options:
Space Units ===> TRK
D (Delete) K (Keep) ? (Prompt)
Primary ===> 2
Secondary ===> 2
RECFM ===>
LRECL ===>
BLKSIZE ===> 1024
Note: Changes made to this screen override installed defaults
Press ENTER to process or enter END command to terminate
The fields on the QALTRAN Dataset screen are:
DSNAME
Enter a qualified dsname (enclosed in quotes), DUMMY, TEMP, TERM, or SYSOUT
(JES dataset), or leave this field blank. If the dsname is entered without quotes, the
user ID (or other dsname high-level qualifier) is prefixed and quotes are added. If the
DSNAME field is left blank, the dataset is not allocated.
Consult a batch BTS PROC at your site if you are not sure which dsname to enter. If
the QALTRAN ddname is not required, leave the DSNAME field blank.
Note:
The pre-filled defaults for LRECL and BLKSIZE are rarely large enough for
actual application databases and transactions. Therefore, carefully check
your output (and application usage) before specifying them.
The valid values for the remaining fields on this screen are the same as those on the
BTSOUT Dataset screen. Refer to “BTS Output (BTSOUT Dataset) Screen” on page C-28 for
descriptions of the fields.
Hogan Setup Menu
The menu that appears for option H (HOGAN) on the Hogan Setup Menu is shown in
Figure C-35 on page C-36. The Hogan Setup Menu is used to select screens where you can
list the datasets to be allocated to Hogan ddnames. The four screens can be selected
individually or all together as a complete sequence. The screens for these options are
described in the following subsections.
C-36
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure C-35. Hogan Setup Menu
Profile: DEFAULT
OPTION ===>
1
2
3
4
A
Press
------- XPEDITER/TSO - HOGAN SETUP MENU -----------------------
MONITOR
PRINT
SNAPDD
SYSPRINT
-
Hogan
Hogan
Hogan
Hogan
ALL
-
Display all of the above in succession
ENTER to process
activity log dataset
report file dataset
SNAP dump dataset
formatted dump dataset
or
enter END command to terminate
Hogan Activity Log (Monitor Dataset) Screen
Data related to PEM calls is recorded in the Hogan monitor file. This file can be used as
input to Hogan report programs that list, summarize, or analyze PEM activities. If it is
not required, leave the DSNAME field blank. The Hogan Monitor Dataset screen is shown
in Figure C-36.
If required, the Hogan monitor file is usually allocated as a variable block sequential file
(VB). If you are using this file for debugging and expect an abend, an LRECL of 55 and a
BLKSIZE of 59 are recommended to limit the loss of data in buffers. If an abend is not
anticipated, then a larger block size is more efficient.
Figure C-36. Hogan Monitor Dataset Screen
Profile: DEFAULT ----- XPEDITER/TSO - HOGAN MONITOR DATASET --------------------
COMMAND ===>
Enter a DSNAME, DUMMY, TEMP, TERM, SYSOUT, or leave blank for no allocation.
DSNAME ===>
DISP ===>
Storage Class ===>
Process Options for New Datasets:
Unit ===> SYSDA
Before Allocation ===>
Volume ===>
Upon Deallocation ===>
Data Class ===>
Valid Process Options:
Space Units ===> TRK
D (Delete) K (Keep) ? (Prompt)
Primary ===> 2
Secondary ===> 2
RECFM ===> V85
LRECL ===> 55
BLKSIZE ===> 59
Note: Changes made to this screen override installed defaults
Press ENTER to process or enter END command to terminate
The fields on the Hogan Monitor Dataset screen are:
Specifying Setup Options
C-37
DSNAME
If it is not required, leave the DSNAME field blank.
If a dsname is required, enter a qualified dsname (enclosed in quotes), DUMMY,
TEMP, TERM, or SYSOUT (JES dataset), or leave this field blank. If the dsname is
entered without quotes, the user ID (or other dsname high-level qualifier) is prefixed
and quotes are added. If the DSNAME field is left blank, the dataset is not allocated.
DISP
Valid values for the DISP field are:
S
Shared (SHR)
M
Modified (MOD)
O
Old
N
New
If you are allocating an existing dataset, you can specify a disposition of SHR, OLD,
or MOD. If you do not enter a value in the DISP field, a SHR disposition is assumed.
Datasets with a disposition of SHR can be concatenated.
If the DSNAME field contains a value of DUMMY, TEMP, TERM, or SYSOUT, leave the
DISP field blank.
Enter a disposition of NEW for a new or temporary dataset. If you are allocating a
new (DSNAME=’qualified-dsname’) or temporary file (DSNAME=TEMP), you must
enter values for all the fields below except Volume and Unit, which are optional for a
new or temporary file.
If you specify a new dataset, it is allocated before your debugging session begins and
deallocated immediately after your debugging session ends. The fields for the Process
Options for New Datasets let you specify how the new dataset is to be allocated and
deallocated.
For more information about NEW, OLD, MOD, or SHR dataset dispositions, refer to
“Types of Files That Can Be Allocated” on page A-17.
Storage Class
Enter the storage class name defined by your site that contains the dataset attributes
related to the storage occupied by the dataset. A storage class is displayed only when
SMS (Storage Management Subsystem) is being used.
Unit
If your site requires it, you must supply a value for the Unit field. Otherwise, leave
blank for the default value.
Volume
If your site requires it, you must supply a value for the Volume field. Also enter the
volume if you are specifying an uncataloged dataset. Otherwise, leave blank for the
default value.
Data Class
Enter the data class name defined by your site that contains the dataset attributes
related to the allocation of the dataset. A data class is displayed only when SMS
(Storage Management Subsystem) is being used.
Space Units
Valid values are TRK, CYL, or a block size (1-32760).
C-38
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Primary
Valid values are 0-32760.
Secondary
Valid values are 0-32760.
RECFM
If required, the Hogan monitor file is usually allocated as a variable block sequential
file (VB).
LRECL
If you are using this file for debugging and expect an abend, an LRECL of 55 is
recommended to limit the loss of data in buffers.
BLKSIZE
If you are using this file for debugging and expect an abend, a block size of 59 is
recommended to limit the loss of data in buffers. If an abend is not anticipated, then
a larger block size is more efficient.
If you are allocating a DUMMY or SYSOUT file (DSNAME=DUMMY or
DSNAME=SYSOUT), you must enter the block size.
Before Allocation
Valid process options are:
D
Automatically delete the old file, if one exists, before a new dataset is
allocated.
K
Always keep the old dataset.
?
Display the Data Set Disposition screen each time a dataset is to be allocated,
so that you can decide whether to delete or keep the old dataset.
Upon Deallocation
Valid process options are:
D
Automatically delete the new file after every debugging session.
K
Always keep the new dataset.
?
Display the Data Set Disposition screen each time a dataset is to be
deallocated, so that you can decide whether to delete or keep the new dataset.
Hogan Report File (Print Dataset) Screen
The Hogan print file is used frequently by Hogan programs to store reports or other
output from application programs. The Hogan Print Dataset screen is shown in Figure C37 on page C-39.
Specifying Setup Options
C-39
Figure C-37. Hogan Print Dataset Screen
Profile: DEFAULT ------ XPEDITER/TSO - HOGAN PRINT DATASET ---------------------
COMMAND ===>
Enter a DSNAME, DUMMY, TEMP, TERM, SYSOUT, or leave blank for no allocation.
DSNAME ===> PRINT.LIST
DISP ===> NEW
Storage Class ===>
Process Options for New Datasets:
Unit ===>
Before Allocation ===>
Volume ===>
Upon Deallocation ===>
Data Class ===>
Valid Process Options:
Space Units ===> TRK
D (Delete) K (Keep) ? (Prompt)
Primary ===> 10
Secondary ===> 10
RECFM ===> FBA
LRECL ===> 133
BLKSIZE ===> 6118
Note: Changes made to this screen override installed defaults
Press ENTER to process or enter END command to terminate
If needed, this Hogan file is usually allocated with a RECFM of FBA, LRECL of 133, and
BLKSIZE of 6118.
Consult a batch Hogan PROC at your site if you are unsure of the dsname or other
parameters. If the PRINT ddname is not needed, leave the DSNAME field blank.
The fields on this screen are similar to the Monitor screen. Refer to the “Hogan Activity
Log (Monitor Dataset) Screen” on page C-36 for a description of these fields.
Hogan SNAP Dump (SNAPDD Dataset) Screen
The Hogan SNAPDD file is used by Hogan to store SNAP dumps. Unlike a SYSUDUMP, a
SNAP dump is not usually a printout of the entire region. A SNAP dump provides a
“snapshot” of the particular storage pool you want to see, as specified by your Hogan
dump options. The Hogan SNAPDD Dataset screen is shown in Figure C-38.
Figure C-38. Hogan SNAPDD Dataset Screen
Profile: DEFAULT ------ XPEDITER/TSO - HOGAN SNAPDD DATASET --------------------
COMMAND ===>
Enter a DSNAME, DUMMY, TEMP, TERM, SYSOUT, or leave blank for no allocation.
DSNAME ===> DUMMY
DISP ===>
Storage Class ===>
Process Options for New Datasets:
Unit ===>
Before Allocation ===>
Volume ===>
Upon Deallocation ===>
Data Class ===>
Valid Process Options:
Space Units ===>
D (Delete) K (Keep) ? (Prompt)
Primary ===>
Secondary ===>
RECFM ===> FBA
LRECL ===> 133
BLKSIZE ===> 6118
Note: Changes made to this screen override installed defaults
Press ENTER to process or enter END command to terminate
C-40
Xpediter/TSO and Xpediter/IMS PL/I User Guide
The recommended DCB parameters for the SNAPDD dataset are RECFM=FBA,
BLKSIZE=6118, and LRECL=133.
Consult a batch Hogan PROC at your site if you are unsure of the dsname. If a SNAPDD
file is not required, leave the DSNAME field blank.
The fields on this screen are similar to the Monitor screen. Refer to the “Hogan Activity
Log (Monitor Dataset) Screen” on page C-36 for a description of these fields.
Hogan Formatted Dump (SYSPRINT Dataset) Screen
The Hogan SYSPRINT file is used by Hogan to store PEM formatted dumps. Before
running a transaction, set up your Hogan dump options to print the contents of certain
control blocks or areas in main memory when an abend occurs. The Hogan SYSPRINT
Dataset screen is shown in Figure C-39.
Figure C-39. Hogan SYSPRINT Dataset Screen
Profile: DEFAULT ---- XPEDITER/TSO - HOGAN SYSPRINT DATASET --------------------
COMMAND ===>
Enter a DSNAME, DUMMY, TEMP, TERM, SYSOUT, or leave blank for no allocation.
DSNAME ===> SYSPRINT.LIST
DISP ===> NEW
Storage Class ===>
Process Options for New Datasets:
Unit ===>
Before Allocation ===>
Volume ===>
Upon Deallocation ===>
Data Class ===>
Valid Process Options:
Space Units ===> TRK
D (Delete) K (Keep) ? (Prompt)
Primary ===> 10
Secondary ===> 0
RECFM ===> FBA
LRECL ===> 133
BLKSIZE ===> 6118
Note: Changes made to this screen override installed defaults
Press ENTER to process or enter END command to terminate
The recommended DCB parameters for the SYSPRINT dataset are RECFM=FBA,
BLKSIZE=6118, and LRECL=133.
Consult a batch Hogan PROC at your site if you are unsure of the dsname. Most sites
allocate this ddname to DUMMY for debugging rather than leaving it blank. This
conforms to common batch and debugging message region usage.
The fields on this screen are similar to the Monitor screen. Refer to the “Hogan Activity
Log (Monitor Dataset) Screen” on page C-36 for a description of these fields.
D-1
Appendix D.
Specifying Session Defaults
Appendix A.
App D
You can set or override the defaults to be used during debugging sessions with option 0
(DEFAULTS) on the Xpediter/TSO Primary Menu. The Xpediter/TSO Defaults Menu
shown in Figure D-1 is displayed. The defaults you specify remain in effect across all
Xpediter/TSO and Xpediter/IMS debugging sessions.
The Defaults Menu
Figure D-1. Xpediter/TSO Defaults Menu
-----------------------OPTION ===>
1
2
3
4
TEST PF KEYS
COLORS
OTHERS
PROFILE
XPEDITER/TSO - DEFAULTS MENU
-
Specify
Specify
Specify
Specify
Press ENTER to Process
or
-----------------------
test session PF keys
color defaults
other default values
current profile name
Enter END Command to Terminate
From this menu you can select to:
1. Modify Xpediter PF key settings used during your debugging session.
2. Specify color selections on a color terminal.
3. Specify session defaults, such as the default dsname high-level qualifier, and enable
the jump function.
4. Select a profile to be used and tailor user profiles for all your different libraries and
environments.
Specifying PF Key Definitions
Xpediter/TSO has two sets of PF keys. When using Xpediter/TSO, you use ISPF PF key
settings. These PF keys are used throughout the product, except when you are within a
debugging session. Then you use Xpediter debugging session PF keys.
To modify the Xpediter debugging session PF key settings, select option 1 (TEST PF KEYS).
The Xpediter PF Key Definitions and Labels - Primary Keys screen shown in Figure D-2 is
D-2
Xpediter/TSO and Xpediter/IMS PL/I User Guide
displayed. For terminals with 24 PF keys, press Enter to display the XPEDITER PF Key
Definitions and Labels - Alternate Keys screen shown in Figure D-3.
Note:
Depending on the number of PF keys established for your terminal, the
appropriate set of PF keys is displayed on these screens.
Figure D-2. Xpediter PF Key Definitions and Labels - Primary Keys Screen
------------ XPEDITER PF KEY DEFINITIONS AND LABELS - PRIMARY KEYS ------------
COMMAND ===>
NUMBER OF PF KEYS ===> 24
PF1
PF2
PF3
PF4
PF5
PF6
PF7
PF8
PF9
PF10
PF11
PF12
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
PF1
PF4
PF7
PF10
LABEL
LABEL
LABEL
LABEL
TERMINAL TYPE ===> 3278
HELP
PEEK CSR
END
EXIT
FIND
LOCATE *
UP
DOWN
GO 1
LEFT
RIGHT
GO
===>
===>
===>
===>
PF2
PF5
PF8
PF11
LABEL
LABEL
LABEL
LABEL
===>
===>
===>
===>
Press ENTER key to display alternate keys.
PF3
PF6
PF9
PF12
LABEL
LABEL
LABEL
LABEL
===>
===>
===>
===>
Enter END command to exit.
Figure D-3. Xpediter PF Key Definitions and Labels - Alternate Keys Screen
------------ XPEDITER PF KEY DEFINITIONS AND LABELS - ALTERNATE KEYS ----------
COMMAND ===>
NOTE: Definitions and labels below apply only to terminals with 24 PF keys.
PF13
PF14
PF15
PF16
PF17
PF18
PF19
PF20
PF21
PF22
PF23
PF24
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
PF13
PF16
PF19
PF22
LABEL
LABEL
LABEL
LABEL
HELP
FIND CSR
END
EXIT
FIND IND
LOCATE *
UP
DOWN
GO 1
DLEFT
DRIGHT
GO
===>
===>
===>
===>
PF14
PF17
PF20
PF23
LABEL
LABEL
LABEL
LABEL
===>
===>
===>
===>
Press ENTER key to display primary keys.
PF15
PF18
PF21
PF24
LABEL
LABEL
LABEL
LABEL
===>
===>
===>
===>
Enter END command to exit.
Changes can be made to the PF key designations by typing over the appropriate fields. PF
keys can also be labeled to have a descriptive name as well as the actual command
mapped to the key.
Specifying Session Defaults
D-3
Specifying Screen Colors
The next option on the Defaults Menu gives you color defaults for use with a color
terminal. A full range of colors is offered for the various display areas on the screen,
whether in ISPF or the Source display. Both intensity and highlight choices are available
for each color. This option lets you change color, highlight, and intensity on all ISPF,
source, and tutorial screens.
Select option 2 (COLORS) from the Defaults Menu to access the ISPF Color Defaults
screen shown in Figure D-4. You can also enter the COLOR command anywhere within
Xpediter/TSO to invoke this screen.
Figure D-4. ISPF Color Defaults Screen
XPEDITER/TSO --------------------- ISPF COLOR DEFAULTS (0.2) ------------------
COMMAND ===>
PRIMARY COMMANDS : Source (color defaults)
Tutorial (color defaults)
COLOR
Choices: White
Red
Blue
Green
Pink
Yellow
Turq
HIGHLIGHT Choices: Uscore Blink Reverse None
INTENSITY Choices: High
Low
COLOR
HIGHLIGHT INTENSITY
Informative Text
===> BLUE
NONE
LOW
Informative Text Hilite ===> WHITE
NONE
HIGH
Input Field Title
===> BLUE
NONE
LOW
Input Field Pointer
===> WHITE
NONE
HIGH
Data Input Field
===> RED
NONE
HIGH
Panel Title
===> WHITE
NONE
HIGH
COMMAND Title
===> WHITE
NONE
HIGH
COMMAND Input Field
===> RED
NONE
HIGH
Message/Note Text
===> BLUE
NONE
LOW
Message/Note Hilite
===> WHITE
NONE
HIGH
Menu Options
===> WHITE
NONE
HIGH
Menu Option Text
===> BLUE
NONE
LOW
Field in Error
===> RED
NONE
HIGH
Press ENTER to Save or END To Return
The entry values are listed on the screen. Note that color, highlight, and intensity
choices can be indicated by the first character.
The following indicates some guidelines regarding the use of color:
• Colors take affect only on a 3279-B or ISPF-supported 7-color terminal.
• Enter the ON or DEMO command on the Color Default screens for an example of its
use.
• Enter the OFF or RESTORE command to restore standard ISPF color settings.
• Intensity is ignored on IBM color terminals.
• Color is ignored on monochrome terminals.
Entering S or SOURCE from the ISPF Color Defaults screen invokes the Source Color
Defaults/1 screen, shown in Figure D-5. You can also enter the COLOR S command
anywhere within Xpediter/TSO, except within a dialog debugging session, to invoke this
screen.
There are three screens for source color defaults. Press Enter without any changes to cycle
through the screens.
D-4
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure D-5. Source Color Defaults/1 Screen
XPEDITER/TSO ------------ SOURCE COLOR DEFAULTS/1 (0.2) -----------------------
COMMAND ===>
COLOR
Choices: White
Red
Blue
Green
Pink
Yellow
Turq
HIGHLIGHT Choices: Uscore Blink Reverse None
INTENSITY Choices: High
Low
COLOR
HIGHLIGHT INTENSITY
Panel Title
===> BLUE
NONE
LOW
Current Module Name
===> WHITE
NONE
HIGH
COMMAND Title
===> BLUE
NONE
LOW
COMMAND Input Field
===> RED
NONE
HIGH
Input Field Pointer
===> WHITE
NONE
HIGH
Background Areas
===> BLUE
NONE
LOW
Informational Message
===> WHITE
NONE
HIGH
Error Messages
===> WHITE
NONE
HIGH
Informative Test
===> BLUE
NONE
LOW
Informative Test Highlight
===> WHITE
NONE
HIGH
Separator/Marker Lines
===> BLUE
NONE
LOW
Press ENTER to Save or END To Return
Typing ON or DEMO on the Source Color Defaults screen causes the COLOR,
HIGHLIGHT, and INTENSITY fields to automatically change (refer to Figure D-6 below) to
the following:
Figure D-6. Changing Source Color Defaults
Panel Title
Current Module Name
COMMAND Title
COMMAND Input Field
Input Field Pointer
Background Areas
Informational Message
Error Messages
Informative Test
Informative Test Highlight
Separator/Marker Lines
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
COLOR
YELLOW
TURQ
TURQ
GREEN
WHITE
BLUE
TURQ
PINK
YELLOW
TURQ
BLUE
HIGHLIGHT
REVERSE
REVERSE
REVERSE
REVERSE
REVERSE
REVERSE
REVERSE
REVERSE
REVERSE
REVERSE
REVERSE
INTENSITY
LOW
HIGH
LOW
HIGH
HIGH
LOW
HIGH
HIGH
LOW
HIGH
LOW
Press ENTER to Save or END To Return
Typing OFF or RESTORE causes the COLOR, HIGHLIGHT, and INTENSITY fields on the
Source Color Defaults/1 screen to return to the default values shown in Figure D-7.
Entering T or TUTORIAL from the ISPF Color Defaults screen invokes the Tutorial Color
Defaults screen, shown in Figure D-8. You can also enter the COLOR T command
anywhere within Xpediter/TSO to invoke this screen.
Specifying Session Defaults
D-5
Figure D-7. Tutorial Color Defaults Screen
XPEDITER/TSO ----------- TUTORIAL COLOR DEFAULTS (0.2) ------------------------
COMMAND ===>
COLOR
Choices: White
Red
Blue
Green
Pink
Yellow
Turq
HIGHLIGHT Choices: Uscore Blink Reverse None
INTENSITY Choices: High
Low
COLOR
HIGHLIGHT INTENSITY
Informative Text
===> BLUE
NONE
LOW
Informative Text Hilite ===> WHITE
NONE
HIGH
Panel Title
===> WHITE
NONE
HIGH
COMMAND Title
===> WHITE
NONE
HIGH
COMMAND Input Field
===> RED
NONE
HIGH
Panel Subtitle
===> WHITE
NONE
HIGH
Press ENTER to Save or END to Return
Typing ON or DEMO in the Tutorial Color Defaults screen (Figure D-7) causes the
COLOR, HIGHLIGHT, and INTENSITY fields to automatically change (refer to Figure D-8
below) to the following:
Figure D-8. Changing Tutorial Color Defaults
COLOR
HIGHLIGHT INTENSITY
Informative Text
===> YELLOW
REVERSE
LOW
Informative Text Hilite ===> TURQ
REVERSE
HIGH
Panel Title
===> WHITE
REVERSE
HIGH
COMMAND Title
===> TURQ
REVERSE
HIGH
COMMAND Input Field
===> GREEN
REVERSE
HIGH
Panel Subtitle
===> PINK
REVERSE
HIGH
Press ENTER to Save or END To Return
Typing OFF or RESTORE causes the COLOR, HIGHLIGHT, and INTENSITY fields on the
Changing Tutorial Color Defaults screen (Figure D-8) to return to the default values
shown in Figure D-7.
Specifying Other Default Values
Select option 3 (OTHERS) from the Defaults Menu to access the Others screen for
specifying other default values as shown in Figure D-9. This screen does two things:
1. Sets up a default prefix for your dsname high-level qualifier that will be
automatically appended to all dsnames not enclosed in quotes.
2. Enables the jump function.
D-6
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure D-9. Specifying Other Default Values
--------------------------- XPEDITER/TSO - OTHERS -----------------------------
COMMAND ===>
DSNAME HIGH-LEVEL QUALIFIER:
(Appended to all DSNAMEs not enclosed in quotes)
Prefix
===> ASJUSR1
ENABLE JUMP FUNCTION:
(Allow menu jumps within XPEDITER/TSO screens)
Enable
===> YES
Press ENTER to Process or Enter END Command to Terminate
The fields on the Others screen are as follows:
DSNAME HIGH-LEVEL QUALIFIER
The string entered here is automatically prefixed to any dsname not enclosed in
quotes. Your user ID is the default value pre-filled in this field.
If your site requires a high-level qualifier that is not your user ID, enter that qualifier
in the Prefix field. This will become your default high-level qualifier. Do not blank
out this field. The prefix is used as the high-level qualifier in names generated by
Xpediter/TSO for the session log and script datasets. Therefore, unless you explicitly
name them, any attempt to allocate these datasets will fail. Also, in many sites, a
dataset cannot be cataloged without a user ID.
ENABLE JUMP FUNCTION
Turning on the jump function (YES, the default) lets you move from one screen to
another without passing through the Primary Menu. The jump function is the same
as that provided inside ISPF.
The equal sign (=) is used to take you to a Primary Menu. Entering =2 takes you to
option 2 of the Primary Menu. If the jump function is turned on (enabled) and the
equal sign convention is used, you are referred to the Xpediter/TSO Primary Menu. If
the jump function is off, you are referred to the ISPF Primary Menu.
Specifying User Profiles
The user profile contains all the changes you make to the Xpediter defaults. This includes
installation defaults established by your system programming staff, and most
importantly, environment parameters and setup options for your debugging session.
Select option 0 (Defaults) from the Primary Menu to display the Defaults Menu. Select
option 4 (PROFILE) from the Defaults Menu to access the Xpediter Profile screen shown
in Figure D-10. This screen can also be reached by entering a question mark (?) as a
profile identifier on the Primary Menu or by using the PROFILE command from a test
screen. Refer to “Using the PROFILE Command” on page D-8 for additional information.
This screen lets you:
• Switch to a new profile
Specifying Session Defaults
•
•
•
•
•
•
D-7
Change the description of a profile
Make a particular profile current
Delete a profile
Copy a profile
Rename a profile
Use a profile.
Figure D-10. Xpediter Profile Screen
------------------------ XPEDITER/TSO - PROFILE (0.4) -----------------------
COMMAND ===>
SCROLL ===> PAGE
LINE COMMANDS: S (Select) D (Delete) C (Copy) R (Rename) U (Use) I (Info)
PRIMARY COMMANDS: MERGE (copy profiles)
Locate/Find/RFIND (reposition table)
CURRENT
Sort Last Modified (Y/N) N
PROFILE ===> TRIMAINP > Test using the PL/I IVP program
<
CMD PROFILE
NEW NAME
DESCRIPTION
-------------------------------------------------------------------------------
_
TRIMAIN
> Test using the COBOL IVP program
<
_
TRIMAINA
> Test using the HL Assembler IVP program
<
_
TRIMAINC
> Test using the C IVP program
<
_ * TRIMAINP
> Test using the PL/I IVP program
<
_
TRIMAIN2
> Test using the COBOL IVP program w/internal sort
<
_
TRIMPP
> Test using the COBOL IVP program for IMS MPP
<
_
TRIPMPP
> Test using the PL/I IVP program for IMS MPP
<
******************************* Bottom of data ********************************
The Profile screen has a fixed (body) area and a scrollable area. The fixed body area has a
command line, a list of available commands, a sort indicator, and the Current Profile.
You can perform several operations in this area.
1. Use the MERGE command to merge another user’s profile into your profile library or
use the LOCATE, FIND, or RFIND command to reposition the scrollable area.
2. Use the PROFILE field to:
– Switch to a new profile: To do this, type over the profile identifier with a new
identifier. The identifier can be any 8-character name or number. When you
change the profile specified in this field, the profile change becomes effective
immediately. This lets you execute debugging sessions with different
environments, load libraries, levels of systems software, and so on.
– Change the description of a profile: To do this, type over the DESCRIPTION
field. You can combine this with selecting a new profile, in which case, the
description is associated with the new profile.
3. Use the Sort Last Modified field to change the order of profile entries.
– N (default) - displays profile entries alphabetically in ascending order.
– Y - displays profile entries by the date the profile was last modified in descending
order. Modifying setup information unique to a single profile, modifying a
profile description, or changing environments for a profile constitute a change.
The LOCATE command will automatically be disabled when profile entries are
sorted by date last modified.
Note:
Using the same ISPF profile file with Xpediter/TSO 16.05 or greater and
releases of Xpediter/TSO prior to 16.05 will cause the current profile and any
profiles modified with prior releases to sort incorrectly in Xpediter/TSO
16.05 or greater when the Sort Last Modified field is set to Y.
The scrollable area of the screen has a line for each existing profile and includes a line
command area. An asterisk (*) preceding a profile identifier indicates the current profile.
You can use the following line commands:
D-8
Xpediter/TSO and Xpediter/IMS PL/I User Guide
• S (Select)—to make a particular profile current. You can combine this command with
a copy function by entering the identifier of the new profile in the NEW NAME field.
This makes the new profile the current profile.
• D (Delete)—to delete a profile.
• C (Copy)—to copy a profile. Enter the identifier of the new profile in the NEW NAME
field. Press Enter, and a new profile with the given identifier is created. If you also
type over the DESCRIPTION field, the new description goes only with the new
profile. If the new profile identifier already exists, you must verify that you really
want to overwrite the profile.
• R (Rename)—to rename a profile. Enter the new profile identifier in the NEW NAME
field. You can also change the description by typing over the DESCRIPTION field.
Press Enter, and the profile is renamed.
• U (Use)—to use a profile. This line command takes you directly to Xpediter/TSO with
the selected profile.
• I (Info)—to display profile setup information.
Using the MERGE Command
The MERGE command copies profiles from an alternate profile dataset to the current
profile dataset. See “Selecting Alternate Profiles (MERGE)” on page E-3 for more
information. The profile entries on the Merge Profile screen are sorted in the same
manner as selected on the Profile screen.
Using the LOCATE Command
The LOCATE command positions the list of profiles to the profile name preceding the
name you specify. L and LOC are acceptable abbreviations for the LOCATE command.
The LOCATE command will automatically be disabled when profile entries are sorted by
date last modified.
Using the FIND Command
The FIND command will position the profile table at the profile name whose requested
character string matches some or all of the characters in the profile name or description.
F is an acceptable abbreviation for the FIND command.
Using the RFIND Command
The RFIND command will position the profile table at the profile name whose requested
character string from the previous FIND command matches some or all of the characters
in the Profile name or Description.
Using the PROFILE Command
The PROFILE command is available on the test screens to change the current profile
without leaving the test screen itself. You can also use the PROFILE command from the
Primary Menu. The syntax of the command is:
PROFile {xxxxxxxx}
{?
}
Where xxxxxxxx is the profile identifier. Use this command as follows:
1. Enter the command and a profile identifier to change to another profile. If the
profile identifier does not currently exist, the Xpediter Profile screen shown in Figure
D-10 on page D-7 is displayed so that you can enter the description for the new
profile or select a different profile identifier.
Specifying Session Defaults
D-9
2. Enter the command without an identifier or with a question mark (?) to go to the
Xpediter Profile screen shown in Figure D-10 on page D-7.
When you leave the Profile screen, you are returned to the test screen, and the profile
you selected is displayed in the message area. If you selected a new profile (i.e., a profile
that did not currently exist), the Environments Menu is displayed.
Displaying Test Session Settings
You can use SET commands to override a number of Xpediter/TSO test session defaults in
order to achieve your debugging objectives. For example, you can control whether or not
to intercept program abends, control the speed of program trace, or control the way
Xpediter/TSO deals with modules. You can control numerous Xpediter functions
including display settings, session log options, and PF key settings. For full descriptions
of all SET command parameters, refer to the Xpediter/TSO and Xpediter/IMS Reference Manual.
The current status of your test session settings can be displayed by entering SHOW SETS
or SHOW OPTIONS on the command line. Based on your current settings, Xpediter will
display a list similar to the one shown in Figure D-11, Figure D-12, Figure D-13, Figure D14, and Figure D-15. Some values are set only for the duration of the test session, while
others are maintained across test sessions. All the settings that affect module
management must be in effect before loading your program into memory. This can be
done by editing an INCLUDE script that contains the SET commands and specifying it on
the test screen as an initial script before entering the test session.
Figure D-11. SHOW SET/OPTIONS First Screen
------------------------- XPEDITER/TSO - SHOW --------------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: TRIMAIN2
MODULE: TRIMAIN2 COMP DATE: 09/30/1997 COMP TIME:11:39:04
-------------------------------------------------- Before TRIMAIN2/AMODE 31 ->
********************************* TOP OF DATA **********************************
ABNDEXIT ===> ON
AUTOCAN ===> OFF
AUTOCLOS ===> OFF
AUTOKEEP ===> ON
AUTOSCRL ===> OFF
BRCOV
===> OFF
BRKPOINT ===> SVC
CAPS
===> ON
CBLTRAP ===> ON
CMDSIZE ===> 2
COLS
===> OFF
COMPARE ===> PAD
CONFIRM ===> ON
DATAFIND ===> ALL
DATETIME ===> ON
DBCS
===> OFF
DELAY
===> 0
DUMP
===> OFF
D-10
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure D-12. SHOW SET/OPTIONS Second Screen
------------------------- XPEDITER/TSO - SHOW --------------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: TRIMAIN2
MODULE: TRIMAIN2 COMP DATE: 09/30/1997 COMP TIME:11:39:04
-------------------------------------------------- Before TRIMAIN2/AMODE 31 ->
DYNTRAP ===> ON
ESPIE
===> ON
GEN
===> OFF
HANDLER ===> 0
HEXMODE ===> OFF
LANGUAGE ===> ENGLISH
LETRAP
===> ON
LOG
===> ON
LOG AUTOKEEP ===> ON
LOG FIND
===> OFF
LOG INSERT
===> OFF
LOG KEEP
===> ON
LOG MEMORY
===> ON
LOG PEEK
===> ON
LOG VERIFY
===> ON
LOGSIZE ===> 80
LOWCASE ===> ASIS
MONITOR ===> OFF
NESTED
===> 00099
Figure D-13. SHOW SET/OPTIONS Third Screen
------------------------- XPEDITER/TSO - SHOW --------------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: TRIMAIN2
MODULE: TRIMAIN2 COMP DATE: 09/30/1997 COMP TIME:11:39:04
-------------------------------------------------- Before TRIMAIN2/AMODE 31 ->
NOINIT
===> OFF
NONDISP ===> .
PFK1
===> HELP
PFK2
===> PEEK CSR
PFK3
===> END
PFK4
===> EXIT
PFK5
===> FIND
PFK6
===> LOCATE *
PFK7
===> UP
PFK8
===> DOWN
PFK9
===> GO 1
PFK10
===> LEFT
PFK11
===> RIGHT
PFK12
===> GO
PFK13
===> HELP
PFK14
===> FIND CSR
PFK15
===> END
PFK16
===> EXIT
PFK17
===> FIND IND
Specifying Session Defaults
Figure D-14. SHOW SET/OPTIONS Fourth Screen
------------------------- XPEDITER/TSO - SHOW --------------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: TRIMAIN2
MODULE: TRIMAIN2 COMP DATE: 09/30/1997 COMP TIME:11:39:04
-------------------------------------------------- Before TRIMAIN2/AMODE 31 ->
PFK18
===> LOCATE *
PFK19
===> UP
PFK20
===> DOWN
PFK21
===> GO 1
PFK22
===> DLEFT
PFK23
===> DRIGHT
PFK24
===> GO
PREINIT ===> OFF
REFRESH ===> OFF
REVSIZE ===> 1M
RTEREUS ===> ALLOWED
STATIC
===> IGNORE0
TEMPLATE ===> ON
TRANSLAT ===> ON
UNCHNGED ===> ON
USERSVC ===> 240
TRAPBP ===> OFF
SVCBP
===> ON
SVCTCBU ===> OFF
Figure D-15. SHOW SET/OPTIONS Fifth Screen
------------------------- XPEDITER/TSO - SHOW --------------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: TRIMAIN2
MODULE: TRIMAIN2 COMP DATE: 09/30/1997 COMP TIME:11:39:04
-------------------------------------------------- Before TRIMAIN2/AMODE 31 ->
WINDOW SOURCE
===> MIN: 3
WINDOW KEEP
===>
5
WINDOW AUTOKEEP ===>
0
TRANSFER ===>
DYNAMIC MODULES ===>
EXCLUDE MODULES ===>
NOCANCEL MODULES ===>
SKIPPED MODULES ===>
TRACED MODULES ===>
DDIGNORE AT CLOSE ===>
******************************** BOTTOM OF DATA ********************************
D-11
D-12
Xpediter/TSO and Xpediter/IMS PL/I User Guide
E-1
Appendix E.
Xpediter/TSO Utilities
The Xpediter/TSO utility functions are accessed by selecting option 5 on the Primary
Menu. The Xpediter/TSO Utilities Menu shown in Figure E-1 is displayed. From this
menu, you can select the following functions:
1. Display the memory available for debugging (REGION SIZE).
2. Display the ddnames and dsnames currently allocated to your TSO session (LIST
ALLOCATES).
3. Create, browse, delete, lock/unlock, display, and list DDIO files (DDIO FILE
FACILITY).
4. Merge profiles from other user IDs (MERGE).
Figure E-1. Xpediter/TSO Utilities Menu
------------------------- XPEDITER/TSO - UTILITIES MENU ------------------------
OPTION ===>
1 REGION SIZE
- Display memory available for testing
2 LIST ALLOCATES
- Display files allocated to your test session
3 DDIO FILE FACILITY
- Create/Format/Copy/Export and list DDIO file(s)
4 DB2SP INTERCEPT
- Display status of DB2 Stored Procedure Intercept
5 IMS INTERCEPT
- Display status of IMS Intercept
6 MULTI-BATCH INTERCEPT - Display status of Multi-Batch Intercept
7 MERGE
- Merge profiles from alternate users
Press ENTER to process or enter END command to terminate
Displaying Available Memory (REGION SIZE)
Selecting option 1 (REGION SIZE) on the Utilities Menu will display an example of a
condensed screen of memory and storage specifications available for debugging. This
menu screen is similar to the screen displayed when you enter a SHOW REGION
command from within an Xpediter/TSO debugging session. The condensed storage
specification screen is displayed in Figure E-2 on page E-2.
Appendix A.
App E
E-2
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure E-2. Xpediter/TSO Storage Specifications
.-----------------------------------------------------------------.
|
Percent TSO storage used
|
|
----10---20---30---40---50---60---70---80---90--|
|
[
]
|
| <16m *****
|
| >16m *
|
|
Current usage
|
|
0.44
Mb Below ( private )
|
|
0.43
Mb Below ( system )
|
|
0.71
Mb Above ( private )
|
|
9.21
Mb Above ( system )
|
|
|
|
System information
|
|
Region size below the line ====> 4.06
Mb
|
|
Region size above the line ====> 32.00
Mb
|
|_________________________________________________________________|
The following guidelines give you some idea as to what the memory requirements are for
the different Xpediter/TSO execution environments:
BATCH
1,500,000 bytes
TSO
1,500,000 bytes
IMS
2,000,000 bytes
BTS
2,500,000 bytes
DB2
2,000,000 bytes
If you are using DATACOM/DB, IDMS/DB, or System 2000, the recommended memory
is 2,000,000 bytes.
The listed figures are approximate; your actual memory requirements will vary
depending on the size of the program being debugged. The amount of memory required
by Xpediter/TSO is related to the number of statements in each program that has a DDIO
loaded into memory.
Displaying File Allocations (LIST ALLOCATES)
Option 2 (LIST ALLOCATES) on the Utilities Menu displays the files allocated to your
TSO debugging session. The same display can be reached by entering the ALC command
from within an Xpediter/TSO debugging session. The following line commands are
available, entered in the SEL column:
A
Concatenation destination (After)
B
Browse individual dataset
C
Concatenation source (Copy)
D
Deconcatenate request
E
Edit individual dataset
S
Dataset status
U
Unallocation request
Xpediter/TSO Utilities
E-3
The SHOW ALLOCATES command displays the same information in essentially the same
format, but the line commands are not available.
Figure E-3 (List Allocates Screen) is a sample of the output from this function.
Figure E-3. List Allocates Screen
----------------------- XPEDITER/TSO - LIST ALLOCATES ------- ROW 1 TO 13 OF 89
COMMAND ===>
SCROLL ===> CSR
SEL DDNAME
DSNAME (fully qualified)
ATTR STA DISP
-------------------------------------------------------------------------------
-------- ------------------------------------------------------- ---
STEPLIB SYS1.DUMMY.LINKLIB
IA
SHR KEEP
SYSPRINT (TERM) NULLFILE
A
NEW DELETE
SYSTERM (TERM) NULLFILE
A
NEW DELETE
SYSLBC
SYS1.BRODCAST
VD SHR KEEP
SYS0003 CATALOG.TSO.USRCAT
I VD SHR KEEP
ISPPROF ASJUSR1.ISP.ISPPROF
I VD SHR KEEP
SYSPROC SYS1.CMDPROC
C A D SHR KEEP
+1
ADSA99XP.CLIST
C A D SHR KEEP
+2
SYS2.XPEDITER.V7R7M0.CLIST
C A D SHR KEEP
SYSHELP SYS1.HELP
C A D SHR KEEP
ISPLLIB SYS2.XPEDITER.V7R7M0.LOADLIB
CIA D SHR KEEP
+1
SYS2.PROD.ISPLLIB
CIA D SHR
DDIO File Facility
A DDIO file is required during compile time to store source listings containing the
information necessary for Xpediter/TSO to reference various elements of your program
during testing.
Note:
In some cases, a DDIO file was created and formatted during the installation of
Compuware’s Shared Services. If not, you can use this utility to create a DDIO
file.
Option 3 (DDIO FILE FACILITY) on the Utilities Menu invokes the CSS Utilities Source
Listing File Facility. This facility enables you to:
•
•
•
•
•
create and format a DDIO file, a shared directory, or an LP database
obtain format information about the file
copy, move, export, or import files
obtain a list of file members
browse, delete, print, lock, or unlock members from a list of file members.
See the Compuware Shared Services User/Reference Guide for more information.
Selecting Alternate Profiles (MERGE)
Option 7 on the Utilities Menu merges profiles from other user IDs into your personal
profile. The Select Alternate Profiles screen shown in Figure E-4 is displayed.
E-4
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure E-4. Select Alternate Profiles Screen
------------------------COMMAND ===>
SELECT ALTERNATE PROFILES
-------------------------
Enter the dataset name of the input ISPF user profiles to select.
DSNAME ===>
Enter END Command to Cancel Without Updating the Defaults
The option on this screen is:
DSNAME
Enter the name of the ISPF profile dataset in the DSNAME field to identify the source
of the Xpediter/TSO profiles. Entering a dataset name results in the display of the
Merge Profile screen—a scrollable list from which you can make your selection.
After you have typed the name of the ISPF profile dataset in the DSNAME field, press
Enter to display the Merge Profile screen (Figure E-5).
Figure E-5. Merge Profile Screen
------------------------- XPEDITER/TSO - MERGE PROFILE ------------------------
COMMAND ===>
SCROLL ===> PAGE
LINE COMMANDS: S (Select)
PRIMARY COMMANDS: Locate/Find/RFIND (Reposition table)
CMD PROFILE
NEW NAME
DESCRIPTION
-------------------------------------------------------------------------------
_
ACMETEST
> ACME standard company profile
<
_
ASMTEST
> Assembler program testing
<
_
BTSTEST
> BTS testing
<
_
COBTEST
> COBOL program testing
<
_
STORPROC
> DB2 Stored Procedure testing
<
_
PLITEST
> PL/I program testing
<
The list provided on the Merge Profile screen (Figure E-5) displayed above shows the
alternate profiles that exist in another user’s Xpediter profile table. To merge one or more
of these profiles into your profile, use the Select command. By using SELECT, you can
change the profile name and/or description by simply typing new values. Profile entries
are sorted in the same manner as selected on the Profile screen. See “Specifying User
Profiles” on page D-6 for more information.
Using the LOCATE Command
The LOCATE command positions the list of profiles to the profile name preceding the
name you specify. L and LOC are acceptable abbreviations for the LOCATE command.
Xpediter/TSO Utilities
E-5
The LOCATE command will automatically be disabled when profile entries are sorted by
date last modified. See “Specifying User Profiles” on page D-6 for more information.
Using the FIND Command
The FIND command will position the profile table at the profile name whose requested
character string matches some or all of the characters in the profile name or description.
F is an acceptable abbreviation for the FIND command.
Using the RFIND Command
The RFIND command will position the profile table at the profile name whose requested
character string from the previous FIND command matches some or all of the characters
in the Profile name or Description.
E-6
Xpediter/TSO and Xpediter/IMS PL/I User Guide
F-1
Appendix F.
Binding the Application Plan or Package
Appendix A.
App F
If the Xpediter for DB2 Extension and File-AID for DB2 are installed at your site, and you
want to use either product during the debugging session, you must bind your program
application plan or package with the File-AID for DB2 DBRM if any of the following
apply:
1. The program executes statically compiled SQL statements. If the program executes
only dynamically inserted SQL statements, you can either bind your application plan
or package with File-AID for DB2 or use the File-AID for DB2 default plan in place of
your application plan or package.
2. The program is executed in the IMS environment.
Bind Facility Menu
Select option 1 (PREPARE) from the Primary Menu to display the Program Preparation
Menu. Then select option 3 (BIND FACILITY MENU) from the Program Preparation Menu
to display the Bind Facility Menu shown in Figure F-1.
Figure F-1. Bind Facility Menu
--------------------- XPEDITER/TSO - BIND FACILITY MENU ---------------------
OPTION ===>
1 BIND PLAN FACILITY
- Bind application plan
2 BIND PACKAGE FACILITY - Bind package
For DB2 long name support:
3 BIND PLAN FACILITY
- Bind application plan
4 BIND PACKAGE FACILITY - Bind package
For Submit Bind Methods BATCH and EDITJCL:
5 JOB CARD INFORMATION - Specify a Job Card
Press ENTER to process or enter END command to terminate
The Bind Facility Menu has the following options:
1 BIND PLAN FACILITY
Use this facility to add or replace DB2 plans. Refer to “Bind Plan Facility Screen” on
page F-2.
2 BIND PACKAGE FACILITY
Use this facility to create DB2 packages. Refer to “Bind Package Facility Screen” on
page F-7.
F-2
Xpediter/TSO and Xpediter/IMS PL/I User Guide
3 BIND PLAN FACILITY
Use this facility to add or replace DB2 plans if you are using DB2 8.1 or above and
require support for 128-byte long names. Refer to “Bind Plan Facility Screen for Long
Names” on page F-9.
4 BIND PACKAGE FACILITY
Use this facility to create DB2 packages if you are using DB2 8.1 or above and require
support for 128-byte long names. Refer to “Bind Package Facility Screen” on page
F-14.
5 JOB CARD INFORMATION
Use this facility to enter a JOB CARD for Submit Bind Methods BATCH and EDITJCL.
Refer to “Job Card for Bind Facility” on page F-17.
Bind Plan Facility Screen
Select option 1 (BIND PLAN FACILITY) from the Bind Facility Menu to display the Bind
Plan Facility screen shown in Figure F-2. To perform the bind function, you must have
DB2 authority.
The valid commands on this screen are:
SETUP
Displays the DBRM Libraries screen, which is used to specify the DBRM members and
datasets you want to use as input to the bind function. Refer to “DBRM Libraries
Screen” on page F-5 for a description of this screen.
RESTORE
Reinstates all installed default values (on all setup and installation screens) to the
values assigned during installation.
Figure F-2. Bind Plan Facility Screen
--------------------- XPEDITER/TSO - BIND PLAN FACILITY ---------------------
COMMAND ===>
COMMANDS: SEtup (Display Setup Panel)
Submit Bind Method ===> EDITJCL
(Batch/Editjcl/Foreground)
DB2 SYSTEM ID ===>
(Omit to use assigned default)
Plan Name ===>
Use SEtup for additional DBRM members or PKLIST entries
First DBRM Member ===>
Include FADB2 DBRMs? ===> NO
First PKLIST Location ===>
Collection ID ===>
Package ID ===>
ACTION on Plan
Retain Authorization
Validate
Isolation
Flag
Acquire
Release
Explain
Owner of Plan
Qualifier Value
Press ENTER
===> ADD
===>
===> BIND
===> CS
===> I
===> USE
===> COMMIT
===> NO
===>
===>
to process or
(Yes/No)
(Add/Replace)
(Retain) applies only to Replace
(Run/Bind)
(Cs/Rr)
(I/W/E/C)
(Use/Allocate)
(Commit/Deallocate)
(Yes/No)
(Authorization ID of Plan Owner)
(Implicit qualifier)
enter END command to terminate
The values shown in Figure F-2 are the recommended values, which will provide better
performance than the other listed options.
Binding the Application Plan or Package
F-3
When you press Enter from this screen, the bind operation begins. You are binding the
File-AID for DB2 DBRM members with the DBRM member(s) you list in the First DBRM
Member field and on the DBRM Libraries screen (described in “DBRM Libraries Screen”
on page F-5). You do not have to specify the File-AID for DB2 DBRM members because
they are automatically specified by the bind function.
The options on the Bind Plan for FADB2 screen are:
Submit Bind Method
Specify the method to be used to invoke the DB2 command processor. Valid choices
are Batch, Editjcl, and Foreground. If Batch is specified, a job will be submitted to
bind the plan. Specifying Editjcl will invoke the ISPF edit facility with the JCL used
to execute in batch. The JCL and control cards can be modified before submitting or
saving them. If you specify Foreground, the DB2 command processor will be invoked
in the foreground.
DB2 System ID
Specify the non-blank DB2 subsystem name (SSN), recognizable to the DSN
command processor, to use for testing.
If no SSN is specified, the DSNLOAD dataset will not be allocated before the DSN
command is issued. Instead you must have previously allocated the DSNLOAD
dataset to ISPLLIB or in the STEPLIB, LINKLIST, or LPALIB concatenation.
Your plan is saved in the catalog of the specified subsystem.
Plan Name
Required. Specify the DB2 application plan to be used by DB2 to process SQL
statements encountered during program execution. The plan name must follow the
DB2 defined syntax for plan names. Refer to the IBM DB2 Reference Manual for the
correct syntax.
A DB2 application plan is the output from the bind function, which converts the
output from the DB2 precompiler to a usable control structure called an application
plan. During this process, access paths to the data are selected and some
authorization checking is performed. The plan is used by DB2 to process SQL
statements encountered during program execution.
First DBRM Member
Required. Specify the first DBRM to be included in the bind process. If you need to
specify additional DBRM members, enter the SETUP command to access the DBRM
Libraries screen. For details, refer to “DBRM Libraries Screen” on page F-5.
Include FADB2 DBRMs?
This field is only displayed if File-AID for DB2 is installed at your site. Specify whether
or not you want to include the File-AID for DB2 DBRMs in the bind.
First PKLIST Location
Specify the location of the first package list to be included in the bind.
Collection ID
Specify the identifier of the package collection to be included in the bind, following
the DB2 defined syntax for names.
Package ID
Specify the ID of the first package to be included in the bind.
ACTION on Plan
Specify whether the plan is a new plan (Add) or if it is to Replace another plan by the
same name.
F-4
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Retain Authorization
Use Retain if you specified Replace in the ACTION on Plan field. Otherwise, leave
this field blank.
Validate
Use Bind. For performance reasons, the validation of the plan should be done during
the bind process.
Isolation
Use CS for better performance and reduced lockout situations. Use RR only if you
want to retain locks on read pages until you reach a commit (synchronization) point.
Flag
Indicates the level of messages you want to see resulting from the bind. Specify one
of the following options:
I
All messages
W
Warning, error, and completion messages
E
Only error and completion messages
C
Only completion messages
Acquire
Specify one of the following options:
Use
To allocate DB2 resources when and as needed.
Allocate
To allocate the resources at the time the plan is allocated.
Release
Specify one of the following options:
Commit
To free up the resources after a commit is successfully executed.
Deallocate
To deallocate any resources when the plan is deallocated.
Explain
Specify Yes to obtain explain information at bind time. If you specify Yes, you must
have access to a Plan_Table in which DB2 can store the information relating to the
SQL calls in your program.
You can allocate a Plan_Table for yourself or use a common Plan_Table.
Owner of Plan
If you want to indicate an owner other than yourself, enter the authorization ID of
that person. If omitted, you are, by default, the owner of the plan.
Qualifier Value
Specify the implicit qualifier related to the bind.
Bind Plan Setup Menu
When you enter SETUP on the Bind Plan Facility screen (Figure F-2), the Bind Plan Setup
Menu shown in Figure F-3 is displayed.
Binding the Application Plan or Package
F-5
Figure F-3. Bind Plan Setup Menu
-------------------OPTION ===>
1
2
XPEDITER/TSO - BIND PLAN SETUP MENU
--------------------
BIND PLAN DBRM SETUP
- Add DBRM members and libraries
BIND PLAN PKLIST SETUP - Add packages to the PKLIST option
Press ENTER to process
or
enter END command to terminate
The Bind Plan Setup Menu has the following options:
1 BIND PLAN DBRM SETUP
Select this option to create or update a list of bind member names and the list of
DBRM libraries in which they reside. Refer to “DBRM Libraries Screen” below.
2 BIND PLAN PKLIST SETUP
Use to create or update a list of packages that will be used when binding a plan. Refer
to “Bind Plan PKLIST Setup Screen” on page F-6.
DBRM Libraries Screen
When you enter 1 (BIND PLAN DBRM SETUP) on the Bind Plan Setup Menu, the DBRM
Libraries screen shown in Figure F-4 is displayed. The DBRM Libraries screen is used to
enter the names of the DBRM members and DBRM libraries to be used to bind a DB2
plan. If no DBRM members are entered on this screen, a plan is created that contains the
File-AID for DB2 DBRM members and the DBRM entered in the First DBRM Member field
on the Bind Plan Facility screen.
F-6
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure F-4. DBRM Libraries Screen
----------------------COMMAND ===>
XPEDITER/TSO - DBRM LIBRARIES
Members ===> DBRMMEM2
===>
===>
===>
===>
===>
-----------------------
===>
===>
User Libraries:
(1) ===>
(2) ===>
(3) ===>
(4) ===>
Installation Libraries: (Changes to this list override installed defaults)
(5) ===> ‘ASJUSR1.PROD5100.DBRMLIB’
(6) ===>
(7) ===>
(8) ===>
(9) ===>
(10) ===>
(11) ===>
(12) ===>
Press ENTER
or
END
to return to previous menu
The options on the DBRM Libraries screen are:
Members
You can specify one to eight additional DBRM modules to be combined with the FileAID for DB2 DBRM members when creating DB2 plans. The DBRM modules named in
these fields must be members of the DBRM libraries defined below.
A DBRM module member is one output of a DB2 compile preprocessor. DBRM
modules are combined by the bind process to create plans that are used by DB2 for
processing of program SQL statements. The File-AID for DB2 DBRMs are automatically
included in the bind process, but do not appear in the member list.
User Libraries
Required only if the DBRM members specified are not contained in the list of
installation libraries. You can specify up to four libraries. Normal concatenation rules
are in effect—libraries specified first are searched first, and buffer space for the library
list is determined by the first library specified.
Installation Libraries
The installer entered the dsnames of common DBRM libraries that should be
allocated to any sessions. These libraries are included in the DBRM library list for a
plan that is created using the bind process. You can override the installed default
libraries by specifying new libraries in these fields.
Bind Plan PKLIST Setup Screen
When you enter 2 (BIND PLAN PKLIST SETUP) on the Bind Plan Setup Menu, the Bind
Plan PKLIST Setup screen shown in Figure F-5 on page F-7 is displayed. The Bind Plan
PKLIST Setup screen is used to enter up to 8 packages consisting of location name,
collection ID, and package ID. If more than 8 packages are needed, use the EDITJCL
option and add the additional packages to the DB2 parameter cards.
Binding the Application Plan or Package
F-7
Figure F-5. Bind Plan PKLIST Setup Screen
------------------COMMAND ===>
Location Name
----------------
XPEDITER/TSO - BIND PLAN PKLIST SETUP
Collection ID
------------------
-------------------
Package ID
--------
1)
2)
3)
4)
5)
6)
7)
8)
Press ENTER to process
or
enter END command to terminate
The options on the Bind Plan PKLIST Setup screen are:
Location Name
Specify the location of each DB2 package to be included in the bind.
Collection ID
Specify the identifier of each package collection to be included in the bind.
Package ID
Specify the ID of each package to be included in the bind.
Bind Package Facility Screen
Select option 2 (BIND PACKAGE FACILITY) from the Bind Facility Menu to display the
Bind Package Facility screen shown in Figure F-6. To perform the bind function, you must
have DB2 authority.
The only valid command on this screen is RESTORE:
RESTORE
Restores the default values established during installation to all the fields on the
screen.
F-8
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure F-6. Bind Package Facility Screen
-------------------- XPEDITER/TSO - BIND PACKAGE FACILITY -------------------
COMMAND ===>
Submit Bind Method ===> EDITJCL
(Batch/Editjcl/Foreground)
DB2 System ID ===>
(Omit to use assigned default)
Location Name ===>
Owner ===>
Collection ID ===>
Qualifier ===>
DBRM Member ===>
DBRM Library ===>
Copy Collection ID ===>
Copy Package ID ===>
Copyver Version ID ===>
Action ===> ADD
(Add/Replace)
Replver Version ID ===>
Currentdata ===> YES
(Yes/No)
Explain ===> NO
(Yes/No)
Flag ===> I
(I/W/E/C)
Validate ===> BIND
(Run/Bind)
Isolation ===> RR
(Rr/Rs/Cs/Ur/Nc)
Release ===> COMMIT
(Commit/Deallocate)
SQLerror ===> NOPACKAGE
(Nopackage/Continue)
Path ===>
Press ENTER to process or enter END command to terminate
The values shown in Figure F-6 are the recommended values, which will provide better
performance than the other listed options.
When you press Enter from this screen, the bind operation begins. You are binding the
File-AID for DB2 DBRM members with the DBRM member(s) you list in the DBRM
Member field and on the DBRM Libraries screen (described in “DBRM Libraries Screen”
on page F-5). You do not have to specify the File-AID for DB2 DBRM members because
they are automatically specified by the bind function.
Some of the options on the Bind Plan for FADB2 screen are described below. The
remaining options not covered here are documented in the applicable IBM manuals
describing the bind function.
Submit Bind Method
Specify the method to be used to invoke the DB2 command processor. Valid choices
are Batch, Editjcl, and Foreground. If Batch is specified, a job will be submitted to
bind the plan. Specifying Editjcl will invoke the ISPF edit facility with the JCL used
to execute in batch. The JCL and control cards can be modified before submitting or
saving them. If you specify Foreground, the DB2 command processor will be invoked
in the foreground.
DB2 System ID
Specify the non-blank DB2 subsystem name (SSN), recognizable to the DSN
command processor, to use for testing.
If no SSN is specified, the DSNLOAD dataset will not be allocated before the DSN
command is issued. Instead you must have previously allocated the DSNLOAD
dataset to ISPLLIB or in the STEPLIB, LINKLIST, or LPALIB concatenation.
Your plan is saved in the catalog of the specified subsystem.
Location Name
Optional value used to specify the location of the package for the bind operation.
Collection ID
Required. Specify the identifier of the package collection to be included in the bind,
following the DB2 defined syntax for names.
Binding the Application Plan or Package
F-9
Owner
Optional value used to specify the owner of the DB2 package.
Qualifier
Optional.
Bind Plan Facility Screen for Long Names
Select option 3 (BIND PLAN FACILITY) from the Bind Facility Menu to display the Bind
Plan Facility screen shown in Figure F-7 and Figure F-8. Choose this option if you are
using DB2 8.1 or above and require support for 128-byte long names. To perform the
bind function, you must have DB2 authority.
The valid commands on this screen are:
SETUP
Displays the DBRM Libraries screen, which is used to specify the DBRM members and
datasets you want to use as input to the bind function. Refer to “DBRM Libraries
Screen” on page F-12 for a description of this screen.
RESTORE
Reinstates all installed default values (on all setup and installation screens) to the
values assigned during installation.
Figure F-7. Bind Plan Facility Screen for Long Names (Top Portion)
--------------------COMMAND ===>
XPEDITER/TSO - BIND PLAN FACILITY
---------------------
More:
+
COMMANDS: SEtup (Display Setup Panel)
Submit Bind Method ===> BATCH
(Batch/Editjcl/Foreground)
DB2 SYSTEM ID ===>
(Omit to use assigned default)
Plan Name ===>
Use SEtup for additional DBRM members or PKLIST entries
First DBRM Member ===>
Include FADB2 DBRMs? ===> NO (Yes/No)
First PKLIST Location ===>
Collection ID ===>
Package ID ===>
ACTION on Plan ===> ADD
(Add/Replace)
Retain Authorization ===>
(Retain) applies only to Replace
Validate ===> BIND
(Run/Bind)
Isolation ===> CS
(Cs/Rr)
Flag ===> I
(I/W/E/C)
Acquire ===> USE
(Use/Allocate)
Press ENTER to process or enter END command to terminate
F-10
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure F-8. Bind Plan Facility Screen for Long Names (Bottom Portion)
--------------------COMMAND ===>
First DBRM Member
First PKLIST Location
Collection ID
Package ID
ACTION on Plan
Retain Authorization
Validate
Isolation
Flag
Acquire
Release
Explain
Owner of Plan
Qualifier Value
Press ENTER
XPEDITER/TSO - BIND PLAN FACILITY
===>
===>
---------------------
Include FADB2 DBRMs? ===> NO
More:
-
(Yes/No)
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
===>
ADD
(Add/Replace)
(Retain) applies only to Replace
(Run/Bind)
(Cs/Rr)
(I/W/E/C)
(Use/Allocate)
(Commit/Deallocate)
(Yes/No)
BIND
CS
I
USE
COMMIT
NO
===>
to process
or
enter END command to terminate
The values shown in Figure F-7 and Figure F-8 are the recommended values, which will
provide better performance than the other listed options.
When you press Enter from this screen, the bind operation begins. You are binding the
File-AID for DB2 DBRM members with the DBRM member(s) you list in the First DBRM
Member field and on the DBRM Libraries screen (described in “DBRM Libraries Screen”
on page F-12). You do not have to specify the File-AID for DB2 DBRM members because
they are automatically specified by the bind function.
The options on the Bind Plan for FADB2 screen are:
Submit Bind Method
Specify the method to be used to invoke the DB2 command processor. Valid choices
are Batch, Editjcl, and Foreground. If Batch is specified, a job will be submitted to
bind the plan. Specifying Editjcl will invoke the ISPF edit facility with the JCL used
to execute in batch. The JCL and control cards can be modified before submitting or
saving them. If you specify Foreground, the DB2 command processor will be invoked
in the foreground.
DB2 System ID
Specify the non-blank DB2 subsystem name (SSN), recognizable to the DSN
command processor, to use for testing.
If no SSN is specified, the DSNLOAD dataset will not be allocated before the DSN
command is issued. Instead you must have previously allocated the DSNLOAD
dataset to ISPLLIB or in the STEPLIB, LINKLIST, or LPALIB concatenation.
Your plan is saved in the catalog of the specified subsystem.
Plan Name
Required. Specify the DB2 application plan to be used by DB2 to process SQL
statements encountered during program execution. If you are using DB2 8.1 or
above, the plan name can be up to 128 bytes long. It must follow the DB2 defined
syntax for plan names. Refer to the IBM DB2 Reference Manual for the correct syntax.
A DB2 application plan is the output from the bind function, which converts the
output from the DB2 precompiler to a usable control structure called an application
plan. During this process, access paths to the data are selected and some
authorization checking is performed. The plan is used by DB2 to process SQL
statements encountered during program execution.
Binding the Application Plan or Package
F-11
First DBRM Member
Required. Specify the first DBRM to be included in the bind process. If you need to
specify additional DBRM members, enter the SETUP command to access the DBRM
Libraries screen. For details, refer to “DBRM Libraries Screen” on page F-12.
Include FADB2 DBRMs?
This field is only displayed if File-AID for DB2 is installed at your site. Specify whether
or not you want to include the File-AID for DB2 DBRMs in the bind.
First PKLIST Location
Specify the location of the first package list to be included in the bind.
Collection ID
Specify the identifier of the package collection to be included in the bind, following
the DB2 defined syntax for names.
Package ID
Specify the ID of the first package to be included in the bind.
ACTION on Plan
Specify whether the plan is a new plan (Add) or if it is to Replace another plan by the
same name.
Retain Authorization
Use Retain if you specified Replace in the ACTION on Plan field. Otherwise, leave
this field blank.
Validate
Use Bind. For performance reasons, the validation of the plan should be done during
the bind process.
Isolation
Use CS for better performance and reduced lockout situations. Use RR only if you
want to retain locks on read pages until you reach a commit (synchronization) point.
Flag
Indicates the level of messages you want to see resulting from the bind. Specify one
of the following options:
I
All messages
W
Warning, error, and completion messages
E
Only error and completion messages
C
Only completion messages
Acquire
Specify one of the following options:
Use
To allocate DB2 resources when and as needed.
Allocate
To allocate the resources at the time the plan is allocated.
Release
Specify one of the following options:
Commit
To free up the resources after a commit is successfully executed.
F-12
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Deallocate
To deallocate any resources when the plan is deallocated.
Explain
Specify Yes to obtain explain information at bind time. If you specify Yes, you must
have access to a Plan_Table in which DB2 can store the information relating to the
SQL calls in your program.
You can allocate a Plan_Table for yourself or use a common Plan_Table.
Owner of Plan
If you want to indicate an owner other than yourself, enter the authorization ID of
that person. If omitted, you are, by default, the owner of the plan.
Qualifier Value
Specify the implicit qualifier related to the bind.
Bind Plan Setup Menu
When you enter SETUP on the Bind Plan Facility screen (Figure F-7 and Figure F-8), the
Bind Plan Setup Menu shown in Figure F-9 is displayed.
Figure F-9. Bind Plan Setup Menu
-------------------OPTION ===>
1
2
XPEDITER/TSO - BIND PLAN SETUP MENU
--------------------
BIND PLAN DBRM SETUP
- Add DBRM members and libraries
BIND PLAN PKLIST SETUP - Add packages to the PKLIST option
Press ENTER to process
or
enter END command to terminate
The Bind Plan Setup Menu has the following options:
1 BIND PLAN DBRM SETUP
Select this option to create or update a list of bind member names and the list of
DBRM libraries in which they reside. Refer to “DBRM Libraries Screen” below.
2 BIND PLAN PKLIST SETUP
Use to create or update a list of packages that will be used when binding a plan. Refer
to “Bind Plan PKLIST Setup Screen for Long Names” on page F-13.
DBRM Libraries Screen
When you enter 1 (BIND PLAN DBRM SETUP) on the Bind Plan Setup Menu, the DBRM
Libraries screen shown in Figure F-10 is displayed. The DBRM Libraries screen is used to
enter the names of the DBRM members and DBRM libraries to be used to bind a DB2
Binding the Application Plan or Package
F-13
plan. If no DBRM members are entered on this screen, a plan is created that contains the
File-AID for DB2 DBRM members and the DBRM entered in the First DBRM Member field
on the Bind Plan Facility screen.
Figure F-10. DBRM Libraries Screen
----------------------COMMAND ===>
XPEDITER/TSO - DBRM LIBRARIES
Members ===> DBRMMEM2
===>
===>
===>
===>
===>
-----------------------
===>
===>
User Libraries:
(1) ===>
(2) ===>
(3) ===>
(4) ===>
Installation Libraries: (Changes to this list override installed defaults)
(5) ===> ‘ASJUSR1.PROD5100.DBRMLIB’
(6) ===>
(7) ===>
(8) ===>
(9) ===>
(10) ===>
(11) ===>
(12) ===>
Press ENTER
or
END
to return to previous menu
The options on the DBRM Libraries screen are:
Members
You can specify one to eight additional DBRM modules to be combined with the FileAID for DB2 DBRM members when creating DB2 plans. The DBRM modules named in
these fields must be members of the DBRM libraries defined below.
A DBRM module member is one output of a DB2 compile preprocessor. DBRM
modules are combined by the bind process to create plans that are used by DB2 for
processing of program SQL statements. The File-AID for DB2 DBRMs are automatically
included in the bind process, but do not appear in the member list.
User Libraries
Required only if the DBRM members specified are not contained in the list of
installation libraries. You can specify up to four libraries. Normal concatenation rules
are in effect—libraries specified first are searched first, and buffer space for the library
list is determined by the first library specified.
Installation Libraries
The installer entered the dsnames of common DBRM libraries that should be
allocated to any sessions. These libraries are included in the DBRM library list for a
plan that is created using the bind process. You can override the installed default
libraries by specifying new libraries in these fields.
Bind Plan PKLIST Setup Screen for Long Names
When you enter 2 (BIND PLAN PKLIST SETUP) on the Bind Plan Setup Menu, the Bind
Plan PKLIST Setup screen for long names shown in Figure F-11 is displayed. The Bind
Plan PKLIST Setup screen is used to enter one or two packages consisting of location
name, collection ID, and package ID. If more than two packages are needed, use the
EDITJCL option and add the additional packages to the DB2 parameter cards.
F-14
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure F-11. Bind Plan PKLIST Setup Screen
------------------- XPEDITER/TSO - BIND PLAN PKLIST SETUP -------------------
COMMAND ===>
Location Name 1 ===>
Collection ID 1 ===>
Package ID 1 ===>
Location Name 2 ===>
Collection ID 2 ===>
Package ID 2 ===>
Press ENTER to process or enter END command to terminate
The options on the Bind Plan PKLIST Setup screen are:
Location Name (1 and 2)
Specify the location of each DB2 package to be included in the bind.
Collection ID (1 and 2)
Specify the identifier of each package collection to be included in the bind.
Package ID (1 and 2)
Specify the ID of each package to be included in the bind.
Bind Package Facility Screen
Select option 4 (BIND PACKAGE FACILITY) from the Bind Facility Menu to display the
Bind Package Facility screen shown in the next three figures. Choose this option if you
are using DB2 8.1 or above and require support for 128-byte long names. To perform the
bind function, you must have DB2 authority.
The only valid command on this screen is RESTORE:
RESTORE
Restores the default values established during installation to all the fields on the
screen.
Binding the Application Plan or Package
Figure F-12. Bind Package Facility Screen (Top Portion)
-------------------COMMAND ===>
XPEDITER/TSO - BIND PACKAGE FACILITY
-------------------
More:
Submit Bind Method ===> BATCH
DB2 System ID ===>
Location Name ===>
Collection ID ===>
Owner ===>
Qualifier ===>
DBRM Member ===>
DBRM Library ===>
Copy Collection ID ===>
Copy Package ID ===>
Copy Version ID ===>
Press ENTER to process
+
(Batch/Editjcl/Foreground)
(Omit to use assigned default)
or
enter END command to terminate
Figure F-13. Bind Package Facility Screen (Middle Portion)
-------------------COMMAND ===>
XPEDITER/TSO - BIND PACKAGE FACILITY
-------------------
More:
Collection ID ===>
Owner ===>
Qualifier ===>
DBRM Member ===>
DBRM Library ===>
Copy Collection ID ===>
Copy Package ID ===>
Copy Version ID ===>
Action ===> ADD
Replace Version ID ===>
Currentdata ===> YES
Press ENTER to process
(Add/Replace)
(Yes/No)
or
enter END command to terminate
- +
F-15
F-16
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure F-14. Bind Package Facility Screen (Bottom Portion)
-------------------COMMAND ===>
XPEDITER/TSO - BIND PACKAGE FACILITY
-------------------
More:
-
Copy Version ID ===>
Action ===> ADD
(Add/Replace)
Replace Version ID ===>
Currentdata ===> YES
(Yes/No)
Explain ===> NO
(Yes/No)
Flag ===> I
(I/W/E/C)
Validate ===> BIND
(Run/Bind)
Isolation ===> RR
(Rr/Rs/Cs/Ur/Nc)
Release ===> COMMIT
(Commit/Deallocate)
SQLerror ===> NOPACKAGE
(Nopackage/Continue)
Path ===>
Press ENTER to process or enter END command to terminate
The values shown above are the recommended values, which will provide better
performance than the other listed options.
When you press Enter from this screen, the bind operation begins. You are binding the
File-AID for DB2 DBRM members with the DBRM member(s) you list in the DBRM
Member field and on the DBRM Libraries screen (described in “DBRM Libraries Screen”
on page F-12). You do not have to specify the File-AID for DB2 DBRM members because
they are automatically specified by the bind function.
Some of the options on the Bind Plan for FADB2 screen are described below. The
remaining options not covered here are documented in the applicable IBM manuals
describing the bind function.
Submit Bind Method
Specify the method to be used to invoke the DB2 command processor. Valid choices
are Batch, Editjcl, and Foreground. If Batch is specified, a job will be submitted to
bind the plan. Specifying Editjcl will invoke the ISPF edit facility with the JCL used
to execute in batch. The JCL and control cards can be modified before submitting or
saving them. If you specify Foreground, the DB2 command processor will be invoked
in the foreground.
DB2 System ID
Specify the non-blank DB2 subsystem name (SSN), recognizable to the DSN
command processor, to use for testing.
If no SSN is specified, the DSNLOAD dataset will not be allocated before the DSN
command is issued. Instead you must have previously allocated the DSNLOAD
dataset to ISPLLIB or in the STEPLIB, LINKLIST, or LPALIB concatenation.
Your plan is saved in the catalog of the specified subsystem.
Location Name
Optional value used to specify the location of the package for the bind operation.
Collection ID
Required. Specify the identifier of the package collection to be included in the bind,
following the DB2 defined syntax for names.
Binding the Application Plan or Package
F-17
Owner
Optional value used to specify the owner of the DB2 package.
Qualifier
Optional.
Path
Specify the path of the package. This field can contain 512 bytes of the entire 2048
bytes allowed by DB2 8.1.
Job Card for Bind Facility
Select option 5 (JOB CARD INFORMATION) from the Bind Facility Menu to display the
Job Card for Bind Facility screen shown in Figure F-15. Choose this option to define a Job
Card that will be used for Submit Bind Methods BATCH and EDITJCL.
The only valid command on this screen are CANCEL and END:
END or CANCEL
Exits without saving any modifications since pressing Enter and returns you to the
Bind Facility Menu screen.
Figure F-15. Job Card for Bind Facility Screen
------------------ XPEDITER/TSO - JOB CARD FOR BIND FACILITY ----------------
COMMAND ===>
The JOB CARD below is used for Submit Bind Methods BATCH and EDITJCL.
JOB CARD INFORMATION:
----*----1----*----2----*----3----*----4----*----5----*----6----*----7--
===> //ACMEJET0 JOB (ACCOUNT),'NAME',CLASS=A,MSGCLASS=X
===> //*
===> //*
===> //*
Press ENTER to Process or Enter END Command to Terminate
The JOB CARD that you must define will be used for Submit Bind Methods BATCH and
EDITJCL. It will be used to submit your JCL statements for processing by MVS. Refer to a
JCL manual for a description of proper MVS syntax.
You must begin the JOB statement on the first input line provided. Up to three
continuation lines may be used following the MVS JCL syntax rules for operand
continuation.
F-18
Xpediter/TSO and Xpediter/IMS PL/I User Guide
G-1
Appendix G.
DBCS Support
Appendix A.
App G
H
Xpediter/TSO and Xpediter/IMS lets you use the single-byte character set (SBCS), the
double-byte character set (DBCS), and mixed (a combination of DBCS and SBCS) data
streams in your application programs and Xpediter/TSO and Xpediter/IMS screen
functions, testing functions, and data manipulation during a test session.
The attributes of the SBCS, DBCS, and mixed data streams are as follows:
SBCS
An alphanumeric character set that lets one EBCDIC character occupy one
byte. It is used for languages that use 1-byte characters.
DBCS
A graphic character set that lets 1 character occupy two bytes. It is used for
languages, such as Japanese, that use ideographic characters that cannot be
represented in one byte.
Mixed
Data streams consisting of SBCS and DBCS characters. Special delimiters are
used to identify DBCS data in a mixed field. They are:
• Shift-out (X'0E', called SO) to show the beginning of DBCS data
• Shift-in (X'0F', called SI) to show the end of DBCS data
SO and SI are automatically inserted when you change shift status on the
terminal to begin and end DBCS data. SO and SI must always be paired in a
mixed data stream and are only displayed by using the appropriate control
keys on your terminal.
While most Xpediter functions operate normally with DBCS data streams, there are some
differences in how these fields are scrolled and how data is manipulated. This section
describes those differences.
Terminal Support
DBCS is supported only on terminal types where the ISPF variable ZDBCS is set to Yes.
When a test session is invoked, Xpediter checks the terminal type and switches the
character set translation appropriately to one of the following:
• EBCDIC English (no Katakana)
• EBCDIC Katakana (no lowercase English)
• EBCDIC English with DBCS (lowercase English and SBCS Katakana coexist)
• EBCDIC Katakana with DBCS (no lowercase SBCS English)
EBCDIC English and EBCDIC Katakana character sets are determined by an inquiry to the
ISPF terminal type default. DBCS capability is determined by an inquiry to the ISPF
ZDBCS variable.
When a Katakana (Japanese) terminal is detected, all lowercase English output strings
(messages, title, and text) that appear on Xpediter screens are converted to uppercase
English. DBCS lowercase characters are not affected.
H-2
Xpediter/TSO and Xpediter/IMS PL/I User Guide
CAUTION:
Do not change the SET LOWCASE value if the terminal type is 32xxKN. The results
are unpredictable.
Program Support
DBCS is supported by Xpediter in interactive mode only. DBCS can be used in standard
TSO, including IMS/DB and BTS, IMS/DC (MPP, BMP, IFP), and ISPF dialog programs.
Note:
DBCS is not supported in Batch Connect and native TSO.
DBCS Fields on the Source Display
The following table (refer to Table G-1) describes the areas on the Xpediter Source display
screen where DBCS data is valid. The DBCS Fields on the Xpediter Source Display Screen
table indicates whether the area is an input or output area, the field attributes, and a
description of what the data consists of.
DBCS user-defined words may contain both double-byte EBCDIC and double-byte nonEBCDIC characters.
Table G-1. DBCS Fields on the Xpediter Source Display Screen
Screen Area
Header line
I/O Attribute
Mixed
Displays SBCS and DBCS in the screen title.
Primary command line I/O
Mixed
Enter SBCS English Xpediter commands. Enter SBCS or DBCS
data names, paragraph names, and literals.
Message line
O
Mixed
Displays SBCS and DBCS in messages.
Source area
O
Mixed
Displays SBCS program words, SBCS or DBCS user-defined
words (data names, paragraph names, literals, and comments).
I/O
Mixed
Enter SBCS or DBCS user-defined words (data names,
paragraph names, and literals).
Inserted lines
Keep/Peek windows
Log and Show screens
O
Description
I/O
O
•
Alphanumeric fields:
Displays and allows entry of DBCS or SBCS data.
•
Graphic fields:
Displays and allows entry of DBCS data only.
Mixed
Mixed
Displays DBCS and SBCS data names, paragraph names,
literals, and source text.
Character set validation is based on field type (attribute) and terminal type. DBCS data in
a mixed field is validated using the following criteria:
1. All occurrences of SO are paired with SI (field level check).
2. All DBCS character lengths are even (field level check)
3. Each byte of a DBCS character is within a valid range X'41' to X'FE' and the DBCS
blank (X'4040').
If 1 and 2 are not met, the DBCS field is converted to SBCS representation. If 3 is not met,
the DBCS character is shown as a nondisplayable character (X'4195').
CAUTION:
Opening a Keep or Peek window on a group-level variable in which any of the
subordinate items have DBCS data will display indistinguishable characters in the
DBCS Support
H-3
window. Xpediter treats the kept group-level variable as an alphanumeric field and
converts the entire window to SBCS representation. If all of the subordinate items
have SBCS data only, it is acceptable to open a Keep or Peek window on the grouplevel variable.
Scrolling DBCS Data
When the PEEK or KEEP command is used, the data is displayed in fully scrollable
windows. 30 bytes are displayed at a time. Data exceeding the 30 bytes limit can be
displayed by scrolling left or right using the DLEFT or DRIGHT commands or by using
the (,(n,),)n, and :n line commands.
Scrolling is always by byte, not by character. When scrolling mixed or DBCS fields, the
display window will be adjusted when the result will split a DBCS character. The basic
rule is that if the first byte of a DBCS character is in the window at the left or right
boundaries, the complete character is displayed. The right boundary is extended by one
byte to display the character. If the second byte of a DBCS character is in the left
boundary of the window, the field is truncated by one byte on the left and the character
is not displayed.
When a mixed field is truncated, Xpediter inserts and deletes the SO and SI delimiters as
needed to maintain the integrity of the SO/SI pairing. These inserted SO/SI delimiters are
for display purposes only and are not saved in the underlying data. When a DBCS field is
truncated, the field’s attribute byte is inserted to adjust the truncation.
The following pages show examples of the scrolling behavior of mixed and DBCS fields.
Scrolling Mixed Fields
The following 45-byte string is used to show the truncation behavior in a mixed field:
----+----1----+----2----+----3----+----4----+
1234<D1D2D3D4>5678<D5D6D7D8>ABCD<DaDbDcDd>EFG
Example 1
When a SBCS character or SO/SI is at the left or right boundary of the window, no
truncation occurs and the character is displayed.
For example, after scrolling the sample string 14 bytes left, the SBCS character 5 is at the
left boundary of the Keep window and the SBCS character F is at the right boundary of
the window. The result is shown below in Figure G-1:
Figure G-1. SBCS Example 1—Scrolling the Sample String 14 Bytes Left
------------------------------ XPEDITER/TSO - SOURCE ---------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: PGMNAME
MODULE: MODNAME
COMP DATE: 09/30/1996
COMP TIME: 15:14:45
+----2----+----3----+----4----
MORE-> K 02 DATA NAME
> 5678<D5D6D7D8>ABCD<DaDb DcDd>EF
------------------------------------------------- Before PGMNAME/AMODE 24 <>
Example 2
When the first byte of a DBCS character is at the left boundary of the window, the
character is displayed and an SO is inserted outside the window to maintain the SO/SI
pairing.
H-4
Xpediter/TSO and Xpediter/IMS PL/I User Guide
For example, after scrolling the sample string 5 bytes left, the first byte of the DBCS
character D1 is at the left boundary of the window. The result is shown in Figure G-2:
Figure G-2. DBCS Example 2—Scrolling the Sample String 5 Bytes Left
------------------------------ XPEDITER/TSO - SOURCE ---------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: PGMNAME
MODULE: MODNAME
COMP DATE: 09/30/1996
COMP TIME: 15:14:45
----1----+----2----+----3----+
MORE-> K 02 DATA NAME
> <D1D2D3D4>5678<D5D6D7D8>ABCD<Da>
------------------------------------------------- Before PGMNAME/AMODE 24 <>
Example 3
When the second byte of a DBCS character is at the left boundary of the window, the
character is not displayed and an SO is inserted at the left boundary to maintain the
SO/SI pairing. However, if you displayed the underlying hexadecimal values, the first
byte of the window contains the hexadecimal value of the second byte of the truncated
character.
For example, after scrolling the sample string 6 bytes left, the second byte of the DBCS
character D1 is at the left boundary of the window. The result is shown in Figure G-3:
Figure G-3. DBCS Example 3—Scrolling the Sample String 6 Bytes Left
------------------------------ XPEDITER/TSO - SOURCE ---------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: PGMNAME
MODULE: MODNAME
COMP DATE: 09/30/1996
COMP TIME: 15:14:45
---1----+----2----+----3----+-
MORE-> K 02 DATA NAME
> <D2D3D4>5678<D5D6D7D8>ABCD<DaDb>
------------------------------------------------- Before PGMNAME/AMODE 24 <>
Example 4
When the first byte of a DBCS character is at the right boundary of the window, the
window is extended by one byte and the complete DBCS character is displayed. The first
byte is displayed at the right boundary of the window and the second byte is displayed
outside the window. An SI is also inserted outside the window to maintain the SO/SI
pairing.
For example, after scrolling the sample string 5 bytes left, the first byte of the DBCS
character Dc is at the right boundary of the window. The result is shown in Figure G-4:
Figure G-4. DBCS Example 4—Scrolling the Sample String 5 Bytes Left
------------------------------ XPEDITER/TSO - SOURCE ---------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: PGMNAME
MODULE: MODNAME
COMP DATE: 09/30/1996
COMP TIME: 15:14:45
-1----+----2----+----3----+---
MORE-> K 02 DATA NAME
> <D3D4>5678<D5D6D7D8>ABCD<DaDbDc>
------------------------------------------------- Before PGMNAME/AMODE 24 <>
Example 5
When the second byte of a DBCS character is at the right boundary of the window, the
character is displayed and an SI is inserted outside the window to maintain the SO/SI
pairing.
DBCS Support
H-5
For example, after scrolling the sample string 9 bytes left, the second byte of the DBCS
character Dc is at the right boundary of the window. The result is shown on the following
page in Figure G-5 on page G-5:
Figure G-5. DBCS Example 5—Scrolling the Sample String 9 Bytes Left
------------------------------ XPEDITER/TSO - SOURCE ---------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: PGMNAME
MODULE: MODNAME
COMP DATE: 09/30/1996
COMP TIME: 15:14:45
1----+----2----+----3----+----
MORE-> K 02 DATA NAME
> <D3D4>5678<D5D6D7D8>ABCD<DaDdDc>
------------------------------------------------- Before PGMNAME/AMODE 24 <>
Scrolling DBCS Fields
The truncation behavior is slightly different when scrolling DBCS fields. To show the
behavior, the 40-byte DBCS string shown below is used:
----+----1----+----2----+----3----+----4
D1D2D3D4D5D6D7D8D9D0DaDbDcDdDeDfDgDhDiDj
Example 6
When the first byte of a DBCS character is at the left boundary of the window or the
second byte of a DBCS character is at the right boundary, the character is displayed.
For example, after scrolling the sample string 2 bytes left, the first byte of the DBCS
character D2 is at the left boundary of the window and the second byte of the DBCS
character Df is at the right boundary of the window. The result is shown in Figure G-6:
Figure G-6. DBCS Example 6—Scrolling the Sample String 2 Bytes Left
------------------------------ XPEDITER/TSO - SOURCE ---------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: PGMNAME
MODULE: MODNAME
COMP DATE: 09/30/1996
COMP TIME: 15:14:45
--+----1----+----2----+----3--
MORE-> K 03 DATA NAME
> D2D3D4D5D6D7D8D9D0DaDbDcDdDeDf
------------------------------------------------- Before PGMNAME/AMODE 24 <>
Example 7
When the second byte of a DBCS character is at the left boundary of the window, the
character is not displayed and the attribute byte is inserted in the first byte of the
window to adjust the truncation. Although the DBCS character is not displayed, the left
boundary still contains the hexadecimal value of the second byte of the truncated
character.
When the first byte of a DBCS character is at the right boundary of the window, the
window is extended by one byte on the right and the character is displayed.
For example, after scrolling the sample string 9 bytes left, the second byte of the DBCS
character D5 is at the left boundary of the window and the first byte of the DBCS
character Dj is at the right boundary. The result is shown in Figure G-7:
H-6
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure G-7. DBCS Example 7—Scrolling the Sample String 9 Bytes Left
------------------------------ XPEDITER/TSO - SOURCE ---------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: PGMNAME
MODULE: MODNAME
COMP DATE: 09/30/1996
COMP TIME: 15:14:45
1----+----2----+----3----+----
MORE-> K 03 DATA NAME
>
D6D7D8D9D0DaDbDcDdDeDfDgDhDiDj
------------------------------------------------- Before PGMNAME/AMODE 24 <>
Manipulating DBCS Data
DBCS data displayed in the Keep or Peek windows can be manipulated the same as SBCS
data. However, depending on the field attribute (SBCS, DBCS, or mixed), there are some
rules that must be observed when you type over, insert, delete, and move DBCS and SBCS
data.
Manipulating DBCS data in the Keep and Peek windows follows the same truncation
behavior as described in “Scrolling DBCS Data” on page G-3 and is controlled by the field
attribute (SBCS, DBCS, or mixed). However, the underlying data beyond the visible
window may be affected. Displaying the hexadecimal values with the PEEKH primary
command or the PH or H line command lets you see the actual underlying values.
The following pages describe the behavior when you manipulate DBCS data.
Typing Over Data
Typing over a DBCS field with SBCS data is not allowed. You can type over a mixed field
with SBCS or DBCS data. However, the underlying data beyond the visible window may
be affected. The same applies when inserting and deleting data. For example, if you type
over a DBCS substring with SBCS characters, the SO/SI bytes that are inserted or deleted
are saved in the underlying data.
Example 8
The following mixed field is used in this example (refer to Figure G-8) of typing SBCS
data over DBCS data.
Figure G-8. Example 8—Typing SBCS Data Over DBCS Data
------------------------------ XPEDITER/TSO - SOURCE ---------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: PGMNAME
MODULE: MODNAME
COMP DATE: 09/30/1996
COMP TIME: 15:14:45
----+----1----+----2----+----3
MORE-> K 02 DATA NAME
> <D1D2D3D4>1234<D5D6D7D8>5678<Da>
04F4F4F4F0FFFF04F4F4F4F0FFFF04
E21222324F1234E25262728F5678E2
------------------------------------------------- Before PGMNAME/AMODE 24 <>
Type the SBCS character 1 over the first byte of the DBCS character D1.
Example 9
After pressing Enter, the window appears as shown in Figure G-9:
DBCS Support
H-7
Figure G-9. Example 9—Typing SBCS Character 1 Over DBCS Charter D1
------------------------------ XPEDITER/TSO - SOURCE ---------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: PGMNAME
MODULE: MODNAME
COMP DATE: 09/30/1996
COMP TIME: 15:14:45
----+----1----+----2----+----3
MORE-> K 02 DATA NAME
> <>1 <D3D4>1234<D5D6D7D8>5678<Da>
00F404F4F0FFFF04F4F4F4F0FFFF04
EF10E2324F1234E25262728F5678E2
------------------------------------------------- Before PGMNAME/AMODE 24 <>
Note that the hexadecimal values have changed. The following describes the result of the
changes in hexadecimal values:
• The SO in byte 1 of the window is the original SO in the underlying data.
• The SI in byte 2 was inserted when you shifted to type in the SBCS character 1.
• The SBCS character 1 is displayed in byte 3. D1 does not appear because the first byte
was typed over.
• A blank was inserted in byte 4 and a SO was inserted in byte 5 to show the beginning
of DBCS data. D2 is not displayed because both bytes could not be displayed.
• Bytes 6, 7, 8, and 9 contain the DBCS characters D3 and D4.
• The SI in byte 10 is the original SI in the underlying data.
Inserting Data
Inserting characters is not allowed unless null characters (blanks) are present in the
display window. If you try to insert more characters than the number of null characters,
the terminal simply will not accept the extra characters.
Example 10
The following DBCS field is used for this example (refer to Figure G-10) of inserting DBCS
characters:
Figure G-10. Example 10—Inserting DBCS Characters in a DBCS Field
------------------------------ XPEDITER/TSO - SOURCE ---------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: PGMNAME
MODULE: MODNAME
COMP DATE: 09/30/1996
COMP TIME: 15:14:45
----+----1----+----2----+----3
MORE-> K 03 DATA NAME
> <D1D2D3D4D5D6D7D8D9D0>
04F4F4F4F4F4F4F4F4F4F044444444
E21222324252627282920F00000000
------------------------------------------------- Before PGMNAME/AMODE 24 <>
Insert the DBCS character D1 in bytes 4 and 5 and repeat the character D2 in bytes 12
through 17.
Example 11
The result is shown in Figure G-11:
H-8
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure G-11. Example 11—Inserting DBCS Character D1 in Bytes 4 and 5
------------------------------ XPEDITER/TSO - SOURCE ---------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: PGMNAME
MODULE: MODNAME
COMP DATE: 09/30/1996
COMP TIME: 15:14:45
----+----1----+----2----+----3
MORE-> K 03 DATA NAME
> <D1D1D2D3D4D2D2D2D5D6D7D8D9D0>
04F4f4F4F4F4F4F4F4F4F4F4F4F4F0
E2121222324222222252627282920F
------------------------------------------------- Before PGMNAME/AMODE 24 <>
The result is that the inserted characters filled up the window. The hexadecimal values
show that the inserted characters are now a part of the underlying data.
Deleting Data
When characters are deleted with the DELETE key, the null characters (blanks) are filled
from the end of the window, not from the end of the field. When characters are deleted
with the ERASE (EOF) key, the window starting from the cursor position is blanked out,
not the entire field.
Example 12
The following mixed field (refer to Figure G-12) is used to show the behavior when
deleting characters:
Figure G-12. Example 12—Display of Behavior When Deleting Characters
------------------------------ XPEDITER/TSO - SOURCE ---------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: PGMNAME
MODULE: MODNAME
COMP DATE: 09/30/1996
COMP TIME: 15:14:45
----+----1----+----2----+----3
MORE-> K 02 DATA NAME
> 1234<D1D2D3D4>5678<D5D6D7D8>AB
FFFF04F4F4F4F0FFFF04F4F4F4F0CC
1234E21222324F5678E25262728F12
------------------------------------------------- Before PGMNAME/AMODE 24 <>
Use the DELETE key to delete the DBCS characters D1, D2, D3, and D4. The following is
displayed before you press the Enter key.
Example 13
Note that the hexadecimal values (refer to Figure G-13) in the example below have not
changed.
Figure G-13. Example 13—Using the DELETE Key to Delete DBCS Characters
------------------------------ XPEDITER/TSO - SOURCE ---------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: PGMNAME
MODULE: MODNAME
COMP DATE: 09/30/1996
COMP TIME: 15:14:45
----+----1----+----2----+----3
MORE-> K 02 DATA NAME
> 1234<>5678<D5D6D7D8>AB
FFFF04F4F4F4F0FFFF04F4F4F4F0CC
1234E21222324F5678E25262728F12
------------------------------------------------- Before PGMNAME/AMODE 24 <>
After pressing the Enter key, the following is displayed.
DBCS Support
H-9
Example 14
In the example (refer to Figure G-14 on page G-9), note that the hexadecimal values have
changed—the values of the deleted characters are no longer displayed.
Figure G-14. Example 14—Deleted Characters No Longer Displayed
------------------------------ XPEDITER/TSO - SOURCE ---------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: PGMNAME
MODULE: MODNAME
COMP DATE: 09/30/1996
COMP TIME: 15:14:45
----+----1----+----2----+----3
MORE-> K 02 DATA NAME
> 1234<>5678<D5D6D7D8>AB
FFFF00FFFF04F4F4F4F0CC44444444
1234EF5678E25262728F1200000000
------------------------------------------------- Before PGMNAME/AMODE 24 <>
Moving Data
The MOVE command can be used to move DBCS or SBCS data into a mixed alphanumeric
field. However, you cannot move a G type literal into this type of field.
A DBCS literal can be moved to a DBCS field as long as the appropriate SO/SI are inserted.
When the DBCS data is moved to the field, the field is padded with the DBCS blank
(X'4040') and the SO/SI pairing is deleted.
Example 15
The following DBCS field (refer to Figure G-15) is used to show the behavior when
moving DBCS data:
Figure G-15. Example 15—Displayed Behavior When Moving DBCS Data
------------------------------ XPEDITER/TSO - SOURCE ---------------------------
COMMAND ===> MOVE G’<D2D3D4D5D6>’ TO N-NAME
SCROLL ===> CSR
PROGRAM: PGMNAME
MODULE: MODNAME
COMP DATE: 09/30/1996
COMP TIME: 15:14:45
----+----1----+----2----+----3
MORE-> K 03 DATA NAME
> D1D1D1D1D1D1D1D1D1D1D1D1D1D1D1
4F4F4F4F4F4F4F4F4F4F4F4F4F4F4F
212121212121212121212121212121
------------------------------------------------- Before PGMNAME/AMODE 24 <>
Move the DBCS characters D2D3D4D5D6 to N-NAME.
Example 16
After pressing the Enter key, the move is performed and the window appears as shown in
Figure G-16. Note that the new string replaced the existing data and the field was padded
with DBCS blanks.
Figure G-16. Example 16—Results of Moving DBCS Characters to N-NAME
------------------------------ XPEDITER/TSO - SOURCE ---------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: PGMNAME
MODULE: MODNAME
COMP DATE: 09/30/1996
COMP TIME: 15:14:45
1----+----2----+----3----+----
MORE-> K 03 DATA NAME
> D2D3D4D5D6
4F4F4F4F4F44444444444444444444
222324252600000000000000000000
------------------------------------------------- Before PGMNAME/AMODE 24 <>
H-10
Xpediter/TSO and Xpediter/IMS PL/I User Guide
WHEN Command and DBCS Data
The WHEN command can be used with DBCS data. If the command includes a literal
parameter, the literal must be preceded by the G literal identifier. The G literal identifier
indicates to Xpediter/TSO that the literal contains shift-out/shift-in (SO/SI) characters.
You may not mix SBCS and DBCS characters in the literal.
Example 17
Figure G-17. Example 17—WHEN Command Example with DBCS Characters in Literal
------------------------------ XPEDITER/TSO - SOURCE ---------------------------
COMMAND ===> WHEN GRAPHICVAR = G'<D1D2D3D4>'
SCROLL ===> CSR
PROGRAM: PGMNAME
MODULE: MODNAME
COMP DATE: 09/30/1996
COMP TIME: 15:14:45
In Figure G-17, GRAPHICVAR is defined as a graphic variable. The G indicates that the
literal includes SO/SI characters. When the compare is executed, the SO/SI characters are
disregarded.
I-1
Appendix I.
Debugging a Client Application and DB2 Stored
Procedure
Appendix A.
I
App H
The following instructions pertain to a specialized technique that allows for the
debugging of a client application (i.e., a DB2 batch program) which calls a DB2 stored
procedure, while using a single TSO userid.
Note:
This technique will only work if the client application is submitted as a batch
program set up to run with Xpediter/TSO Batch Connect.
CAUTION:
To become familiar with the process outlined below, it may be beneficial to step
through the process a few times using the stored procedure Initial Verification
Procedure (IVP) found in the Xpediter/TSO and Xpediter/IMS Installation and
Configuration Guide.
Note the following instructions:
1. Access the Xpediter/TSO Process Execute JCL screen (Figure H-1) by entering a Y in
the User Supplied WLM JCL field of the Xpediter/TSO Process DB2 Stored
Procedures screen (Figure 8-2 on page 8-4).
Figure H-1. Xpediter/TSO Process Execute JCL Screen
-------------------- XPEDITER/TSO - PROCESS EXECUTE JCL -----------------------
COMMAND ===>
Primary Commands: blank (Process JCL)
Browse
Edit
SEtup
STatus
ISPF Library:
Project ===> PFHABC0
Group
===> BATCON
===>
===>
===>
Type
===> JCL
Member ===>
(Blank for member selection list)
Other Partitioned or Sequential Dataset:
Dataset Name ===> 'CPWR.XT.SLXTSAMP'
Volume Serial ===>
(If not cataloged)
Press ENTER to process or enter END command to terminate
2. Type the name of your pre-defined dataset in the Dataset Name field of the Process
Execute JCL screen and press Enter to access the second Process Execute JCL screen
(Figure H-2 on page H-2). If you wish to have a dataset name provided for this
example, use the dataset name of the Xpediter/TSO SAMPLIB. The default name is:
‘CPWR.XT.SLXTSAMP’
I-2
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure H-2. Second Process Execute JCL Screen
----------------- XPEDITER/TSO - PROCESS EXECUTE JCL ------- ROW 00031 OF 00043
COMMAND ===>
SCROLL ===> PAGE
Line Commands: B (Browse) E (Edit) S (Select for processing)
Dataset: 'CPWR.XT.SLXTSAMP'
Name
Prompt
Size
Created
Changed
ID
-------------------------------------------------------------------------------
_ JCL015
102
2000/10/17
2000/10/17 12:29:17
PFHABC0
_ JCL015O
96
2000/10/17
2000/10/17 10:17:51
PFHABC0
_ LISTPROC
6
2000/10/24
2000/10/26 09:47:46
PFHABC1
_ LISTPRO5
6
2000/10/24
2000/10/24 13:17:49
PFHABC0
_ TRIJCLSM
42
2000/10/24
2000/10/24 12:00:38
PFHABC1
S TRIJCLST
46
2000/10/24
2000/10/24 11:55:50
PFHABC1
_ TRISPMB
47
2000/10/23
2000/10/23 11:47:21
PFHABC0
_ TRISPT6
34
2000/10/23
2000/10/23 11:27:22
PFHABC0
_ UNLOAD1
28
2000/10/16
2000/10/17 09:18:34
PFHABC0
_ XTUNLD
60
2000/10/17
2000/10/17 09:33:51
PFHABC0
_ XTUNLDO
53
2000/10/17
2000/10/17 09:25:44
PFHABC0
_ XTUPDATE
484
2000/10/17
2000/10/17 09:25:37
PFHABC0
_ X70CW40
435
2000/10/17
2000/10/17 12:45:35
PFHABC0
**End**
3. Scroll down (PF8) to the member name which has been defined for the stored
procedure. For the continuity of this example, the member name is TRIJCLST. Type
an S in the field to the left of TRIJCLST and press Enter. If you do not receive any
error messages, you should have returned to the Select Job Step Screen (similar to
Figure H-3, Select Job Step Screen # 3).
The Dataset field should now include the member name (TRIJCLST), enclosed in
parentheses.
4. Type SUBmit on the Command line of the Xpediter/TSO Select Job Step Screen # 3
(as shown in Figure H-3). Type an I in the field immediately to the left of the
PROGRAM field of the Select Job Step Screen # 3 (Figure H-3). Press Enter to submit
the DB2 stored procedure. You should receive an online message at the bottom of
your screen stating that your job was submitted.
Figure H-3. Xpediter/TSO Select Job Step # 3
PROFILE: DB2SP--------- XPEDITER/TSO - SELECT JOB STEP ---------- Row 1 of 1
COMMAND ===> SUB
SCROLL ===> PAGE
Line Commands:
Primary Commands:
I - Interactive testing
Edit
- Display converted selected steps
U - Unattended testing
END
- Exit without processing
Followed optionally by:
RUN
- Submit and connect
C - Code Coverage
SEtup - Setup work datasets
T - Code Coverage, plus TDO
SUBmit - Convert selected steps and submit
F - System Flow (F, CF or TF)
STatus - Display status of submitted job(s)
Dataset: 'CPWR.XT.SLXTSAMP(TRIJCLST)'
PROGRAM
INITSCR POSTSCR
STEPNAME PROCNAME PROCSTEP EXEC PGM
----------------------------------- -----------------------------------------
I___ DSNX9WLM
________ ________
________ SERVER
IEFPROC
******************************* Bottom of data ********************************
5. Press Enter and you will view a four line message similar to the message displayed in
Figure H-4 on page H-3. If you do not receive the “Waiting for Connection” message,
you will view a message at the bottom of your screen stating:
JCL HAS BEEN MODIFIED TO DEBUG WITH XPEDITER
Debugging a Client Application and DB2 Stored Procedure
I-3
Figure H-4. Stored Procedure Waiting for Connector Message
+XPD0011 VTAM NODE: A01CS000 USER: PFHABC0
JOBNAME: PFHABC0S
+XPD0012 JOBNUMBER: JOB12001 STEP: IEFPROC
PROCSTEP:
+XPD0013 IS WAITING FOR CONNECTION ON SYSTEM CW01.
***
6. Press Enter to remove the messages from your screen. You should remain in the Select
Job Step screen # 3 (Figure H-3 on page H-2).
7. Type STatus on the Command line of the Select Job Step screen # 3 and press Enter to
access the Xpediter/TSO Status screen # 1 shown in Figure H-5.
Figure H-5. Xpediter/TSO Status Screen # 1 (Stored Procedure)
--------------------------- XPEDITER/TSO - STATUS ---------------------------
COMMAND ===>
SCROLL ===> PAGE
Line Commands: A (Attach) B (Browse) C (Cancel)
USERID => PFHABC0
I (Info)
P (Purge)
R (Requeue)
Jobname ===>
(Specific jobname, blank for TSO userid, or
'*' for all jobs using batch connect)
Sort Sequence ===> JOBID
(JOBNAME/JOBID)
CMD JOBNAME JOBID
STATUS H CONNECT MESSAGE
-------------------------------------------------------------------------------
__ PFHABC0S JOB12006 Running N Ready
******************************* Bottom of data ********************************
8. Type an asterisk (*) in the Jobname field of the Xpediter/TSO Status Screen # 1
(Figure H-5) and press Enter to refresh the Status screen and view the status of the
stored procedure JOB. A single line of data is displayed on Status Screen # 1 (Figure H5). This line displays the stored procedure Jobname in the JOBNAME field and a
valid JOBID number. The CONNECT field should indicate that the stored procedure
is Ready to connect.
Note: The default security for Batch Connect requires that the jobname must begin
with your USERID.
9. Using Xpediter Batch Connect (which is OPTION 3 (BATCH) on the Xpediter/TSO
Primary Menu), set up the client application that has been selected to call the stored
procedure. It will duplicate steps 1 through 7.
10. Type an asterisk (*) in the Jobname field of the Xpediter/TSO Status Screen # 2
(Figure H-6 on page H-4) and press Enter to refresh the Status screen and view the
status of both the client application Job and the stored procedure.
I-4
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure H-6. Xpediter/TSO Status Screen # 2 (Client Application and Stored Procedure)
--------------------------COMMAND ===>
Line Commands: A (Attach)
I (Info)
XPEDITER/TSO - STATUS
B (Browse)
P (Purge)
Jobname ===>
Sort Sequence ===> JOBNAME
C (Cancel)
R (Requeue)
--------------- Row 1 of 2
SCROLL ===> CSR
USERID => PFHABC0
(Specific jobname, blank for TSO userid, or
'*' for all jobs using batch connect)
(JOBNAME/JOBID)
CMD JOBNAME JOBID
STATUS H CONNECT MESSAGE
-------------------------------------------------------------------------------
__ PFHABC0C JOB12006 Running
Ready
__ PFHABC0S JOB12001 Running
Ready
******************************* Bottom of data ********************************
11. A new line of data is now displayed containing both a valid Jobname (your Client
Jobname in the JOBNAME field) and a valid JOBID number. The CONNECT field
should indicate that both the Client JOB and the stored procedure are Ready to
connect. After you have verified that your Client JOB is Ready to connect, type an A
(next to the client application JOBNAME) in the CMD field of the Xpediter/TSO
Status screen # 3 (Figure H-7). Press Enter to connect to the client application JOB.
Figure H-7. Xpediter/TSO Status Screen # 3 (Client Application and Stored Procedure)
--------------------------COMMAND ===>
Line Commands: A (Attach)
I (Info)
XPEDITER/TSO - STATUS
B (Browse)
P (Purge)
Jobname ===>
Sort Sequence ===> JOBNAME
C (Cancel)
R (Requeue)
--------------- Row 1 of 2
SCROLL ===> CSR
USERID => PFHABC0
(Specific jobname, blank for TSO userid, or
'*' for all jobs using batch connect)
(JOBNAME/JOBID)
CMD JOBNAME JOBID
STATUS H CONNECT MESSAGE
-------------------------------------------------------------------------------
A
PFHABC0C JOB12006 Running
Ready
__ PFHABC0S JOB12001 Running
Ready
******************************* Bottom of data ********************************
12. The source for the client application should appear on the Xpediter/TSO Source
screen # 1 (refer to Figure H-8 on page H-5). Enter a Before breakpoint on the line
where the stored procedure is called.
Debugging a Client Application and DB2 Stored Procedure
I-5
Figure H-8. Xpediter/TSO Source Screen #1 (Client Application)
------------------------- XPEDITER/TSO - SOURCE ------------------------------
COMMAND ===>
SCROLL ===> CSR
BEFORE BREAKPOINT ENCOUNTERED
----+----1----+----2----+----3
MORE->
01 SQL-PLIST1
> ......TRISPM ..B...~0.....Q..
** END **
-------------------------------------------- Before TRISPM:182/AMODE 31 <>
000181
PERFORM SQL-INITIAL UNTIL SQL-INIT-DONE
=====> B
CALL 'DSNHLI' USING SQL-PLIST1.
000183
IF SQLCODE IS LESS THAN ZERO
000184
MOVE SQLCODE TO ERROR-SQLCODE
000185
MOVE 'CALL' TO ERROR-TABLE
000186
PERFORM SQL-ERROR
000187 A
GOBACK.
000188
SET TX TO TRIANGLE-TYPE.
000189
ADD 1 TO N-CNTR (TX).
000190
*
000191
ENDING-PARA.
000192
CLOSE INFILE.
000193
CALL 'TRIRPT' USING NAME-N-CNTR-TABLE.
000194
*
13. Enter any desired Xpediter/TSO testing commands that you require.
14. When the Before breakpoint on the stored procedure call is encountered, type GO 1
on the Command line and press Enter.
15. Immediately following issuance of the GO 1 command, the client application will
“lock” (control has been transferred to the stored procedure). Press the Attention key
twice. The screen that is displayed contains the following two lines:
XPED
ENTER ATTENTION OPTION OR HELP FOR LIST OF OPTIONS
16. Type DISC (to disconnect) on the line below the message displayed on the screen,
and press Enter. This will return you the Status screen without terminating the client
application test.
17. Type an A (next to the stored procedure JOBNAME) in the CMD field of the
Xpediter/TSO Status screen # 4 (refer to Figure H-9) and press Enter. This will connect
you to the stored procedure.
Figure H-9. Xpediter/TSO Status Screen # 4 (Client Application and Stored Procedure)
--------------------------COMMAND ===>
Line Commands: A (Attach)
I (Info)
XPEDITER/TSO - STATUS
B (Browse)
P (Purge)
Jobname ===> *
Sort Sequence ===> JOBNAME
C (Cancel)
R (Requeue)
--------------- Row 1 of 2
SCROLL ===> CSR
USERID => PFHABC0
(Specific jobname, blank for TSO userid, or
'*' for all jobs using batch connect)
(JOBNAME/JOBID)
CMD JOBNAME JOBID
STATUS H CONNECT MESSAGE
-------------------------------------------------------------------------------
__ PFHABC0C JOB12006 Running
Ready
A
PFHABC0S JOB12001 Running
Ready
******************************* Bottom of data ********************************
18. The source for the stored procedure should appear on the Xpediter/TSO Source
Screen # 2 (Figure H-10 on page H-6).
I-6
Xpediter/TSO and Xpediter/IMS PL/I User Guide
Figure H-10. Xpediter/TSO Source Screen # 2 (Stored Procedure)
------------------------- XPEDITER/TSO - SOURCE ------------------------------
COMMAND ===>
SCROLL ===> CSR
BEFORE BREAKPOINT ENCOUNTERED
---
000010
01 TST-REC
> 345
000014
01 TYPE-OF-TRIANGLE
> ??
INVALID DECIMAL
** END **
------------------------------------------------ Before TRISPT/AMODE 31 <>
=====> B PROCEDURE DIVISION
USING TST-REC
000016
TYPE-OF-TRIANGLE
000017
VALIDATE-TRIANGLE
000018
ADD A B GIVING A-N-B.
000019
ADD A C GIVING A-N-C.
000020
ADD B C GIVING B-N-C.
000021
IF (B-N-C NOT > A) OR (A-N-C NOT > B) OR (A-N-B NOT > C)
000022
MOVE 4 TO TYPE-OF-TRIANGLE.
000023
DETERMINE-TYPE.
000024
IF TYPE-OF-TRIANGLE = 4
000025
NEXT SENTENCE
000026
ELSE
000027
IF (A = B) AND (B = C)
000028
MOVE 1 TO TYPE-OF-TRIANGLE
19. Enter any desired Xpediter/TSO testing commands that you require.
20. To return to the client application, type GO at the end of the stored procedure and
press Enter. If you had specified the number 1 in the Maximum Number of Tests
field when setting up the stored procedure for debugging with Xpediter/TSO, you
will now be placed in the session log dataset with a TEST COMPLETED message.
Entering GO will cleanly end the stored procedure test. If you had specified a number
greater than 1 in the Maximum Number of Tests field when setting up the stored
procedure for debugging with Xpediter/TSO, the stored procedure will ‘lock’ (control
has been returned to the client application). Press the Attention key twice. The
screen that is displayed contains the following two lines:
XPED
ENTER ATTENTION OPTION OR HELP FOR LIST OF OPTIONS
21. Type DISC (to disconnect) on the line below the message displayed on the screen,
and press Enter. This will return you the Status screen without terminating the stored
procedure environment.
22. Type an A (next to the client application JOBNAME) in the CMD field of the
Xpediter/TSO Status screen # 3 (refer to Figure H-7 on page H-4) and press Enter. This
will connect you to the client application.
23. You should now be able to view the Xpediter/TSO Source Screen # 3 (refer to Figure
H-11 on page H-7) that displays the client application, just after the stored procedure
call.
Debugging a Client Application and DB2 Stored Procedure
I-7
Figure H-11. Xpediter/TSO Source Screen # 3 (Client Application)
-------------------------- XPEDITER/TSO - SOURCE ------------------------------
COMMAND ===>
SCROLL ===> CSR
PROGRAM: TRISPM
MODULE: TRISPM
COMP DATE: 10/23/2000 COMP TIME:11:52:35
COBOL K
TX
> 1
INDEX
000059
05 SQLCODE
> +000000000
FULLWORD
** END **
-------------------------------------------- Before TRISPM:183/AMODE 31 <>
000181
PERFORM SQL-INITIAL UNTIL SQL-INIT-DONE
000182 B
CALL 'DSNHLI' USING SQL-PLIST1.
=====>
IF SQLCODE IS LESS THAN ZERO
000184
MOVE SQLCODE TO ERROR-SQLCODE
000185
MOVE 'CALL' TO ERROR-TABLE
000186
PERFORM SQL-ERROR
000187 A
GOBACK.
000188
SET TX TO TRIANGLE-TYPE.
000189
ADD 1 TO N-CNTR (TX).
000190
*
000191
ENDING-PARA.
000192
CLOSE INFILE.
000193
CALL 'TRIRPT' USING NAME-N-CNTR-TABLE.
000194
*
24. Continue repeating steps 15 through 23 to switch back and forth between the stored
procedure and the client application. For the stored procedure, when the Maximum
Number of Tests (specified when you first set up the stored procedure test) has been
reached, you will be positioned in the Xpediter Log Dataset screen with the message:
TEST COMPLETED. When this message appears, type GO on the command line and
press Enter to exit the stored procedure.
25. Because you entered GO 1 in step 15, you must now reattach to the client application
and allow it to run to completion. This is normally done by entering the GO
command.
I-8
Xpediter/TSO and Xpediter/IMS PL/I User Guide
G-1
Glossary
abend. An error condition that results in abnormal termination of a program.
absolute address. An address that can reference
the specified memory location without further
modification.
active module. The module in which execution
is suspended.
during execution of a conditional statement. For
Code Coverage, this methodology designates a
specific type of statistic. Branch Coverage is supported only for COBOL and must be implemented
to indicate whether the next verb in succession is
intended for execution. The collection of Branch
Coverage statistics is optional during a Code Coverage session.
Qualifying condition statement types for Branch
Coverage include IF, ON n, and WHEN. In terms of
reliability, Branch Coverage is considered the most
thorough method required for the testing of
specialized application programs.
active source file. See current source display.
address. A unique nonnegative integer that identifies a byte location in main memory.
address space. The range of addresses available to
a programmer.
alternate entry points. An alternate entry point
is created whenever an ENTRY statement is used in
COBOL, even if the ENTRY statement is the first
statement in the Procedure Division.
array. A collection of one or more elements with
the same characteristics grouped into one or more
dimensions.
assemble. The preparation of a machine language
program from a symbolic language program by
substituting absolute operation codes for symbolic
operation codes and absolute or relocatable
addresses for symbolic addresses.
Assembler language processor. One of the language processors provided by Compuware, this
language processor accepts Assembler output,
builds work records, sorts and merges the records,
and merges the records with the listing to produce
processor control blocks that can then be used as
input to other Compuware products.
base address. The beginning address of the storage area where the CSECT or DSECT resides.
base register. A general-purpose register used to
store a base address.
batch. Processing in which jobs are grouped
(batched). The jobs are executed sequentially, and
each job must be processed to completion before
the following job can begin execution.
BDAM. Basic direct access method.
Branch Coverage. When referencing Xpediter/Code Coverage (if installed at your site),
Branch Coverage is defined as a methodology for
tracking the number of paths which were taken
breakpoint. A location or offset (paragraph or
statement) within the program where Xpediter
“breaks” or temporarily suspends normal program
execution to perform another function.
C370 language processor. One of the language
processors provided by Compuware, this language
processor accepts C compiler output, builds work
records, sorts and merges the records, and merges
the records with the listing to produce processor
control blocks that can then be used as input to
other Compuware products
CA-Optimizer. A COBOL productivity and optimization product for the OS and OS/VS environments. CA-Optimizer optimizes COBOL programs.
It works on the object code of a program, reducing
the size of the program and its run time by eliminating redundant machine instructions.
case sensitivity. Whether a group of letters is
uppercase or lowercase.
CICS. Customer information control system.
COBOL language processor. One of the language
processors provided by Compuware, this language
processor accepts COBOL compiler output, builds
work records, sorts and merges the records, and
merges the records with the listing to produce processor control blocks that can then be used as
input to other Compuware products.
code coverage. The concept of measuring and
reporting on how much of one or more programs
have been executed by a set of tests. (see also Xpediter/Code Coverage)
column template. A dashed line depicting column positions. When debugging with Xpediter, a
column template is displayed above each group
item and each nonnumeric elementary item. The
length of the column template corresponds to the
length of the variable to be displayed as defined in
the picture clause.
CMS. Conversational monitor system.
G-2
Xpediter/TSO and Xpediter/IMS PL/I User Guide
command area. The area of any display used to
enter Xpediter primary commands. The command
area is designated as the left side of the second line
of the source display.
command delimiter. A character used to separate
commands in a list of commands entered simultaneously. The character used should be the same as
the ISPF command delimiter. If the Xpediter and
ISPF command delimiters are not the same, ISPF
will break the stream down into illogical sections
to be passed on to Xpediter one at a time for parsing.
command, CICS. In CICS, an instruction similar
in format to a high-level programming language
statement. CICS commands begin with the
pseudo-verb EXEC (either EXEC CICS or EXEC
DLI) and are terminated by END-EXEC. They can
be issued by an application program to make use
of CICS facilities.
command-language statement. Synonymous
with command in relation to CICS.
command stacking. A method of entering multiple commands simultaneously by separating each
command by a special delimiter. Command stacking is valid when testing with Xpediter/TSO only
if you are using ISPF version 2.1 or higher.
communication area (COMMAREA). An area
that is used to pass data between tasks that communicate with a specific terminal. The area is also
used to pass data between programs within a task.
conditional expression. Any of the valid COBOL
expressions supported by Xpediter that test conditions to select between alternate paths of control
depending upon the truth value of the condition.
CSECT. Control section.
current source display. The program currently
displayed on the Source screen. It is named in the
third line of the Source screen.
data area. Storage space defined and reserved at
assembly time for insertion and manipulation of
data at execution time.
date/time stamp. The date and time of compilation that marks the load module. Xpediter stores
the date/time stamp in the header record of the
DDIO file. If there is a mismatch between the load
module stamp and the DDIO file stamp, Xpediter
responds with a message in the session log.
DB2 stored procedure. See stored procedure.
DDIO. A Compuware file access method.
DDIO file. A generic name for an Xpediter source
listing file.
declaration statement. In PL/I, a DECLARE statement that specifies the attributes of a name.
declarative. Directives that reserve defined areas
of storage (DS statements) or define constant values (DC statements).
default delimiter. The delimiter set by Xpediter.
dimension. The size of a table or array and the
arrangement of its elements.
directive. A statement that tells the assembler to
take a special action and does not generate object
code. For example, START, DSECT, and END are
directives.
displacement. The number of bytes from the first
byte of the storage area.
DL/I. Data language 1. IBM’s database management facility provided by the IMS/VS database
program products.
doubleword. A binary constant that has a length
of eight bytes and can be aligned on a doubleword
boundary (a location whose address is divisible by
eight).
DSECT. Dummy control section. Used by Assembler to format an area of storage without producing any object code.
dump. Hexadecimal representation of storage
that may contain data useful for diagnosing an
error.
duplication factor. A value that indicates the
number of times to generate the data specified
immediately following the duplication factor.
effective address. The address that results from
adding a base register value and a displacement
value.
enhanced FIND. For COBOL only, the FIND command has additional keywords that provide the
ability to search data relationships and program
structures.
entry point. The alternate name supplied in the
ENTRY statement on the link-edit control cards:
By default in COBOL, it is the program name.
execution monitor. The Xpediter execution
monitor is used to allocate the test data and the
environment to run the test, load and monitor
execution of your program, and display and format the data in your program.
G-3
explicit declaration. In PL/I, a DECLARE statement that specifies the attributes of a name. Same
as declaration statement.
figurative constant. A compiler-generated value
referenced through the use of certain reserved
words. The reserved word can be written in a program without having been defined.
File-AID for DB2. A DB2 database management
and SQL development and analysis tool.
fullword. A binary constant that has a length of
four bytes and can be aligned on a fullword
boundary (a location whose address is divisible by
four).
general-purpose registers. The 16 general-purpose registers are separate from main storage. They
are numbered from 0 through 15 and are referenced by number. These 32-bit or 64-bit registers
are used for binary arithmetic and to reference
main storage positions by using base-displacement
addressing.
halfword. A binary constant that has a length of
two bytes and can be aligned on a halfword
boundary (a location whose address is divisible by
two).
HELP facility. Online support that can be
invoked for clarification or aid in relation to a
problem.
IBM MQ for z/OS. IBM MQ for z/OS (formerly
MQSeries and WebSphere MQ) allows z/OS applications to use message queuing to participate in
message-driven processing. With message-driven
processing, applications can communicate across
different platforms by using the appropriate IBM
MQ for z/OS products. All IBM MQ for z/OS products implement a common application programming interface for whatever platform the
applications are able to run on. The calls made by
the applications and the messages they exchange
are common.
INCLUDE library. Under MVS, a partitioned
dataset created and maintained by the user allocated to the ddname XINCLUDE. This library contains test scripts generated by a test session or used
to set up a session.
INCLUDE test script. A predefined test script
executed through the INCLUDE command. The
commands in the test script are executed as they
are read in, as if they had been entered serially
from the terminal.
index register. A register whose content is added
to (or subtracted from) the absolute address which
is derived from a combination of a base address
with a displacement.
initial test script. A special test script executed at
the beginning of a session that is used to set up
the testing environment. This test script is not
executed through the INCLUDE command. Rather,
it is specified on the appropriate environment test
menu or command parameter.
intercommunication facilities. A term covering
intersystem communication (ISC) and multiregion
operation (MRO).
intersystem communication. Communications
between separate systems by means of SNA facilities.
Keep window. The window at the top of the
Source screen that automatically displays the values of data items referenced by the current execution line whenever execution halts. It also displays
any data items specified by the KEEP command.
label. The entry in the name field of an Assembler language statement. The Assembler option
supports label names of up to 30 characters.
language processor (LP). A processor that converts Assembler or compiler output into input for
other Compuware products.
License Management System (LMS). Facility
that enables you to centrally administer Compuware product License Certificates and manage
access to Compuware products at your site. The
LMS includes several components that enable you
to establish, maintain, diagnose, and upgrade
access to those Compuware products licensed by
your enterprise. The LMS replaces the utility previously known as the Customer Profile Utility.
line commands. Xpediter commands that are
entered by typing over the compiler-generated
statement numbers.
link pack area. In OS/VS2, an area of virtual storage containing reenterable routines loaded at IPL.
It can be used concurrently by all tasks in the system.
literal. Any alphanumeric string of characters
enclosed in apostrophes (’ ’).
load libraries. In the MVS environment, the set
of partitioned datasets containing the link-edited
application programs. Xpediter searches the list
for the load module of the program to be tested.
macroinstruction. An instruction that causes the
assembler to process a predefined set of statements
called a macro definition. The statements from the
G-4
Xpediter/TSO and Xpediter/IMS PL/I User Guide
macro definition replace the macroinstruction (or
macro call) in the source program.
message area line. The line below the command
area, generally the third line of any source display
used to report brief error or informational messages.
MQSeries. See “IBM MQ for z/OS”.
multiregion operation. Communication
between CICS systems in the same processor without the use of SNA facilities.
pausing. All pause breakpoint commands direct
Xpediter to unlock the keyboard and return control to the user. Any number of Xpediter commands can be entered while Xpediter is paused.
PCB. Program communication block.
PL/I language processor. One of the language
processors provided by Compuware, this language
processor accepts PL/I compiler output, builds
work records, sorts and merges the records, and
merges the records with the listing to produce processor control blocks that can then be used as
input to other Compuware products.
MVS. Multiple virtual storage.
native CMS. The VM/CMS environment without
the use of ISPF.
native TSO. The MVS/TSO environment without
the use of ISPF.
nonrepresentable characters. Characters that
cannot be printed or displayed. By default Xpediter displays nonrepresentable characters as periods (.).
NOQ environment. An Xpediter/TSO environment used to test IMS MPP or BMP programs when
BTS is not available for testing. IMS database calls
can be made since Xpediter/TSO will provide
addressability to any IOPCBs. However, all calls to
the message queue must be skipped.
object module. A module that is the output of an
Assembler or compiler.
offset. A relative location or position within a
data area.
operating system. Software that controls the execution of jobs. It can provide resource allocation
and scheduling.
PA keys. The terminal program access keys. Their
definitions are unaltered by Xpediter.
panels. Menus or screens presented on a display
terminal.
paragraph. For COBOL, a paragraph is a subdivision of a COBOL program: A paragraph contains
one or more statements or sentences that work as
a unit to perform a specific set of operations.
During an Assembler test, Xpediter/TSO considers
a paragraph to be a name, a label on one or more
valid executable instructions, or a name label on
an EQU * or DS 0H that is followed by one or more
valid executable instructions.
primary commands. Xpediter commands that
are entered from the command area, as opposed to
Xpediter line commands which are entered by typing over the compiler-generated statement number.
procedure. In PL/I, a block of programming statements that starts from various points in a program
by CALL statements and processes data passed to it
from the calling block.
procedure division. The section of a COBOL program that contains executable instructions.
PSW. Program status word. An operating system
control block defining the current status and location of a program that is executing.
Quickstart. A File Allocation Utility (FAU)
enhancement which provides the ability for users
to point Xpediter at the JCL needed to run a test,
therefore eliminating the need to use the FAU.
register. A device capable of storing a specified
amount of data, such as one word (32 bit mode) or
two words (64 bit mode).
review mode. An Xpediter dynamic analysis feature for COBOL programs that lets the programmer review the execution flow backwards.
screens. Menus or panels presented on a display
terminal.
script dataset/file. A dataset or file created and
used by Xpediter to record each executable command entered during a debugging session. The
script dataset can be copied into an INCLUDE
library, a sequential file, or another partitioned
dataset to be used again.
scroll amount area. The furthest right area of the
second line of the source display. It is used to display the current scroll amount, whenever scrolling
is applicable.
G-5
scrollable fields. If a variable’s length exceeds
the screen width, the field becomes scrollable.
Scrollable fields are identifiable by the highlighted
MORE-> message in the line command area. When
the screen is scrolled left or right, only the scrollable values and their associated column templates
actually move.
scrolling. The ability to move the screen window
across the data in any of four directions.
sentence. For COBOL, a sentence is a statement
or group of statements that ends with a period.
session log. A file created and used by Xpediter to
record each command entered during a debugging
session and the responses made to it.
session script. A file created by Xpediter containing the commands entered during a debugging
session. This file can be saved as a member of an
INCLUDE dataset to be used as input to another
debugging session.
Shared Directory. A variable length record VSAM
Relative Record Dataset (RRDS) that contains language processor (LP) directory records necessary to
process LP database members.
Source display screen. The Xpediter screen used
to display the program source. Within this display
screen, Xpediter commands can be entered from
the command area or by typing over the compilergenerated statement number. The data on the
screen is scrollable in all four directions.
SUB environment. The Xpediter/TSO environment that is used to test stand-alone subroutines
that make IMS database calls.
System Flow. A feature which allows the user to
capture linkage information between programs
during an Xpediter/CICS, Xpediter/TSO, or Xpediter/IMS test, storing the information in a Code
Coverage repository. This data can be analyzed
using Xpediter/Code Coverage to report on transaction (Xpediter/CICS) and program invocations
that occurred during the test session.
temporary breakpoint (GOTO). A breakpoint
that occurs after a GOTO command is entered and
before the target paragraph or statement is executed. The breakpoint is temporary and provides
the opportunity to ensure that the target statement is the one intended.
test script. A predefined stream of Xpediter commands used to set up, run, or rerun a debugging
session.
test script library. A partitioned dataset allocated
to the ddname XINCLUDE.
trace breakpoint. A breakpoint set by execution
of the TRACE command in which modules are
traced upon entry and exit.
unit testing subroutines. Testing a subroutine as
a stand-alone program; that is, without the calling
module being present.
user test scripts library. See INCLUDE library.
source listing. A compiled listing and other
information about a file stored in a source listing
file.
source listing file. A file containing source listings and accessed by DDIO.
split screen. A capability provided by ISPF/PDF
that allows you to partition the display screen into
multiple “logical” areas.
unattended batch. Processing data without interacting with the debugging session from your terminal. Xpediter debugging commands are read
from a test script and the output from the test session is written to the session log.
VCON. V-type address constant. Reserves storage
for the address of a location in a CSECT that lies in
another source module. A VCON is often used to
branch to the specified external address.
SQL. Structured query language.
VSAM. Virtual Storage Access Method.
stored procedure. A stored procedure is a userwritten program stored at the DB2 server that can
be invoked by a client application. A stored procedure can contain most statements that an application program usually contains. A stored procedure
can also execute Structured Query Language (SQL)
statements at the server and application logic for a
specific function. A stored procedure can be written in COBOL, Assembler, C, PL/I, or many other
different languages, depending on the platform
where the DB2 server is installed.
structure. A collection of data items.
WebSphere MQ. See “IBM MQ for z/OS”.
wide screen. A terminal screen that is 32 or 43
lines long, and 133 characters wide.
working storage. A section of a COBOL program
used to define the data items that are used in a
program.
Workload Manager (WLM). A component of
MVS used for scheduling and dispatching of work
within an MVS system. WLM is a prerequisite for
G-6
Xpediter/TSO and Xpediter/IMS PL/I User Guide
the testing and debugging of DB2 stored procedures in an Xpediter/TSO environment.
Xpediter/Code Coverage. A product that collects
run-time execution data from the Xpediter/TSO,
Xpediter/CICS, and Xpediter/IMS debuggers to
help users analyze, understand, improve, and document how much of their code has been tested
and how execution flows from one program to
another. Code Coverage interacts with DevEnterprise to make code coverage results viewable
online and to give users an idea of where the risk
lies in their testing of a program.
Xpediter ISPF interface. The Xpediter ISPF interface is a collection of menus, CLISTs or EXECs,
and programs created to assist you in allocating
test data and supplying the information required
to start an Xpediter/TSO or Xpediter/IMS debugging session.
Xpediter/TSO. A symbolic debugging and testing tool used by COBOL, Assembler, PL/I, and C
language programmers to simplify the tasks of
diagnosing and fixing programming errors by giving the programmer control over the execution of
the program interactively at the source level.
I-1
Index
Special Characters
./T cards, B-17
A
A (After) breakpoint line command, 5-3
A (Attach) line command
with Batch Connect, 4-18, 8-1, B-9
with Batch Connect under ROSCOE, 4-29
AA SNAP command, 4-22, 4-32, 4-37, 6-1–6-2
abend, G-1
abend code display, 2-3
abend script, 4-22, 4-32, 4-42, 4-44
Abend-AID report, 6-1–6-2, 7-15
abends, 1-3, 4-22, 4-32, 4-37, 4-44, 7-15
AA SNAP command, 4-22, 4-32, 4-37, 6-1–6-2
Abend-AID report, 6-1–6-2, 7-15
diagnostic message, 1-3, 7-15
diagnostic summary in session log, 6-1
IMS scheduling, 7-13
interception of, 4-22, 4-32, 5-3, 5-7, 5-12, 5-27, 6-1,
7-15
occurring during batch debugging, 4-22, 4-32
pinpointing possible causes, 6-1
recording statements leading up to, 6-3
Snapshot report, 6-1–6-3, 6-5
absolute address, G-1
ACBLIB
dataset, C-19
library, B-13, B-17, B-21
Acrobat PDF online documentation, xiv
active module, G-1
active source file, G-1
ADABAS, 1-4, 4-7, 9-3
adding statements to program, 5-31, 5-35
address, G-1
address space, G-1
ADSCPDEF, 4-11
ADSIM012, 7-16
after breakpoint, 5-3, 5-21
automatically set on END, 5-3
automatically set on RETURN, 5-3
set on CALL verb, 5-30
set on module, 5-7
set on statement, 5-3, 5-6
AFTER command, 4-46, 5-3, 5-21
ALL keyword, 5-26, 5-29
ALLOCATE command, 3-2, 4-8–4-9, 4-21, 4-31, 5-32,
7-3, 7-16
allocating
DB2 resources, F-4, F-11
from JCL, 4-8
XPIMSDMP DD, 7-15
ALTER
INDEX statement, 5-35
STOGROUP statement, 5-35
TABLE statement, 5-35
TABLESPACE statement, 5-35
altering values
displayed by KEEP command, 5-14
displayed by PEEK command, 5-14
alternate entry points, G-1
AMODE, 1-3, 4-44, 9-1
AMODE display, 2-3
analyzing DB2 applications, 4-3
APARM data from JCL, overriding, C-18
application plan
binding with File-AID for DB2, 4-2, F-1
name, 9-4, B-6, B-14, B-20, B-22, F-3, F-10
applications
batch, 4-7
that issue DB2 database calls, 9-4
that issue IMS/DB database calls, 9-3–9-4, B-20
that process QSAM files, B-4, B-18
that process VSAM files, 9-3, B-4, B-18
dialog, 4-7, B-7
ISPF, 9-4
Hogan BATCHPEM, 4-7, B-18
Hogan BMPPEM, 4-8
Hogan DLIPEM, 4-7, B-20
Hogan IMSPEM, 4-7, B-23, B-35
IMS/DC that make DB2 calls, 9-4
new ID name, B-10
that access shared DL/I databases, 9-4
array, G-1
ASIS keyword, 2-4
assemble, G-1
Assembler language processor, G-1
Assembly language applications, 9-2
assigning addressability to PSB, B-13
AT command, 5-38–5-39, 5-41
ATM terminal, 7-1, B-26, B-31, B-35
Attention key processing of dependent region, Xpediter/IMS, 7-14
Attention key processing under Xpediter/IMS, 2-4
Automatic Keep function, 2-2
automatic Keep window, 2-2
B
B (Before) breakpoint line command, 3-5, 5-3, 5-22
background (batch) processing, 4-10, 4-37, 4-40
base address, G-1
base register, G-1
batch, G-1
applications
ADABAS, 1-4, 4-7, 9-3
BMP, 4-7
DB2, 1-4, 4-7, B-11
IDMS/DB, 1-4, 4-7, 9-3
IMS/DB, 1-4, 4-7, 9-3–9-4, B-11
running under Hogan, B-18, B-20
standard, 1-4, 4-7, 9-3, B-4
SUPRA, 1-4, 4-7, 9-3
that make DB2 and IMS/DB calls, 9-4
that make EXEC SQL calls without IMS/DB, 9-4
TIS, 4-7, 9-3
I-2
Xpediter/TSO and Xpediter/IMS PL/I User Guide
TOTAL, 4-7, 9-3
IMS PROCS, B-13, B-17, B-21, B-25
job
connecting to, 4-18
selecting steps, 4-11
submitting, 4-10
memory requirements, E-1
mode, 1-4, 4-10, 4-37, 4-40
modifying your execution JCL, 4-39
BATCH (option 3), 4-2
Batch Connect facility, 1-1, 4-10, H-3
commands, 4-21
connection security, 4-18
disconnect terminal, 4-19
editing JCL, 4-18
JCL conversion, 4-20
mode, 4-10
screens
Edit, 4-18, 4-29
Process Execute JCL, 4-12
Select Job Step, 4-14
testing multiple job steps, 4-19
unattended testing, 4-21
under ROSCOE, 4-22
Batch menu, 1-1
BATCHBTS, 4-42
BATCHDB2, 4-42
BATCHIMS, 4-41
BATCHPEM, 1-4, B-18
applications, 4-7
driver module, 4-7, B-19
environment
option, 4-7, B-18
parameters, B-18
test screen, B-18
BDAM, G-1
before breakpoint, 3-5, 3-7, 5-3, 5-6–5-7, 5-9, 5-21–
5-22
automatically set on main procedure, 5-3
set on module, 4-43, 5-6–5-9
BEFORE command, 4-46, 5-3, 5-6, 5-9, 5-21–5-22
bind, 4-2, F-1
DBRM members and DBRM Libraries screen, F-2,
F-4, F-9, F-12
job card, F-17
bit mode display, 2-3
BMP
databases accessed
DB2, 7-13
Fast Path, 7-13
full function, 7-13
GSAM, 7-8, 7-13
ending debugging session, 7-10
program, 4-7, 7-1–7-2, 7-7, 7-12, B-13–B-14, B-17,
B-21–B-22
message-driven, 7-12
nonmessage-driven, 7-12
region, 1-5, 4-7–4-8, B-31, B-40
BMP/IFP
environment option, 4-7, 7-7, B-31
test screen, B-31
BMPPEM, 1-4, B-20
applications, 4-8
driver, 4-8, B-41
environment option, 4-8, B-40
test screen, B-40
Branch Coverage, G-1
breakpoint, G-1
breakpoint commands
AFTER, 5-3, 5-21
BEFORE, 4-46, 5-3, 5-6, 5-9, 5-21–5-22
COUNT, 5-10, 5-29
MAX, 5-10
GO, 5-3
GO 1, 5-9, 5-21
GO n, 5-8
INTERCEPT, 5-3, 5-7
ONETIME, 5-4
PAUSE, 5-4, 5-11, 5-31
TRACE, 5-12, 5-21, 5-27
WHEN, 5-4, 5-10, 5-21
breakpoints, 1-3
after, 5-3, 5-21
automatically set on END, 5-3
automatically set on RETURN, 5-3
set on CALL verb, 5-6, 5-30
before, 3-5, 3-7, 5-3, 5-6–5-7, 5-9, 5-21–5-22
automatically set on main procedure, 5-3
set on module, 4-43, 5-8
conditional, 5-8–5-10, 5-12
explicit, 5-4, 5-7
GO 1, 5-21
module-level, 3-7
more than one on same source line, 5-7
onetime, 5-4
removing
with DELETE command, 5-3
setting, 3-5, 3-7, 5-4, 5-6–5-10, 5-12, 5-22
trace, 5-21
when, 5-21
BTS, 1-4, 4-7
default Hogan PEM driver, B-25
environment
option, 4-7, 9-4, B-14
parameters, B-14
memory requirements, E-1
test screen, B-14
testing, B-25
Transaction/Program Menu, B-3, B-17, B-25
BTSIN
cards, B-16, B-24
command, B-3, B-17, B-25
dataset, B-16, B-24
buffer allocation
normal, 7-5, 7-8, B-29, B-32, B-37, B-40
overflow, 7-5, 7-8, B-29, B-32, B-37, B-41
BULLETIN (option B), 4-3
bypassing code, 1-3, 5-29
using GOTO command, 5-32
using SKIP command, 5-30
C
C370 language processor, G-1
CA-Optimizer, 9-2, G-1
CA-Telon code generator, 9-1
call
activities, 5-27
ADABAS, 4-7, 9-3
CBLTDLI, 4-7, 9-3
DB2 database, 9-4, B-11
DL/I, 7-14, 9-4
DLI, 9-3, B-12
dynamic SQL, 4-48, 5-37
I-3
EXEC SQL, 9-4
IDMS/DB, 4-7, 9-3
IMS/DB, 4-7, 9-3–9-4, B-11, B-20
SUPRA, 4-7, 9-3
TIS, 4-7, 9-3
TOTAL, 4-7, 9-3
called module, 5-8, 5-27, 5-30
calling module, 5-27, B-12
CANCEL command, F-17
cards
./T, B-17, B-25
BTSIN, B-16, B-24
case sensitivity, G-1
CBLTDLI, 4-7, 9-3
CDMF
databases, B-20, B-41
files, B-20, B-41
CEEENTRY, 9-7
Checkpoint Restart, 9-1
CICS, G-1
connecting to, 4-49
region, 9-4
CICS (option CS), 4-3
class codes
new, 7-11, B-31, B-34, B-39, B-43
old, 7-11, B-31, B-34, B-39, B-43
CLIST, 7-5, 7-9, B-5–B-6, B-8, B-10, B-13, B-18, B-20,
B-22, B-25, B-29, B-33, B-37, B-41
CLOSE statement, 5-35
CMS, G-1
COBOL language processor, G-1
code
bypassing, 5-30, 5-32
class, 7-11, B-31, B-34, B-39, B-42
new, 7-11, B-31, B-34, B-39, B-43
old, 7-11, B-31, B-34, B-39, B-43
generators, 9-1
IOPCB, 9-3
code coverage, G-1
CODE COVERAGE (option C), 4-3
Code Coverage Test? field, 7-6, 7-9, B-5, B-8, B-13,
B-18, B-20, B-22, B-26, B-30, B-33, B-38, B-41, B-45
Collection ID field, F-3, F-11
COLOR command, D-3
column template, 5-15, 5-18, G-1
command
area, G-2
CICS, G-2
delimiter, G-2
procedure, B-10
CLIST, B-10
EXEC, B-10
processing, 2-4
stacking, 2-4, G-2
delimiter (semicolon), 2-4
stream, 4-40, 4-43
executing at beginning of session, 4-40, 7-4, 7-8,
B-4, B-7, B-12, B-16, B-19, B-21, B-24, B-28,
B-32, B-36, B-40
executing at end of session, 7-4, 7-8, B-5, B-7,
B-12, B-16, B-19, B-21, B-24, B-28, B-32, B-36,
B-40
COMMAND field, 2-1, 2-4
command-language statement, G-2
commands
AA SNAP, 4-22, 4-37, 6-1–6-2
AFTER, 4-46, 5-3, 5-21
ALLOCATE, 3-2, 4-8–4-9, 4-21, 4-31, 5-32, 7-3, 7-16
AT, 5-38–5-39, 5-41
BEFORE, 4-46, 5-3, 5-6, 5-9, 5-21–5-22
BTSIN, B-3, B-17, B-25
CONNECT, 4-17, 5-3
COUNT, 5-10, 5-25, 5-29
MAX, 5-10
DELETE, 5-3, 5-31
DEMO, D-3
DISC, 4-19, H-5–H-6
DLEFT (PF22), 2-4
DLI, 9-3
DOCUMENT, B-4
DOWN (PF8/PF20), 2-3, 7-3, B-3, B-15, B-23, B-27
DRIGHT (PF23), 2-4
DSN RUN, 9-4, B-6
END, F-17
END (PF3/PF15), 2-3, 4-3, 4-49, 5-23
EXCLUDE, 5-26
ALL, 5-26
EXIT (PF4/PF16), 2-3, 5-8, 7-2, 7-7, 7-10, 7-14, B-36
FADB2, 4-48, 5-33
BROWSE, 5-33–5-34
EDIT, 5-33–5-34
FIND, D-8, E-5
EXCLUDE, 5-26
NOLINES, 5-26
FIND (PF5), 2-3, 5-25
CSR (PF14), 2-3
INDIRECT (PF17), 2-3
GO (PF12/PF24), 2-4, 3-5, 5-3, 5-7–5-8, 5-22, 5-27,
5-29, 6-4, 7-2, 7-7
GO 1 (PF9/PF21), 2-3, 5-8–5-9, 5-21
GO n, 5-8
GOTO, 5-29, 5-32
GPREGS, 5-13, 5-23, 5-25
OFF, 5-25
HELP, 7-2
HELP (PF1/PF13), 2-2–2-3, 4-3, 6-4
INCLUDE, 4-43
INSERT, 4-47, 5-11, 5-20–5-22, 5-29
INTER, 7-3, 7-10, 7-13, B-3, B-30, B-33, B-38, B-42
INTERCEPT, 4-40–4-41, 5-3, 5-7
INITSCR, 4-43
KEEP, 4-44, 4-47, 5-10, 5-13, 5-15–5-16, 5-20, 5-22,
5-30
LEFT (PF10), 2-4
LOAD, 5-6
LOCATE, D-8, E-4
LOCATE * (PF6/PF18), 2-3, 5-14
LOG, 5-27, 6-3, 7-3, B-3
MEMORY, 5-13, 5-23–5-24
MERGE, D-7–D-8
MOVE, 4-44, 5-22
OFF, D-3
ON, D-3
ONETIME, 5-4
PAUSE, 5-4, 5-11, 5-31
PEEK, 3-6, 4-44, 4-47, 5-13, 5-15, 5-20
CSR (PF2), 2-3
PROFILE, D-8
PSEUDOSOURCE, 5-4, 5-41
RESTORE, D-3, F-2, F-7, F-9, F-14
RETEST, 5-8
RFIND, D-8, E-5
RIGHT (PF11), 2-4
RUN, 4-16
SCRIPT, 4-45, B-3
SET
I-4
Xpediter/TSO and Xpediter/IMS PL/I User Guide
ABENDSCR, 4-22, 4-32, 4-44
ABNDEXIT, 6-5, 7-15
AUTOKEEP, 2-3, 5-14
CAPS, 2-4
CBLTRAP, 4-43
CMDSIZE, 2-1, 2-4, 5-4, 5-10
COLS, 6-2
DELAY, 3-3, 5-13, 5-27
DUMP, 6-5, 7-15
DYNAMIC, 4-43, 9-5
EXCLUDE, 4-43, 9-6
HEXMODE, 4-43
LETRAP, 9-7
LOGSIZE, 4-43, 5-20
LOWCASE, G-2
LOWCASE ASIS, 2-4
NONDISP, 4-43, 5-21
PF, 2-3, 4-21, 4-31
STATIC, 4-43, 9-3, 9-7
TRANSFER, 4-43
SETUP, 3-2, 7-3, B-3, F-2–F-4, F-9, F-11–F-12
SHOW
ALLOCATES, E-2
COUNT, 5-29
IMSFUNC, 9-3
MODULES, 6-4
OPTIONS, D-9
PREVIOUS, 5-25, 5-27–5-28
REGION, E-1
SETS, D-9
SKIP, 5-30
SOURCE, 5-6–5-7, D-3
SUBMIT, 4-11, 4-16
SYSIN, B-3, B-19, B-21, B-41
TEST, 4-40–4-41
INITSCR, 4-43
TRACE, 4-46, 5-12, 5-21, 5-25, 5-27
ALL LABELS, 5-28
ALL STATEMENTS, 5-27
MAX, 5-12, 5-27
MODULES, 5-27
TUTORIAL, D-4
UP (PF7/PF19), 2-3, 7-3, B-3, B-15, B-23, B-27
WHEN, 4-47, 5-4, 5-10, 5-21
XPED, 4-40–4-41
COMMENT ON statement, 5-35
COMMIT statement, 5-35
communication area (COMMAREA), G-2
compile, 4-3
bind facility, 4-5, F-1
convert compile JCL, 4-4
date, 2-2
edit allocation list, 4-5
facility, 4-5
time, 2-2
Compuware FrontLine customer support website, xiv
concatenation, F-6, F-13
XTASKLIB, B-8
conditional
breakpoint, 5-8, 5-11
setting, 5-8–5-12
construct, 5-11
expression, 5-10, G-2
CONNECT command, 4-17, 5-3
control
program execution, 3-5, 3-7
using AFTER command, 5-3
using BEFORE command, 5-3, 5-6, 5-9, 5-22
using COUNT command, 5-10, 5-29
using GO 1 command, 5-9
using GO command, 5-3
using GO n command, 5-8
using INTERCEPT command, 5-3, 5-7
using ONETIME command, 5-4
using PAUSE command, 5-4, 5-11, 5-31
using TRACE command, 5-12, 5-27
using WHEN command, 5-4, 5-10
with MAX keyword, 5-10
speed of execution, 1-3, 5-13, 5-27
SYSIN file, B-19, B-21, B-41
test defaults, D-9
conversational transactions, 7-11
conversion from previous release, 4-2
COUNT command, 5-10, 5-25, 5-29
MAX keyword, 5-10
counter field, 5-10, 5-29
CREATE
DATABASE statement, 5-35
INDEX statement, 5-36
STOGROUP statement, 5-36
SYNONYM statement, 5-36
TABLE statement, 5-36
TABLESPACE statement, 5-36
VIEW statement, 5-36
CSECT, B-4, B-12, G-2
CSR scroll amount, 2-1
CSS Utilities, E-3
CTLROUTE, 4-11
current
breakpoint, 2-3, 5-2
execution point, 5-2
source display, G-2
D
D (Delete) line command, 5-15, 5-19, 5-31
data
contents
displaying, 3-6, 5-13
modifying, 3-7, 5-13
references
DEFine, 5-15
MODify, 5-15
USE, 5-15
values
entered in session log, 5-21
data area, G-2
Data Control Block (DCB), 1-3
Data Division, 3-6
entering D (Display) line command in, 5-15
entering K (Keep) line command in, 5-15
showing variable values, 5-14
DATA field, 7-4, B-28, B-37
DATA(31), 4-44
database
ADABAS, 4-7, 9-3
calls, B-11
CDMF, B-20, B-41
DB2
accessed by BMP programs, 7-13
accessed by IFP programs, 7-13
accessed by MPP programs, 7-12
DBT HSSR, 9-3
DL/I, 9-4
I-5
shared between CICS region and TSO, 9-4
Fast Path, 7-5, 7-8, B-29, B-32, B-37, B-41
accessed by BMP programs, 7-13
accessed by IFP programs, 7-13
accessed by MPP programs, 7-12
full function
accessed by BMP programs, 7-13
accessed by IFP programs, 7-13
accessed by MPP programs, 7-12
GSAM, 7-8
accessed by BMP programs, 7-8, 7-13
IDMS/DB, 4-7, 9-3
SUPRA, 4-7, 9-3
TIS, 4-7, 9-3
TOTAL, 4-7, 9-3
DATACOM/DB, 4-7
memory requirements, E-1
date/time stamp, G-2
DB2, 1-4
accounting code, 8-5, B-44
allocating resources, F-4, F-11
application plan, 4-2, F-3, F-10
name of, B-6, B-14, B-20, B-22
application plan or package, F-1
authority, F-2, F-7, F-9, F-14
batch program, H-1
database calls, 4-48, B-11
databases, 7-12, 9-3
EXEC SQL statements, 4-7, 5-33–5-34, 7-6, 7-9, B-6,
B-8, B-14, B-18, B-20, B-22, B-26, B-30, B-33, B-38,
B-42
File-AID for DB2, 4-48, 5-35, F-1
libraries, B-8
memory requirements, E-1
plan name, 9-4, B-6, B-14, B-20, B-22
program, 4-47
prototyping applications, 4-47, 5-31
subsystem name (SSN), 7-6, 7-9, 9-4, B-6, B-8, B-14,
B-18, B-20, B-22, B-26, B-30, B-33, B-38, B-42, F-3,
F-8, F-10, F-16
system ID, 7-6, 7-9, 9-4, B-6, B-8, B-14, B-18, B-20,
B-22, B-26, B-30, B-33, B-38, B-42, F-3, F-8, F-10,
F-16
tables, 4-48, 5-33–5-34
dynamically access, 4-48
inspecting, 5-33–5-34
test, 7-6, 7-9, 9-4, B-6, B-8, B-14, B-18, B-20, B-22,
B-26, B-30, B-33, B-38, B-42
DB2 stored procedures, 8-1, H-1, G-2
security considerations, 8-12
DB2 Stored Procedures screen, B-43
DBB program, B-13, B-17, B-21–B-22
DBCS (double-byte character set) support, G-1
mixed data support, G-1
SBCS (single-byte character set) support, G-1
DBD library, 9-3, B-13, B-17, B-21
DBRM
library, F-2, F-4, F-9, F-12
members, F-2, F-4, F-9, F-12
members and DBRM Libraries screen, F-2, F-4, F-9,
F-12
modules, F-6, F-13
DBT HSSR, 9-3
DDIO, G-2
DDIO file, G-2
DDIO file facility, E-3
ddname
SYSUDUMP, 6-5, 7-15
XINCLUDE, 4-43–4-44
XPIMSDMP, 7-15
deallocate, F-4, F-12
debugging
DB2 programs, 4-47
IMS subroutines as stand-alone, B-13
sourceless programs, 5-37
commands, 5-40
subroutines, 3-7
transactions, 7-4, 7-8, B-16, B-24, B-28, B-31–B-32,
B-35–B-36
DECIMAL format, 5-19
declaration statement, G-2
declarative, G-2
DECLARE
CURSOR statement, 5-36
STATEMENT statement, 5-36–5-37
TABLE statement, 5-36
decrement
occurrences, 5-17
subscript, 5-17
default delimiter, G-2
default settings
PF keys, 2-3, 4-2
profile, 4-2, 4-6, D-5–D-6
screen colors, 4-2, D-3
terminal, 4-2
Xpediter PF key definitions, D-1
DEFAULTS (option 0), 4-2, D-1
screens
User Profile, 4-6
DELETE command
breakpoints, 5-3
SKIP keyword, 5-31
DELETE statement, 5-36
DEMO command, D-3
DESCRIBE statement, 5-36–5-37
DFHDRP, 9-4
DFSESL, 9-8
DFSORT, 9-5
diagnostic
message, 1-3
summary, 6-1
Dialog
environment
option, 4-7, 9-4, B-6
parameters, B-6
test screen, B-6
dialog, 1-4
applications, 4-7, B-7
function, B-10
dimension, G-2
directive, G-2
DISC command, 4-19, H-5–H-6
disconnecting terminal, 4-19
displacement, G-2
display
available memory, E-1
data values, 3-6, 4-47
DCBs, 1-3
file status, 1-3
files currently allocated to TSO region
using Display File Allocations Utility, E-2
linkage section, 5-13
numeric items
DECIMAL, 5-19
registers, 1-3, 5-13, 5-23, 5-25
using GPREGS command, 5-23, 5-25
I-6
Xpediter/TSO and Xpediter/IMS PL/I User Guide
storage contents, 1-3
using MEMORY command, 5-23–5-24
variables, 1-3, 5-10
using E line command, 5-15–5-16, 5-19
using H line command, 5-15–5-16, 5-19
using KEEP command, 4-47, 5-16, 5-22
using PEEK command, 5-15
disposition
after the session, C-10
before the session, C-10
of session log, C-10
of test script, C-10
DL/I, G-2
call, 7-14, 9-4
program, B-13, B-17, B-21–B-22
DLEFT command, 2-4
DLI command, 9-3
DLIPEM, 1-4, B-20
driver module, 4-7, B-22, B-25
environment
option, 4-7, B-20
parameters, B-20
test screen, B-20
DOCUMENT command, B-4, C-10
document dataset, 4-39, 8-3, B-3, C-9
documentation availability, xiv
double-byte character set (DBCS) support, G-1
doubleword, G-2
DOWN command, 2-3, 7-3, B-3, B-15, B-23, B-27
DRIGHT command, 2-4
driver module
BATCHPEM, 4-7, B-19
BMPPEM, 4-8, B-22
DLIPEM, 4-7, B-22
IMSPEM, 4-7, B-25
DROP statement, 5-36
DSECT, G-2
DSN RUN command, 9-4, B-6
DSN, default SSN, F-3, F-8, F-10, F-16
DSNLOAD DSNAME field, C-15
DSNLOAD library, 7-6, 7-9, 9-4, B-6, B-8, B-14, B-18,
B-20, B-22, B-26, B-30, B-33, B-38, B-42
dump, 7-15, G-2
memory, 6-5, 7-15
duplication factor, G-2
E
E (Display Elementary) line command, 5-15, 5-19
Edit JCL screen, 4-18, 4-29
EDIT macro, B-6, B-9
editing test scripts, 4-44
effective address, G-2
elementary item, 3-6
displaying, 5-15, 5-19
END command, 2-3, 4-3, 4-49, 5-23, F-17
enhanced FIND, 4-39
entry point, B-4, B-12, G-2
environment
guidelines for selecting, 4-7
options
BATCHPEM (option 5), 4-7, B-18
BMP/IFP (option 9), 4-7, 7-7
BMPPEM (option 11), 4-8
BTS (option 4), 4-7, 9-4, B-14
Dialog (option 2), 4-7, 9-4, B-6
DLIPEM (option 6), 4-7, B-20
IMS (option 3), 4-7, 9-3–9-4, B-11
IMSPEM (option 10), 4-7, B-35
IMSPEM (option 7), 4-7, B-23
MPP (option 8), 4-7, 7-2
Standard (option 1), 4-7, 9-3–9-4, B-4
environment support
code generators, 9-1
database types, 9-3–9-4
ESA, 9-1
mixed language, 9-2
optimized code, 9-2
shared DL/I database, 9-4
sort exit, 9-5
SP, 9-1
XA, 9-1
error handling, 6-1
ESPIE (macro), 1-7
ESTAE (macro), 1-7
examining files, 5-32
EXCLUDE command, 5-26
ALL keyword, 5-26
EXCLUDE keyword, 5-26
EXEC SQL statements, 5-33–5-35, 7-6, 7-9, B-6, B-8,
B-14, B-18, B-20, B-22, B-26, B-30, B-33, B-38, B-42
EXECUTE
IMMEDIATE statement, 5-36–5-37
statement, 5-36–5-37
execution, 1-3
arrow, 3-5, 5-2
controlling, 3-5, 3-7, 5-3
speed of, 1-3, 5-13, 5-27
with use of BEFORE command, 5-6, 5-9, 5-22
with use of COUNT command, 5-10, 5-29
with use of GO n command, 5-8
with use of INTERCEPT command, 5-7
with use of PAUSE command, 5-11, 5-31
with use of TRACE command, 5-12
with use of WHEN command, 5-10
environment, 4-6, B-1
guidelines for selecting, 4-7
Hogan BMPPEM, B-20
Hogan DLIPEM, B-20
Xpediter/IMS, 4-7, 7-1, B-26, B-31, B-35, B-40
Xpediter/TSO, 4-7, B-4, B-6, B-11, B-18, B-20,
B-23
intercepting, 1-3
locating current point, 2-3, 5-2
monitor coverage, 1-3, 5-10, 5-25
using COUNT command, 5-29
using SHOW COUNT command, 5-28–5-29
monitor flow of control, 5-12, 5-27
using SHOW PREVIOUS command, 5-27–5-28
using TRACE command, 5-27
of test scripts, 4-43
at beginning of session (initial script), 4-43, 7-4,
7-8, B-4, B-7, B-12, B-16, B-19, B-21, B-24,
B-28, B-32, B-36, B-40
at end of session (post script), 4-44, 7-4, 7-8, B-5,
B-7, B-12, B-16, B-19, B-21, B-24, B-28, B-32,
B-36, B-40
when abend occurs (abend script), 4-22, 4-32
operating modes
batch, 4-37, 4-40
interactive, 2-4, 4-43
pausing, 3-5, 3-7, 5-3, 5-13
due to abend, 4-22, 6-3
due to an abend, 4-32
I-7
using AFTER command, 5-3
using BEFORE command, 5-3, 5-22
using COUNT command, 5-10, 5-29
using GO n command, 5-8–5-9
using INTERCEPT command, 5-3, 5-7
using keyboard interrupt, 5-27
using ONETIME command, 5-4
using PAUSE command, 5-11, 5-31
using TRACE command, 5-12
using WHEN command, 5-4, 5-10
using XP (Explain) line command, 5-34
resuming, 2-4, 5-3, 5-12
using GO command, 5-3, 5-7–5-8
starting, 1-3, 2-4, 3-2
stopping, 1-3, 3-5, 5-10
execution monitor, G-2
exit
debugging session, 2-3, 7-7, 7-10
from File-AID for DB2, 4-49
Primary Menu, 4-3
routine for Fast Path, 7-15
when GO 1 command is issued on external procedure statement, 5-8
EXIT (option X), 4-3
EXIT command, 2-3, 5-8, 7-2, 7-7, 7-10, 7-14, B-36
EXPLAIN
functions, 5-34
report, 5-34
statement, 5-36
explicit breakpoint, 5-4, 5-7
explicit declaration, G-3
F
FADB2 (option F), 4-3
FADB2 command, 4-48, 5-33
BROWSE keyword, 5-33–5-34
EDIT keyword, 5-33–5-34
Fast Path
databases, 7-5, 7-8, 7-12, B-29, B-32, B-37, B-41
exit routine, 7-15
programs, 4-7, 7-1–7-2, 7-7, 7-13
region, 1-5, 4-7, B-31
FB (File-AID BROWSE) line command, B-8
FB (File-AID Browse) line command, A-6
FE (File-AID EDIT) line command, B-8
FE (File-AID Edit) line command, A-6
FETCH statement, 5-36
figurative constant, G-3
file
CDMF, B-20, B-41
QSAM, 4-7, B-4, B-18
status, VSAM, 1-3
VSAM, 4-7, 9-3, B-4, B-18
file allocation list, 4-3, 7-3, 9-6
File Allocation Utility (FAU), 4-8, 7-3, 7-16, 9-3, A-1,
B-18
File List/JCL Member field, 4-8, 7-5, 7-9, B-5, B-8, B-13,
B-18, B-20, B-22, B-25, B-29, B-33, B-37, B-41
FILE-AID (option FA), 4-3
File-AID for DB2, 4-3, 4-48, F-1, G-3
accessing from within Xpediter/TSO debugging session, 4-48
binding DB2 application plan or package, F-1
binding DB2 application plan with Xpediter/TSO,
4-2
browsing and editing DB2 tables, 5-33–5-34
DBRM Libraries screen, F-2, F-4, F-9, F-12
DBRM member, F-6, F-9, F-13
integrated with Xpediter/TSO, 4-48
FILE-AID/IMS (option FI), 4-3
FIND command, 2-3, 5-25, D-8, E-5
CSR keyword, 2-3
EXCLUDE keyword, 5-26
INDIRECT keyword, 2-3
NOLINES keyword, 5-26
First DBRM Member field, F-3, F-11
First PKLIST Location field, F-3, F-11
format of session log entry
for KEEP command, 5-20
for PEEK command, 5-20
FrontLine, xiv
full function databases, 7-12
full screen Environments Menu, 4-6, 7-1–7-2, 7-7
fullword, G-3
G
general-purpose registers, 1-3, 5-13, 5-23, 5-25, G-3
displaying, 1-3
generated scripts, saving and using, 4-45
GO 1 command, 2-3, 5-8–5-9, 5-21
GO command, 2-4, 3-5, 5-3, 5-7–5-8, 5-22, 5-27, 5-29,
6-4, 7-2, 7-7
GO n command, 5-8
GOBACK statement
after breakpoint automatically set on, 5-3
when GO 1 command is issued on, 5-8
GOTO command, 5-29, 5-32
GPREGS command, 5-13, 5-23, 5-25
OFF keyword, 5-25
GRANT statement, 5-37
GSAM databases, 7-13
guidelines for selecting environment, 4-7
H
H (Display Hexadecimal) line command, 5-15–5-16,
5-19
HALF scroll amount, 2-2
halfword, G-3
HELP command, 2-2–2-3, 4-3, 6-4, 7-2
HELP facility, G-3
hexadecimal format, 5-15, 5-19
Hierarchical File System (HFS), A-12, A-14, A-19
high-level qualifier, D-6
Hogan
BATCHPEM, 1-4, 4-7, B-18
driver module, 4-7, B-19
environment parameters, B-18
BMPPEM, 1-4
applications, 4-8
driver module, 4-8, B-22, B-41
DLIPEM, 1-4, 4-7, B-20
driver module, 4-7, B-22
environment parameters, B-20
drive
IMSPEM, B-25
driver, B-19, B-22, B-25, B-37, B-41
BATCHPEM, B-19
I-8
Xpediter/TSO and Xpediter/IMS PL/I User Guide
BMPPEM, B-22, B-41
DLIPEM, B-22
IMSPEM, B-37
executing in IMS message region, 1-5
IMSPEM, 1-4, 4-7, B-23, B-25, B-35
applications, 4-7
debug parameters, B-23, B-35
driver module, 4-7, B-25, B-37
PEM driver, B-19, B-22, B-25, B-37, B-41
BATCHPEM, B-19
BMPPEM, B-22, B-41
DLIPEM, B-22
IMSPEM, B-25, B-37
SYSIN dataset, B-3, B-19, B-21, B-41
HTML documentation, xiv
I
I (Insert) line command, 5-22, 5-31–5-32
IBM MQ for z/OS, 9-8, G-3
identifying transactions to be debugged, B-26, B-31,
B-35
IDMS/DB, 1-4, 9-3
memory requirements, E-1
IF structure, ELSE construct, 5-11, 5-31
IFP
databases accessed
DB2, 7-13
Fast Path, 7-13
full function, 7-13
GSAM, 7-8
debugging session
ending, 7-10
program, 7-2, 7-7, 7-13
implicit MOVE command (typing over), 5-14, 5-21
IMS, 1-5
driver module, B-13
environment option, 4-7, 9-3–9-4, B-11
logical terminal, 4-7, 7-1, 7-6, 7-9–7-10, B-26, B-31,
B-35
memory requirements, E-1
region, B-31, B-35
control, 7-11
dependent, 4-7, 7-1, 7-15
message, 1-5, 4-7, 7-11, B-26, B-31, B-34–B-35,
B-39, B-42
scheduling abends, 7-13
subroutine, B-13
test screen, B-12, B-35
type of program, 7-11, B-13, B-17, B-21, B-25, B-31,
B-34, B-39, B-43
batch message processing (BMP), 7-2, 7-7, 7-10,
7-12
message processing (MPP), 7-2, 7-12
message-driven Fast Path (IFP), 7-2, 7-7, 7-10,
7-13
IMS User ID Support, 7-5, B-29
IMS User ID/Data Value Intercept Support, 7-4–7-5,
B-28–B-29, B-37
IMS USERID field, 7-5, B-29, B-37
IMS/DB, 1-4, 4-7, 9-3
calls, 9-4, B-20
environment parameters, 9-3–9-4, B-11
IMS/DC, 1-4
debugging program under TSO
database calls, B-13
logic calls, B-13
when BTS not available, B-13
when message queue not available, B-13
executing
in BMP region, 1-5, 4-7–4-8, 7-1–7-2, 7-7, 7-12
in Fast Path region, 1-5, 4-7, 7-1–7-2, 7-7, 7-13
in IMS dependent region, 4-7, 7-15
in IMS message region, 1-5, 4-7, 7-1, B-26
MPP programs, 4-7, 7-2, 7-12, B-14
programs that make DB2 calls, 9-4
using BTS, 1-4, 4-7, 9-4, B-14
IMSPEM, 1-4, B-23, B-35
applications, 4-7
debug parameters, B-23, B-35
driver module, 4-7, B-25, B-37
environment option, 4-7, B-23
test screen, B-23
INCLUDE
dataset, 1-4
library, 4-44, 4-47, B-3, B-36, B-40, G-3
test script, G-3
INCLUDE command, 4-43, B-3
Include FADB2 DBRMs? field, F-3, F-11
increment
occurrences, 5-17
subscript, 5-17
index
change description of, 5-35
create on table, 5-36
index register, G-3
informational message, 2-2, 5-26, 7-7
initial script, 4-43, 7-4, 7-8, B-4, B-7, B-12, B-16, B-19,
B-21, B-24, B-28, B-32, B-36, B-40, G-3
INSERT
prior to SKIP command, 5-31
processing, 5-31
valid SQL statements, 5-35
valid Xpediter/TSO commands, 5-32
SQL statements, 5-35, 5-37
statement, 5-37
INSERT command, 4-47, 5-11, 5-20–5-22, 5-29
inserted code, 4-47
inserting
SQL statements, 1-3
Xpediter/TSO commands, 1-3
installation libraries, F-6, F-13
integration
Xpediter/TSO with File-AID for DB2, 4-48, 5-33–
5-34, F-1
INTER command, 7-3, 7-10, 7-13, B-3, B-30, B-33,
B-38, B-42
Interactive Code Coverage, 4-12, 4-15, 4-17, 4-26–4-28
Interactive Code Coverage/System Flow, 4-15, 8-8
Interactive Fast Path, 7-2, 7-10, 7-12
Interactive System Flow, 4-15, 8-8
Interactive Test Data Optimization, 4-15, 8-8
Interactive Test Data Optimization/System Flow, 4-16,
8-9
interactive test session
mode, 1-4, 2-4, 4-1, 4-43
starting, 4-1
test session, 4-1
INTERCEPT command, 4-40–4-41, 5-3, 5-7
INITSCR keyword, 4-43
intercepting
execution, 1-3, 5-7
due to abend, 4-22, 4-32, 6-3
using COUNT command, 5-10
I-9
using COUNT MAX command, 5-10
using GO n command, 5-8, 5-21
using INTERCEPT command, 5-3, 5-7
using PAUSE command, 5-4, 5-11, 5-31
using TRACE command, 5-12, 5-21, 5-27
using WHEN command, 5-4, 5-10, 5-21
with after breakpoint, 5-3, 5-21
with before breakpoint, 3-5, 3-7, 5-3, 5-7, 5-21–
5-22
with keyboard interrupt, 5-27
with onetime breakpoint, 5-4
program, 7-4, B-7, B-16, B-24, B-28, B-36
maximum number of times, 5-27, 7-4, B-7, B-16,
B-24, B-28, B-36
program abends, 5-3, 5-7, 5-12, 5-27, 6-1, 7-15
transactions, 7-4, 7-8, 7-13, B-16, B-24, B-28, B-32,
B-36
intercepts, 5-7, 7-3–7-4, 7-8, 7-13, B-16, B-23–B-24,
B-27–B-28, B-32, B-36
Intercepts screen, 7-10, B-30, B-33, B-38, B-42
intercommunication facilities, G-3
internal format of numeric items, DECIMAL, 5-19
intersystem communication, G-3
invoke
debugging session, 4-7, 7-9, B-6, B-14, B-18, B-20,
B-22, B-26, B-33, B-38, B-42
File-AID for DB2, 4-48
Xpediter/IMS, 4-2, 7-1, B-26, B-31, B-35, B-40
Xpediter/TSO, 4-2
IOPCB code, 9-3
ISPF
dialog programs, 9-1, 9-4, B-6
that make EXEC SQL calls, 9-4
KEYS command, 2-3
items
elementary, 5-19
group, 5-19
J
JCL, 4-39, 7-5, 7-9, B-5, B-8, B-13, B-18, B-20, B-22,
B-25, B-29, B-33, B-37, B-41
jump function, D-6
K
K (Keep) line command, 5-15–5-16
Katakana (Japanese), G-1
KEEP command, 4-44, 4-47, 5-10, 5-13, 5-15–5-16,
5-20, 5-22, 5-30
Keep window, 1-3, 4-46, 5-14–5-15, 5-22, 9-3
modifying values in, 5-14
opening, 5-10, 5-14–5-15, 5-22, 5-30, 9-3
viewing data values in, 5-14–5-15, 5-22
kept variables entered in session log, 5-21
keyboard interrupt, 5-12–5-13, 5-27
KEYS command, 2-3
L
label, G-3
LABEL ON statement, 5-37
language processor, 1-2, 4-2, G-3
last function code, 9-3
LE/370
abend processing, 9-7
support, 9-7
LEFT command, 2-4
libraries
ACB, B-13, B-17, B-21
DB2, B-8
DBD, 9-3, B-13, B-17, B-21
DBRM, F-2, F-4, F-9, F-12
DSNLOAD, 7-6, 7-9, 9-4, B-6, B-8, B-14, B-18, B-20,
B-22, B-26, B-30, B-33, B-38, B-42
HELP, 6-4
INCLUDE, 4-44, 4-47, B-3, B-36, B-40
installation, F-6, F-13
PDS, 4-22, 4-32, 4-43
PSB, 7-8, 9-3, B-13, B-17, B-21, B-25, B-32, B-40
RESLIB, 9-3
test script, 1-4, 4-43, B-3
user, F-6, F-13
License Management System, G-3
line commands, 2-4, G-3
A (After breakpoint), 5-3
B (Before breakpoint), 3-5, 5-3, 5-22
D (Delete), 5-31
DE (Delete Elementary), 5-15, 5-19
DH (Delete Hexadecimal), 5-15, 5-19
E (Display Elementary), 5-15, 5-19
FB (File-AID Browse), A-6
FE (File-AID Edit), A-6
H (Display Hexadecimal), 5-15, 5-19
I (Insert), 5-22, 5-31–5-32
K (Keep), 3-6, 5-15–5-16
K* (Keep all), 5-15
KE (Keep Elementary), 3-6
O (Onetime breakpoint), 5-4
P (Peek), 3-6, 5-15
P* (Peek all), 5-15
XP (Explain), 5-34
link pack area, G-3
link-edit entry point, B-4, B-12
linkage section, 4-46, B-12
displaying, 5-13
literal, G-3
load
libraries, 1-4, G-3
modules, 7-3, 7-8, B-4, B-12, B-15, B-23, B-27, B-32,
B-35
LOAD command, 5-6
LOCATE * command, 2-3, 5-14
LOCATE command, D-8, E-4
LOCK TABLE statement, 5-37
lockout, F-4, F-11
LOG command, 5-27, 6-3, 7-3, B-3
logic flow, 1-3
monitoring, 5-12, 5-27
using SHOW PREVIOUS command, 5-27–5-28
using TRACE command, 5-27
tracing, 1-3, 5-25, 5-27
logical terminals
ATM, 7-1, B-26, B-31, B-35
IMS, 4-7, 7-1, 7-6, 7-9–7-10, B-26, B-31, B-35
TSO, 4-7, 7-1, 7-6, 7-10, B-26, B-31, B-35
logon region size, 1-5
LOGSIZE, 5-20
loop, test repeatedly using GOTO command, 5-32
lowercase, 2-4
I-10
Xpediter/TSO and Xpediter/IMS PL/I User Guide
M
macroinstruction, G-3
main procedure, 3-7
automatic before breakpoint set on, 5-3
entering K (Keep) line command in, 5-15
entering P(eek) line command in, 5-15
MAX field, 7-4, B-7, B-16, B-24, B-28, B-36
MAX keyword, 5-27
member list, 7-5, 7-9, B-5, B-8, B-13, B-18, B-20, B-22,
B-25, B-29, B-33, B-37, B-41
memory
available for debugging, E-1
dump, 6-5, 7-15
requirements, E-1
MEMORY command, 5-13, 5-23–5-24
Memory screen, 5-23–5-24
MERGE command, D-7–D-8
Merge Profile screen, E-4
merge profiles from alternate users, 4-2
message
area in source display, 2-1–2-2
diagnostic, 1-3
driven
Fast Path (IFP), 7-2, 7-7, 7-13
program, 7-12
transaction, 7-15
informational, 2-2, 5-26, 7-7
queue, 7-12, B-13, B-17, B-21
accessing, B-13, B-17, B-21
skipping calls to, B-13, B-17, B-21
region, B-26, B-31, B-35
resulting from bind, F-4, F-11
syntax error, 5-35
message area line, G-4
modes
batch, 1-4, 4-37, 4-40
interactive, 1-4, 2-4, 4-43
nonresponse, 7-12
response, 7-9, 7-12, 7-15
modify
data contents, 5-13
data values, 1-3
in Keep window, 3-7, 4-46, 5-14–5-15, 5-22
program logic, 5-29
by adding statements, 5-29, 5-31
by forcing logic changes, 5-29
using GOTO command, 5-29
using INSERT command, 5-29, 5-31
using SKIP command, 5-29, 5-31
registers, 1-3, 5-13, 5-23, 5-25
using GPREGS command, 5-23, 5-25
storage contents, 1-3, 5-13, 5-23
using MEMORY command, 5-23–5-25
storage group description, 5-35
variables, 1-3
using PEEK command, 5-15
module
breakpoint, 3-7
called, 5-8, 5-27, 5-30
calling, 5-27, B-12
calls monitored, 5-27
driver, B-19, B-22, B-25
IMS, B-13
object, 9-1
subordinate, B-12
monitor
DLI
activities, 9-3
calls, 9-3
execution coverage, 1-3, 5-10
using COUNT command, 5-29
using SHOW COUNT command, 5-28–5-29
flow of control for program, 5-12, 5-27
using SHOW PREVIOUS command, 5-27–5-28
using TRACE command, 5-27
loops, 1-3, 5-32
module calls, 5-27
procedure calls, 1-3
MORE-> sign, 5-18
MOVE command, 4-44, 5-22
MPP
databases accessed, 7-12
debug parameters, B-31, B-40
debugging session, 7-13
environment
option, 4-7, 7-2, B-26
parameters, B-26
IMS/DC programs, 4-7
programs, 7-2, 7-12, B-12, B-14
test screen, B-26
MQSeries. See “IBM MQ for z/OS”.
MQSeries. See IBM MQ for z/OS
Multi-Batch Facility, 1-2, 4-32
multiple
breakpoints on same line of code, 5-7
debugging session within same job stream, 4-41
transaction codes, 7-4, 7-8, B-16, B-24, B-28
multiregion operation, G-4
MVS, G-4
N
native CMS, G-4
native TSO, G-4
NBA, 7-5, 7-8, B-29, B-32, B-37, B-40
NEWAPPL, B-10
NEWPOOL, B-10
NOLINES keyword, 5-26
non-Wait-For-Input (non-WFI) transactions, 7-10,
7-12
nonconversational transactions, 7-11
nonmessage-driven program, 7-12
nonrepresentable characters, G-4
nonresponse mode, 7-12
NOQ environment, G-4
NOQ PARM passing option, B-13
Normal Buffer Allocation (NBA), 7-5, 7-8, B-29, B-32,
B-37, B-40
notation rules, xii
O
O (Onetime) breakpoint line command, 5-4
OBA, 7-5, 7-8, B-29, B-32, B-37, B-41
object module, G-4
object modules, 9-1
occurrence
field, 5-16
I-11
of program invocation, 7-4, B-7, B-16, B-24, B-28,
B-36
OFF command, D-3
offline DL/I batch processing region, B-13, B-17, B-21
offset, G-4
ON command, D-3
onetime breakpoint, 5-4
ONETIME command, 5-4
online documentation for Xpediter/TSO and Xpediter/IMS, xiv
OPEN statement, 5-37
opening Keep window, 5-14–5-15, 5-22, 5-30
operating system, 9-1, G-4
OPT field, B-8, B-10
OPT indicator, 1-6, 9-2
OPTIMIZE compiler option, 9-2
optimized code, 1-6
options, color, D-3–D-4
output of debugging session, 1-4
data files, 1-4
session log, 1-4, 7-7, B-3
session script, 1-4, 4-43, B-3
Overflow Buffer Allocation (OBA), 7-5, 7-8, B-29, B-32,
B-37, B-41
override default maximum limit, 5-12, D-1
Owner of Plan field, F-4, F-12
P
P (Peek) line command, 3-6, 5-15
PA keys, G-4
PA1 key, 5-27
Package ID field, F-3, F-11
PAGE scroll amount, 2-2
Panel field, B-10
panels, G-4
PANEXEC support, 9-6
paragraph, G-4
parameter
optional to be passed to program, B-10
run-time, B-5, B-19
PARM, B-10
list, B-13, B-17, B-25
passing options, B-13, B-17
string, 7-5, 7-8, B-5, B-13, B-17, B-19, B-29, B-32,
B-37, B-41
PASSLIB, B-10
PAUSE command, 5-4, 5-11, 5-31
pausing, G-4
PC account code, 8-3, 8-5, B-44
PCB, B-12, G-4
PDF documentation, xiv
PEEK command, 3-6, 4-44, 4-47, 5-13, 5-15, 5-20
CSR keyword, 2-3
PF keys
PF1 (HELP), 2-2–2-3, 4-3
PF10 (LEFT), 2-4
PF11 (RIGHT), 2-4
PF12 (GO), 2-4, 3-5, 5-7, 5-12, 5-22, 5-27, 5-29, 6-4,
7-7
PF13 (HELP), 2-3
PF14 (FIND CSR), 2-3
PF15 (END), 2-3
PF16 (EXIT), 2-3
PF17 (FIND INDirect), 2-3
PF18 (LOCATE *), 2-3
PF19 (UP), 2-3, B-23, B-27
PF2 (PEEK CSR), 2-3
PF20 (DOWN), 2-3, B-23, B-27
PF21 (GO 1), 2-3
PF22 (DLEFT), 2-4
PF23 (DRIGHT), 2-4
PF24 (GO), 2-4, 5-7
PF3 (END), 2-3, 4-3, 5-23
PF4 (EXIT), 2-3, 5-8, 7-7, 7-10, B-36
PF5 (FIND), 2-3, 5-25
PF6 (LOCATE *), 2-3, 5-14
PF7 (UP), 2-3, 7-3, B-23, B-27
PF8 (DOWN), 2-3, 7-3, B-15, B-23, B-27
PF9 (GO 1), 2-3, 5-8
PL/I language processor, G-4
plan
name, 9-4, B-6, B-14, B-20, B-22, F-3, F-10
table, F-4, F-12
PMAP/LIST information generated at compile time,
9-2
post script, 4-42, 4-44, 7-4, 7-8, B-5, B-7, B-12, B-16,
B-19, B-21, B-24, B-28–B-29, B-32, B-36, B-38, B-40
predefined command stream, 4-40, 4-43, 7-4, 7-8, B-4–
B-5, B-7, B-12, B-16, B-19, B-21, B-24, B-28, B-32,
B-36, B-40
PREPARE (option 1), 4-2
PREPARE statement, 5-37
preparing your program, 4-3
bind facility, 4-5, F-1
convert compile JCL, 4-4
edit allocation list, 4-5
preview files, B-5, B-8
primary command line, 2-1, 2-4
primary commands, G-4
Primary Menu options, 4-1
option 0 (DEFAULTS), 4-2, D-1
option 1 (PREPARE), 3-2, 4-2, 4-8
option 2 (TSO), 4-2, 4-6, 7-1
option 3 (BATCH), 4-2
option 4 (STORED PROCEDURES), 4-2
option 5 (UTILITIES), 4-2, E-1
option B (BULLETIN), 4-3
option C (CODE COVERAGE), 4-3
option CS (CICS), 4-3
option F (FADB2), 4-3
option FA (FILE-AID), 4-3
option FI (FILE-AID/IMS), 4-3
option T (TUTORIAL), 4-3
option X (EXIT), 4-3
procedure, G-4
procedure division, G-4
Process DB2 Stored Procedures screen, 8-4, H-1
Process Execute JCL screen, 8-6, H-1
processing
batch, 1-1, 4-10, 4-37, 4-40
interactive, 1-1, 4-5
profile, 4-2
handling facility, 1-3, 4-5
multiple, 1-3
user, D-6
PROFILE command, D-8
program
abends, 4-22, 4-32, 4-44, 5-3, 5-7, 6-1
before dump is produced, 5-3, 6-1, 6-5
intercepted by Xpediter/IMS, 7-15
intercepted by Xpediter/TSO, 5-12, 5-27, 6-1
access of DL/I databases, 9-4
logic, 5-29
I-12
Xpediter/TSO and Xpediter/IMS PL/I User Guide
modifying, 5-29
name, 4-6, 7-3, 7-8, 7-11, B-4, B-7, B-10, B-12, B-15,
B-23, B-27, B-31–B-32, B-34–B-35, B-39, B-43
specification block (PSB), 7-8, 7-11, 7-13, B-12,
B-21, B-31–B-32, B-34, B-39–B-40, B-43
field, 7-8, B-12, B-21, B-32, B-40
library, 9-3, B-13, B-17, B-21
name, 7-11, B-31, B-34, B-39, B-43
types, 7-11, B-13, B-17, B-21, B-25, B-31, B-34, B-39,
B-43
batch message processing (BMP), 7-2, 7-7, 7-12,
B-13–B-14, B-17, B-21–B-22, B-25
DBB, B-13, B-17, B-21–B-22
DL/I, B-13, B-17, B-21–B-22
IMS/DC, 7-1, 9-4, B-14
message processing (MPP), 7-2, 7-12, B-14, B-25
message-driven Fast Path (IFP), 7-2, 7-7, 7-13
variables
displaying, 5-15, 5-22
modifying, 5-15
program execution
controlling, 3-5
displaying variables
by typing over (implicit move), 5-21
using GPREGS command, 5-25
using KEEP command, 5-15
using MOVE command, 5-22
using PEEK command, 5-15
pausing, 5-13
at after breakpoint, 5-3, 5-21
at before breakpoint, 3-5, 3-7, 5-3, 5-7, 5-21–5-22
at onetime breakpoint, 5-4
due to COUNT command, 5-10
due to GO n command, 5-3, 5-8–5-9, 5-21
due to INTERCEPT command, 5-3, 5-7
due to PAUSE command, 5-11, 5-31
due to TRACE command, 5-12, 5-21, 5-27
due to WHEN command, 5-4, 5-10, 5-21
selecting environment, 4-6
guidelines for, 4-7
Xpediter/IMS, 4-7, 7-1, B-26, B-31, B-35, B-40
Xpediter/TSO, 4-7
suspending
after program is completed, 5-3
after set number of statements or labels are executed, 5-3, 5-8
after statement, paragraph, or module, 5-3, 5-7
before main procedure statement, 5-3
before statement, paragraph, or module, 5-6–
5-7, 5-22
due to abend, 4-22, 6-3
when requested by keyboard interrupt, 5-13,
5-27
when set limit is reached, 5-10, 5-12, 5-27
when specified condition occurs, 5-4, 5-10
prototype DB2 applications, 4-47, 5-31
PSEUDOSOURCE command, 5-4, 5-41
PSW, G-4
R
Q
S
QSAM files, 4-7, B-4, B-18
qualification rules, 5-6
query available region size, 4-2, E-1
Quickstart, G-4
Sage APS code generator, 9-1
sample programs
TRIMAINP, 3-1, 3-6–3-7, 5-7–5-8
TRIRPTP, 3-2, 5-7
recalling previous command, 2-4
reduced lockout situations, F-4, F-11
region, E-1
BMP, 1-5, 4-7–4-8, B-31, B-40
CICS, 9-4
Fast Path, 1-5, 4-7, B-31
IMS, B-31
control, 7-11, B-31, B-34, B-39, B-42
dependent, 4-7, 7-1, 7-15
message, 1-5, 4-7, 7-5, 7-8, B-26, B-29, B-31–
B-32, B-35, B-37, B-41
MPP, 4-7
offline DL/I batch processing, B-13, B-17, B-21
using ACB libraries, B-13, B-17, B-21
using DBD libraries, B-13, B-17, B-21
using PSB libraries, B-13, B-17, B-21
size, 1-5
TSO, 9-1, 9-4
register, 1-3, G-4
general-purpose, 1-3, 5-13, 5-23, 5-25
window, 5-23, 5-25
removing from display, 5-25
regression testing, 4-43
reinstate all installed default values, F-2, F-7, F-9, F-14
related publications, xii
relational condition, 5-10
Release field, F-4, F-11
commit, F-4, F-11
deallocate, F-4, F-12
removing
lines from source display, 5-26
register window from display, 5-25
Reset I/U/C/T/F, 4-16, 8-9
RESLIB library, 9-3
response mode, 7-9, 7-12, 7-15
RESTART, 9-1
RESTORE command, D-3, F-2, F-7, F-9, F-14
restrictions, 1-5, 9-7, A-20
resuming execution, 2-4, 5-3, 5-7–5-8, 5-12
Retain Breakpoints? field, 7-5, B-17, B-29, B-37
RETEST command, 5-8
return
code, 9-3
control to you, 5-31
review mode, G-4
REVOKE statement, 5-37
RFIND command, D-8, E-5
RIGHT command, 2-4
RMODE, 1-3, 4-44, 9-1
ROLLBACK statement, 5-37
ROUTE PRINT LOCAL card into JCL job stream, 4-11
RUN command, 4-16
run-time
error handling, 6-1
parameter, B-5, B-19
I-13
TRITSTP, 3-2, 3-7, 5-6, 5-8–5-9, 5-30
saving and using generated scripts, 4-45
SBCS (single-byte character set support), G-1
screen format, 2-1
screens, 2-1, G-4
Allocate, 7-3
BTSIN, B-3, B-17, B-25
DBRM Libraries, F-2, F-4, F-9, F-12
Environments Menu, 4-6
BATCHPEM (option 5), 4-7
BMP/IFP (option 9), 4-7, 7-1, 7-7
BMPPEM (option 11), 4-8
BTS (option 4), 4-7, 9-4
Dialog (option 2), 4-7, 9-4
DLIPEM (option 6), 4-7
IMS (option 3), 4-7, 9-3–9-4
IMSPEM (option 7), 4-7
MPP (option 8), 4-7, 7-1–7-2
Standard (option 1), 4-7, 9-3–9-4
Intercepts, 7-10, B-30, B-33, B-38, B-42
Invoke Dialog Function/Selection Panel, B-9
Log, 5-20, 5-27, 7-7, B-3
Memory, 5-23–5-24
Script, B-3
setting color defaults, D-3
Setup, 4-43, 9-3
Setup Menu, 7-3, B-3
Show, 5-28, 6-4
Source, 2-1, H-4
test, B-1
BATCHPEM (option 5), B-18
BMP/IFP (option 9), 7-7, B-31
BMPPEM (option 11), B-40
BTS (option 4), 9-4, B-14
DB2 Stored Procedures (option 12), B-43
Dialog (option 2), 9-4, B-6
DLIPEM (option 6), B-20
IMS (option 3), 9-3–9-4, B-11
IMSPEM (option 10), B-35
IMSPEM (option 7), B-23
MPP (option 8), 7-2, B-26
Standard (option 1), 9-3–9-4, B-4
Utilities Menu, E-1
Display Available Memory (REGION SIZE), E-1
Display File Allocations (LIST ALLOCATES), E-2
Select Alternate Profiles (MERGE), E-3
XPPISPFT, B-8–B-9
SCRIPT command, 4-45, B-3
script dataset/file, G-4
script file, 4-43
scroll amount field, 2-1, G-4
scrollable fields, G-5
scrolling, B-3, G-5
Select Job Step screen, 8-7, 8-11, H-2
SELECT statement, 5-37
selecting testing environment, 4-1, 4-6
guidelines for, 4-7
sentence, G-5
session
executing predefined command stream, 4-40, 4-43
at beginning of session, 4-40, 4-43, 7-4, 7-8, B-4,
B-7, B-12, B-16, B-19, B-21, B-24, B-28, B-32,
B-36, B-40
at end of session, 7-4, 7-8, B-5, B-7, B-12, B-16,
B-19, B-21, B-24, B-28, B-32, B-36, B-40
execution environment, 4-6–4-7, B-1, B-14
Hogan BMPPEM, B-20
Hogan DLIPEM, B-20
Hogan IMSPEM, B-23, B-35
Xpediter/IMS, 7-1, B-26, B-31, B-35, B-40
Xpediter/TSO, B-4, B-6, B-11, B-18, B-20
exiting from, 7-7, 7-10
initiating, 7-9, B-4, B-6, B-11, B-14, B-18, B-20,
B-22–B-23, B-26, B-31, B-33, B-35, B-38, B-40,
B-42–B-43
multiple within same job stream, 4-41
preparation for, 4-1
quick sample of, 3-1
script, 1-4, 4-43, B-3
abend, 4-22, 4-32
initial, 4-43, 7-4, 7-8, B-4, B-7, B-12, B-16, B-19,
B-21, B-24, B-28, B-32, B-36, B-40
post, 4-44, 7-4, 7-8, B-5, B-7, B-12, B-16, B-19,
B-21, B-24, B-28, B-32, B-36, B-40
setting up test screens for, B-4, B-6, B-11, B-14, B-18,
B-20, B-23, B-26, B-31, B-35, B-40, B-43
session log, 1-4, 5-20, 5-27, 7-7, B-3, G-5
entry format
for call activities, 5-27
for KEEP command, 5-20
for PEEK command, 5-20
file, 1-4, 4-47, 5-20, 5-27, 7-7, B-3
session script, G-5
set
breakpoints, 3-5, 5-3
before, 3-5, 3-7, 5-6, 5-9, 5-22
using COUNT command, 5-10
using COUNT MAX command, 5-10
using GO n command, 5-8–5-9
using INTERCEPT command, 5-7
using PAUSE command, 5-11, 5-31
using TRACE command, 5-12, 5-27
using WHEN command, 5-10
when specified event takes place, 5-8, 5-10–5-11
conditional breakpoints, 5-8
using COUNT command, 5-8, 5-10, 5-29
using COUNT MAX command, 5-10
using GO n command, 5-8–5-9
using PAUSE command, 5-11, 5-31
using TRACE command, 5-8, 5-12
using WHEN command, 5-8, 5-10
counters on
statements, 1-3, 5-10
explicit breakpoints
for modules, 5-6, 5-9
using AFTER command, 5-4
using BEFORE command, 5-4
using INTERCEPT command, 5-4, 5-7
speed of execution, 5-13, 5-27
SET command
ABENDSCR keyword, 4-22, 4-32, 4-44
ABNDEXIT keyword, 6-5, 7-15
AUTOKEEP keyword, 2-3, 5-14
CAPS keyword, 2-4
CBLTRAP keyword, 4-43
CMDSIZE keyword, 2-1, 2-4, 5-4, 5-10
COLS keyword, 6-2
DELAY keyword, 3-3, 5-13, 5-27
DUMP keyword, 6-5, 7-15
DYNAMIC keyword, 4-43, 9-5
EXCLUDE keyword, 4-43, 9-6
HEXMODE keyword, 4-43
LETRAP keyword, 9-7
LOG keyword, 5-20
LOGSIZE keyword, 4-43, 5-20
LOWCASE ASIS keyword, 2-4
I-14
Xpediter/TSO and Xpediter/IMS PL/I User Guide
LOWCASE keyword, G-2
NONDISP keyword, 4-43, 5-21
PF keyword, 2-3, 4-21, 4-31
STATIC keyword, 4-43, 9-3, 9-7
TRANSFER keyword, 4-43
SET commands, using, D-9
SET statement, 5-37
Setup
Menu, 7-3, 8-6
options screens, 4-43, B-13, B-17, B-25
SETUP command, 3-2, 7-3, B-3, F-2–F-4, F-9, F-11–F-12
Setup Options screens, 9-3
shared
DL/I database, 9-4
variable pool, B-10
Shared Directory, G-5
short message, 2-2
show
called module stacking, 1-3
implied breakpoints, 5-28
link-edit map of load modules, 6-4
SHOW command
ALLOCATES keyword, E-2
COUNT keyword, 5-29
IMSFUNC keyword, 9-3
MODULES keyword, 6-4
OPTIONS keyword, D-9
PREVIOUS keyword, 5-25, 5-27–5-28
REGION keyword, E-1
SETS keyword, D-9
Show screen, 5-28, 6-4
single-byte character set (SBCS) support, G-1
SKIP command, 5-30
cautions when using, 5-30
in combination with INSERT command, 5-31
removing, 5-31
skipping code, 1-3, 5-30–5-31
Snapshot report, 6-1–6-3, 6-5, 7-15
sort exit
for DFSORT, 9-5
for SYNCSORT, 9-5
source
file, active, 2-1–2-2
program
breakpoints set automatically, 5-3
editing, 5-31
guidelines for selecting environment, 4-7
initially being displayed, 5-3
removing all lines from display, 5-26
selecting environment in which to execute, 4-6
SOURCE command, 5-6–5-7, D-3
source listing, G-5
source listing file, G-5
Source Listing File Facility, E-3
Source screen, 2-1, H-4, G-5
inserting commands, 5-31
removing lines from, 5-26
sourceless debugging, 5-37
speed of execution, 1-3
controlling, 1-3, 5-13, 5-27
SPIE (macro), 1-7
split screen, G-5
SQL, G-5
error messages, 5-35
statements
ALTER INDEX, 5-35
ALTER STOGROUP, 5-35
ALTER TABLE, 5-35
ALTER TABLESPACE, 5-35
calls, 5-37
CLOSE, 5-35
COMMENT ON, 5-35
COMMIT, 5-35
CREATE DATABASE, 5-35
CREATE INDEX, 5-36
CREATE STOGROUP, 5-36
CREATE SYNONYM, 5-36
CREATE TABLE, 5-36
CREATE TABLESPACE, 5-36
CREATE VIEW, 5-36
DECLARE CURSOR, 5-36
DECLARE STATEMENT, 5-36–5-37
DECLARE TABLE, 5-36
DELETE, 5-36
DESCRIBE, 5-36–5-37
DROP, 5-36
dynamically execute, 5-35
EXECUTE, 5-36–5-37
EXECUTE IMMEDIATE, 5-36–5-37
EXPLAIN, 5-36
FETCH, 5-36
GRANT, 5-37
INSERT, 5-37
inserting into source program, 1-3, 5-35
LABEL ON, 5-37
LOCK TABLE, 5-37
OPEN, 5-37
PREPARE, 5-37
processing, 5-33
REVOKE, 5-37
ROLLBACK, 5-37
SELECT, 5-37
SET, 5-37
UPDATE, 5-37
valid in debugging session, 5-35–5-36
SSN (DB2 subsystem name), 9-4, F-3, F-8, F-10, F-16
STAE (macro), 1-7
Standard
environment
option, 4-7, 9-3–9-4, B-4
parameters, B-4
test screen, B-4
START field, 7-4, B-7, B-16, B-24, B-28, B-36
starting execution, 1-3
statements
CALL, 5-8, 5-30
DB2, 4-7
EXEC SQL, 4-7, 5-33–5-35, 7-6, 7-9, B-6, B-14, B-18,
B-20, B-22, B-26, B-30, B-33, B-38, B-42
EXIT PROGRAM, 5-8
GOBACK, 5-3, 5-8
breakpoints set on, 5-3
inserting into program, 1-3, 5-11
GOTO command, 5-31
MOVE command, 5-22, 5-31
PAUSE command, 5-31
PEEK command, 5-31
SQL statements, 5-31, 5-35
MOVE, 3-7, 9-2
PERFORM, 9-2
setting counters on, 5-10, 5-29
SQL, 1-3
dynamically executing, 4-48, 5-35
inserting into source program, 5-31, 5-35
processing, 5-33
STOP RUN, 5-3
I-15
breakpoints set on, 5-3
Status screen, H-3
status, active, 2-1, 2-3, 3-5, 5-2
STD PARM passing option, B-13, B-17
Step Restart, 9-1
Stop Region Facility, 7-16
STOP RUN statement, after breakpoint automatically
set on, 5-3
stopping execution, 1-3, 3-5, 5-10, 5-27
storage, 1-3
contents, displaying, 5-13, 5-23–5-24
group
change description of, 5-35
define, 5-36
stored procedure, G-5
STORED PROCEDURES (option 4), 4-2
structure, G-5
SUB environment, G-5
SUB PARM passing option, B-13
Submit Bind Method field, F-3, F-8, F-10, F-16
SUBMIT command, 4-11, 4-16
subordinate module, B-12
subroutines, 3-7
debugging, 3-7
IMS as stand-alone, B-13
linkage section of, B-12
TRIRPTP, 4-46, 5-7
TRITSTP, 5-6, 5-8–5-9
subscript
decrement, 5-17
increment, 5-17
SUPRA, 1-4, 4-7, 9-3
SYNCSORT, 9-5
SYSIN
command, B-3, B-19, B-21, B-41
dataset, B-3, B-19, B-21, B-41
System 2000, 4-7
System field, 7-6, 7-9, 9-4, B-6, B-8, B-14, B-18, B-20,
B-22, B-26, B-30, B-33, B-38, B-42
System Flow? field, 7-6, 7-9, B-5, B-8, B-13, B-18, B-20,
B-22, B-26, B-30, B-33, B-38, B-41, B-45
SYSUDUMP, 6-5
T
table
changing contents of, 5-35
element displayed, 5-16
tape files for Batch Connect, 1-2
TCP/IP address, 8-5, B-44
temporary breakpoint (GOTO), G-5
terminal
ATM, 7-1, B-26, B-31, B-35
color, D-3
I/O, 5-12, 5-27
IMS, 4-7, 7-1, 7-6, 7-9–7-10, B-26, B-31, B-35
TSO, 4-7, 7-1, 7-6, 7-10, B-26, B-31, B-35
test
ABENDSCR command, 4-22, 4-32, 4-44
docedit, B-3
fixes, 5-31
loop using GOTO command, 5-32
screens
BATCHPEM (option 5), B-18
BMP/IFP (option 9), 7-1, 7-7, B-31
BMPPEM (option 11), B-40
BTS (option 4), 9-4, B-14
BTSIN, B-17, B-25
DB2 Stored Procedures (option 12), B-43
Dialog (option 2), 9-4, B-6
DLIPEM (option 6), B-20
IMS (option 3), 9-3, B-11
IMSPEM (option 10), B-35
IMSPEM (option 7), B-23, B-35
Intercepts, 7-3–7-4, 7-8, 7-10, 7-13, B-3, B-7,
B-16, B-23–B-24, B-27–B-28, B-30, B-33, B-36,
B-38, B-42
Log, 7-7
MPP (option 8), 7-1–7-2, B-26
script file, 4-43, B-3
session log file, 5-20, 5-27
Setup Menu, 4-43, 9-3
Standard (option 1), 9-3–9-4, B-4
SYSIN dataset, B-3, B-19, B-21, B-41
script, 1-4, 4-42–4-43, B-3
abend, 4-22, 4-32, 4-44
editing, 4-44
examples, 4-44, 4-46
initial, 4-43, 7-4, 7-8, B-4, B-7, B-12, B-16, B-19,
B-21, B-24, B-28, B-32, B-36, B-40
library, 1-4, 4-22, 4-32, 4-43
post, 4-44, 7-4, 7-8, B-5, B-7, B-12, B-16, B-19,
B-21, B-24, B-28, B-32, B-36, B-40
saving and using, 4-45
TEST command, 4-40–4-41
INITSCR keyword, 4-43
test script, G-5
test script library, G-5
testing environments, 4-1
TIS, 4-7, 9-3
title field, 2-1
TOTAL, 4-7, 9-3
trace
call activities, 5-27
execution, 5-27
logic flow, 5-12, 5-27
paused, 5-13, 5-31
logic flow, 5-12, 5-27
trace breakpoint, G-5
TRACE command, 4-46, 5-12, 5-21, 5-25, 5-27
ALL LABELS keyword, 5-28
ALL STATEMENTS keyword, 5-27
MAX keyword, 5-12, 5-27
MODULES keyword, 5-27
TRANCODE, B-28
transaction, B-16, B-24
BTS, B-3
code, 7-4, 7-8, 7-11, B-16, B-24, B-28, B-31–B-32,
B-34, B-36, B-39–B-40, B-43
BMP, 7-13
IFP, 7-13
MPP, 7-13
conversational, 7-11
driven BMP programs, 4-7
identifying for debugging, B-31, B-35
intercepted by Xpediter/IMS, 7-13, B-3
intercepted by Xpediter/TSO, 7-4, 7-8, B-16, B-23–
B-24, B-27–B-28, B-32, B-36
message-driven, 7-15
non-Wait-For-Input (non-WFI), 7-10, 7-12
nonconversational, 7-11
optimal IMS input code, B-40
Wait-For-Input (WFI), 7-12
BMP, 7-14
I-16
Xpediter/TSO and Xpediter/IMS PL/I User Guide
IFP, 7-14
MPP, 7-14
TRIJCLST, H-2
TRIMAINP program, 3-1, 3-6–3-7, 5-7–5-8, 5-16
TRIRPTP program, 3-2, 4-46, 5-7
TRITSTP program, 3-2, 3-7, 5-6, 5-8–5-9, 5-30
TSO
address space, 4-7, 7-1, B-26, B-31, B-35
logical terminal, 4-7, 7-1, 7-6, 7-10, B-26, B-31, B-35
logon region size, 1-5
memory requirements, E-1
region, 9-1, 9-4
TSO (option 2), 4-2, 4-6, 7-1
Environments Menu, 4-6, B-1
guidelines for selecting environment, 4-7, 7-1,
7-7
tutorial, 4-3
color defaults, D-4
TUTORIAL (option T), 4-3
TUTORIAL command, D-4
type of program, 7-11, B-31, B-34, B-39, B-43
Hogan
BMP, B-22
DBB, B-22
DL/I, B-22
IMS, B-13, B-17, B-21, B-25
BMP, 7-2, 7-7, 7-12, B-13, B-17, B-21
DBB, B-13, B-17, B-21, B-25
DL/I, B-13, B-17, B-21
IFP, 7-2, 7-7, 7-13
MPP, 7-2, 7-12
typing over values (implicit move), 5-21
in Keep window, 5-21
U
unattended batch, G-5
Unattended Code Coverage, 4-12, 4-15, 4-17, 4-26–
4-28
Unattended Code Coverage/System Flow, 4-15, 8-9
Unattended System Flow, 4-15, 8-8
Unattended Test Data Optimization, 4-15, 8-8
Unattended Test Data Optimization/System Flow,
4-16, 8-9
Unattended? field, 7-5, B-18, B-26, B-29, B-37
unit testing subroutines, G-5
unwanted code, bypassing, 5-30
UP command, 2-3, 7-3, B-3, B-15, B-23, B-27
update Keep window, 3-7
by typing over (implicit move), 5-14, 5-21
using MOVE command, 5-14, 5-22
UPDATE statement, 5-37
uppercase, 2-4, 4-41
usage notes, 4-9, 4-22, 4-32, 4-40, 9-7
User Libraries field, F-6, F-13
user test scripts library, G-5
using the File Allocation Utility, A-1
UTILITIES (option 5), 4-2, E-1
DDIO File Facility screen, E-3
Display Available Memory (REGION SIZE), E-1
Display File Allocations (LIST ALLOCATES), E-2
Menu, E-1
Select Alternate Profiles (MERGE), E-3
V
Validate field, F-4, F-11
values, displayed in Keep window, 3-7
variable, 1-3
content, 5-10
display in Keep window, 5-10, 5-14–5-15, 5-22
monitoring, 5-10
new shared pool, B-10
show values next to data definitions, 5-14
values entered in session log, 5-21
VCON, G-5
VSAM, G-5
file status, 1-3
files, 9-3, B-4, B-18
VSAM files, 4-7
VTAM, with Batch Connect, 4-17, 4-19, 8-10
VTAM, with Batch Connect under ROSCOE, 4-30
VTAM, with CICS connection, 4-49
W
Wait-For-Input (WFI) transactions, 7-12
BMP, 7-14
IFP, 7-14
MPP, 7-14
WebSphere MQ, G-5
WHEN command, 4-47, 5-4, 5-10, 5-21
wide screen, G-5
working storage, G-5
Workload Manager (WLM), 8-1, G-5
X
xcreens
Environments Menu
IMSPEM (option 10), 4-7
XDYNAMIC DD, 4-39
XINCLUDE, 4-43–4-44
DD, 4-22, 4-32, 4-39
XOPTIONS DD, 4-39
XP (Explain) line command, 5-34
XPDOC DD, 4-39
XPED command, 4-40–4-41
Xpediter ISPF interface, G-6
Xpediter/Code Coverage, 4-3, 7-5–7-6, 7-9, B-5, B-8,
B-14, B-18, B-20, B-22, B-26, B-29–B-30, B-33, B-37–
B-38, B-41, B-45, G-6
Xpediter/IMS, 4-1
Xpediter/IMS environment options, C-3
Xpediter/TSO, 1-1, G-6
Environments Menu, 4-6, B-1
execution operating modes
batch, 1-4, 4-10, 4-37, 4-40
interactive, 1-4, 2-4
intercepting
execution, 1-3, 3-5, 5-10, 7-4, B-7, B-16, B-24,
B-28, B-36
transactions, 7-4, 7-8, B-16, B-23–B-24, B-27–
B-28
invoking, 4-2, 7-1
Primary Menu, 3-2, 4-1, 8-2
I-17
BATCH (option 3), 4-2
BULLETIN (option B), 4-3
CICS (option CS), 4-3
DEFAULTS (option 0), 4-2
EXIT (option X), 4-3
FADB2 (option F), 4-3
PREPARE (option 1), 3-2, 4-2, 4-8
PROFILE field, 4-6
STORED PROCEDURES (option 4), 4-2
TSO (option 2), 4-2, 4-6, 7-1
TUTORIAL (option T), 4-3
UTILITIES (option 5), 4-2, E-1–E-3
restrictions and warnings, 1-5
test screens
BATCHPEM (option 5), B-18
BMP/IFP (option 9), B-31
BMPPEM (option 11), B-40
BTS (option 4), 9-4, B-14
DB2 Stored Procedures (option 12), B-43
Dialog (option 2), 9-4, B-6
DLIPEM (option 6), B-20
IMS (option 3), 9-3–9-4, B-12
IMSPEM (option 10), B-35
IMSPEM (option 7), B-23
MPP (option 8), B-26
Standard (option 1), 9-3–9-4, B-4
XPHELP DD, 4-39
XPIMSDMP, 7-15
XPIN DD, 4-40
XPNULLXP, C-18
XPOUT DD, 4-39–4-40
XPPISPFT, B-8–B-9
XPSCRIPT DD, 4-39
XPSHOW DD, 4-40
XPSL000n DD, 4-39
XTASKLIB concatenation, B-8
I-18
Xpediter/TSO and Xpediter/IMS PL/I User Guide
">
/
İndir
Sadece dostça bir hatırlatma. Belgeyi buradan görüntüleyebilirsiniz. Ancak en önemlisi, yapay zekamız zaten okudu. Karmaşık şeyleri basit terimlerle açıklayabilir, sorularınızı herhangi bir dilde yanıtlayabilir ve en uzun veya en karmaşık belgelerde bile hızlıca gezinmenize yardımcı olabilir.
Reklam