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

Code Debug TSO utilities


The Code Debug TSO utility functions are accessed by selecting option 5 on the Primary Menu. The Code Debug TSO Utilities Menu shown in following figure 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. Execute CSS Source Listing File Facility (CSS UTILITIES).
  4. Display the status of the Db2 Stored Procedure Intercept.
  5. Display the status of the IMS Intercept.
  6. Display the status of the Multi-Batch Intercept.
  7. Merge profiles from other user IDs (MERGE).
  8. Prepare JCL for Selective Delete Utility (SELECTIVE DELETE).

Code Debug TSO Utilities Menu

-------------------------------- UTILITIES MENU --------------------------
OPTION ===>


  1  REGION SIZE           - Display memory available for testing
  2  LIST ALLOCATES        - Display files allocated to your test session
  3  CSS UTILITIES         - Execute CSS Source Listing File Facility    
   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
  8  SELECTIVE DELETE      - Prepare JCL for Selective Delete Utility





          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 Code Debug TSO debugging session. The condensed storage specification screen is displayed in following figure.

Code Debug 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 lines give you some idea as to what the memory requirements are for the different Code Debug TSO execution environments:

If you are using DATACOM/DB, IDMS/DB, or System 2000, the recommended memory is 2,000,000 bytes.

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

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 Code Debug 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 Code Debug TSO debugging session. The following line commands are available, entered in the SEL column:

A

Concatenation destination (After)

B

Browse individual data set

C

Concatenation source (Copy)

D

Deconcatenate request

E

Edit individual data set

S

Data set status

U

Unallocation request

The SHOW ALLOCATES command displays the same information in essentially the same format, but the line commands are not available.

Following figure (List Allocates Screen) is a sample of the output from this function.

List Allocates Screen

--------------------------------- 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 Code Debug TSO to reference various elements of your program during testing.

Important

In some cases, a DDIO file was created and formatted during the installation of BMC AMI's Common 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 Common Shared Services User/Reference Guide for more information.

Viewing Status of Db2 Stored Procedures Intercept

This utility provides information on the status of the Code Debug Db2 Stored Procedures Intercept. Typical output from the utility is shown in following figure.

Db2 Stored Procedures Intercept Status

Menu  Utilities  Compilers  Help
--------------------------------------------------------------------------------
BROWSE    SYS17109.T073820.RA000.ACMJET0.R0175147  Line 0000000000 Col 001 080
 Command ===>                                                   Scroll ==> CSR
********************************* Top of Data **********************************
CODE DEBUG DB2 STORED PROCEDURE STATUS:ACTIVE              CW01
        NUMBER OF PC INTERCEPT ABENDS:0000
                  LOCATION OF PC STUB:34825528
                       LOCATION OF PC:3A0686E8
                         LENGTH OF PC:00001918
                         RELEASE OF PC:16.05.00
                   ASSEMBLY TIME OF PC:15.56
                   ASSEMBLY TIME OF PC:20150814
                   LOCATION OF SUFFIX:3A069FC8
              LOCATION OF TRACE TABLE:324F6000
      ACTIVE DB2 SP DEBUGGING SESSIONS:0000
           LAST ACTIVATION TIME STAMP:04/18/17 19:27:38
         LAST DEACTIVATION TIME STAMP:00/00/00 00:00:00
          LAST MAINTENANCE TIME STAMP:00/00/00 00:00:00
     ACTIVE DB2 SUBSYSTEMS INTERCEPTED:DA01       DA1E       DA1J
                                       DB1E       DB1J       D901
                                       D91J
******************************** Bottom of Data ********************************

Viewing Status of IMS Intercept

This utility provides information on the status of the Code Debug IMS Intercept. Typical output from the utility is shown in following figure.

IMS Intercept Status

Menu  Utilities  Compilers  Help
--------------------------------------------------------------------------------
BROWSE    SYS17109.T074022.RA000.ACMJET0.R0175559  Line 0000000000 Col 001 080
 Command ===>                                                   Scroll ==> CSR
********************************* Top of Data **********************************
       CODE DEBUG IMS INTERCEPT STATUS:ACTIVE    INITIALIZED     CW01
            LX OF SERVICE PC ROUTINE:00005300
                LOCATION OF PC STUB:093A0088
                     LOCATION OF PC:093C0AA0
                       LENGTH OF PC:00001560
                       RELEASE OF PC:17.02.00
                 ASSEMBLY TIME OF PC:15.30
                 ASSEMBLY DATE OF PC:20160205
       LOCATION OF RESOURCE MANAGER:89395358
         LENGTH OF RESOURCE MANAGER:00000890
         LAST ACTIVATION TIME STAMP:04/18/17 19:14:51
       LAST DEACTIVATION TIME STAMP:00/00/00 00:00:00
        LAST MAINTENANCE TIME STAMP:00/00/00 00:00:00

 NUMBER OF ACTIVE SUBSYSTEM ENTRIES:0000
NUMBER OF ACTIVE SHARED-QUE ENTRIES:0000

                      SUBSYSTEM NAME:IB01
                     TRANCODE PREFIX:XPED
                     MAX TRANCODE #:0100
      NUMBER OF ACTIVE TRANSACTIONS:0000
           ADDRESS OF TRANCODE TABLE:37CCB6F8

                      SUBSYSTEM NAME:IC01
                     TRANCODE PREFIX:XPED
                     MAX TRANCODE #:0049
      NUMBER OF ACTIVE TRANSACTIONS:0000
           ADDRESS OF TRANCODE TABLE:37CC9BB0

                      SUBSYSTEM NAME:ID01
                     TRANCODE PREFIX:XPED
                     MAX TRANCODE #:0049
      NUMBER OF ACTIVE TRANSACTIONS:0000
           ADDRESS OF TRANCODE TABLE:37CC7BB0

                      SUBSYSTEM NAME:IE01
                     TRANCODE PREFIX:XPED
                     MAX TRANCODE #:0049
      NUMBER OF ACTIVE TRANSACTIONS:0000
           ADDRESS OF TRANCODE TABLE:37CC5BB0

                                LPAR:AC01
                      SUBSYSTEM NAME:IA01
                     TRANCODE PREFIX:XPED
                     MAX TRANCODE #:0049
      NUMBER OF ACTIVE TRANSACTIONS:0000
           ADDRESS OF TRANCODE TABLE:37CC26F8

                                LPAR:AC09
                      SUBSYSTEM NAME:IB09
                     TRANCODE PREFIX:XPED
                     MAX TRANCODE #:0100
      NUMBER OF ACTIVE TRANSACTIONS:0000
           ADDRESS OF TRANCODE TABLE:37CC26F8
******************************** Bottom of Data ********************************

Viewing Status of Multi-Batch Intercept

This utility provides information on the status of the Code Debug Multi-Batch Intercept. Typical output from the utility as shown in above figure.

Multi-Batch Intercept Status

Menu  Utilities  Compilers  Help
--------------------------------------------------------------------------------
BROWSE    SYS17109.T074748.RA000.ACMJET0.R0176969  Line 0000000000 Col 001 080
 Command ===>                                                   Scroll ==> CSR
********************************* Top of Data **********************************
                  MULTI-BATCH STATUS:ACTIVE    INITIALIZED     CW01
        MULTI-BATCH INTERCEPT STATUS:ACTIVE
                    LOCATION OF GCA:336B2000
                   LOCATION OF STUB:3B55D000
                     LENGTH OF STUB:00000070
                     RELEASE OF STUB:17.02.00
              LOCATION OF INTERCEPT:36428B38
                LENGTH OF INTERCEPT:000014C8
                RELEASE OF INTERCEPT:17.02.00
          ASSEMBLY TIME OF INTERCEPT:15.33
          ASSEMBLY DATE OF INTERCEPT:20160205
ACTIVATION TIME OF INTERCEPT:07.36
        ACTIVATION DATE OF INTERCEPT:20230622
                   LOCATION OF ASCB:00F89D00
                  LOCATION OF TCB:009F8588
                     LOCATION OF RB:00000000
                    LOCATION OF SVC:81234FA8
                LOCATION OF XPMDRVR:B2596000

          PROFILE DATASET=SYS2.CW.XT.R1702.MLXT170.MBSF
******************************** Bottom of Data ********************************

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 following figure is displayed.

Select Alternate Profiles Screen

-------------------------  SELECT ALTERNATE PROFILES  -------------------------
COMMAND ===>


 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 data set in the DSNAME field to identify the source of the Code Debug TSO profiles. Entering a data set 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 data set in the DSNAME field, press Enter to display the Merge Profile screen (following figure).

Merge Profile Screen

---------------------------------- 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 (above figure) displayed above shows the alternate profiles that exist in another user’s Code Debug 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 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. The LOCATE command will automatically be disabled when profile entries are sorted by date last modified. See Specifying User Profiles 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.

 

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