How to debug when the program load module name and PROGRAM ID name are different?
search cancel

How to debug when the program load module name and PROGRAM ID name are different?

book

Article ID: 421549

calendar_today

Updated On:

Products

InterTest - Batch

Issue/Introduction

The InterTest Batch cannot match the symbolic file in the PROTSYM file with the executed load module name because they are different.

Environment

Z/OS

Cause

The PROGRAM ID name needs to match with the PROTSYM file member name.

Resolution

Copied the InterTest Batch source code CAMRCOBB as ABCDCOBB and changed the PROGRAM ID as ABCDCOBB.
And then program ABCDCOBB compiled and link edited as WXYZCOBB. So the load library has the WXYZCOBB load module.
Also, the compile listing file was post-processed with IN25COB2 as ABCDCOBB, which it matched with the PROGRAM ID name. 

InterTest Batch option U.1 will shows as 
 ------------- CA-InterTest Batch PROTSYM Member Selection ---------------------
 -------------------------------------------------------------------------------
 PROTSYM Dsname  ===> 'AD1L1.TT11.GA.PROTSYM'                                  
 -------------------------------------------------------------------------------
 Cmd  Program   Date       Time       Size Language    Attributes              
      **************************** TOP OF DATA ********************************
      ABCDCOBB  12/04/2025 09:34:04     99 COBOL 6.3               
 
And select the member; then you should be able to match the PROTSYM member name and PROGRAM ID name.
 
 ABCDCOBB ---- CA-InterTest Batch Program Listing Displ- LINE 000084 COL 000 076
 -------------------------------------------------------------------------------
      XREF(FULL)                                                              
      ZWB                                                                      
  1PP 5655-EC6 IBM Enterprise COBOL for z/OS  6.3.0 P240628       YONGCOBB  Dat
     LineID  PL SL  ----+-*A-1-B--+----2----+----3----+----4----+----5----+----
  0  000001               * COPYRIGHT (C) 2008 - 2017 CA.  ALL RIGHTS RESERVED.
     000002                IDENTIFICATION DIVISION.                            
     000003                PROGRAM-ID.      ABCDCOBB.                          
     000004                AUTHOR.          CA.                                
 Convert the JCL to prepare the debug session.  
 
//STEP1    EXEC PGM=CAMRBL01,                              
// REGION=4M                                                
//STEPLIB  DD DISP=SHR,DSN=INTERTEST.BATCH.CAVHLOAD          
//         DD DISP=SHR,DSN=INTERTEST.BATCH.PROGRAM.LOAD              
//INT1OPTS DD *                                            
  EXEC=WXYZCOBB,PROFILE=USERID                              
/*                                                          
//INT1PARM DD DISP=SHR,DSN=INTERTEST.BATCH.CAVHSAMP          
//INT1LOAD DD DISP=SHR,DSN=INTERTEST.BATCH.CAVHLOAD          
//INT1PNLL DD DISP=SHR,DSN=INTERTEST.BATCH.CAVHPNL1          
//INT1MSGL DD DISP=SHR,DSN=INTERTEST.BATCH.CAVHMSG0          
//INT1PROF DD DISP=SHR,DSN=INTERTEST.BATCH.PROFLIB            
//INT1CLIB DD DISP=SHR,DSN=INTERTEST.BATCH.CAVHSAMP          
//SYSTCPD  DD DISP=SHR,DSN=INTERTEST.BATCH.CAVHSAMP          
//SYSUDUMP DD SYSOUT=*                                      
//* END OF CONVERTED JCL              
 
Enter the program load module WXYZCOBB's symbolic file name ABCDCOBB.
 
 ---------------- CA-InterTest Batch MONITOR CONTROL Panel
 COMMAND ===>                                            
                                                         
 ---------------------------- Monitored Programs ---------
                                                         
 ==> ABCDCOBB    ==>             ==>             ==>      
 ==>             ==>             ==>             ==>      
 ==>             ==>             ==>             ==>      
 ==>             ==>             ==>             ==>      
 ==>             ==>             ==>             ==>      
 ==>             ==>             ==>             ==>      
                                                         
 ---------- Symbolic (PROTSYM) Files ------------------- 
                                                         
 ==> 'INTERTEST.BATCH.PROTSYM'                           
 
Now the InterTest Batch can debug even the program load module name and compile the listing file difference.
 
 ABCDCOBB ---------- CA-InterTest Batch *INITIAL* Intercept -------------------
 TRACE=> 000427                                                                
       000426        PROCEDURE DIVISION USING PARAMETER-AREA.                  
  *--> 000427        START-PROGRAM.                                            
  *--> 000428            OPEN OUTPUT REPORT-OUT.                                
       000429       * -----------------------------------------------*          
       000430       * Welcome to the CA InterTest Batch Batch Link   *          
       000431       * Demonstration Program. You are now at the      *          
       000432       * Initial Breakpoint panel which is displayed    *          
       000433       * upon entry to the first program to be tested.  *