Db2 for z/OS & Db2ZAI

Db2 for z/OS and its ecosystem

Connect with Db2, Informix, Netezza, open source, and other data experts to gain value from your data, share insights, and solve problems.

 View Only
  • 1.  CICS/ COBOL versions

    Posted 2 days ago

    Does anyone know how to run something to determine what level of COBOL a program was compiled against?



    ------------------------------
    Kristin Rangel
    Senior Project Manager - Data, Governance & Master Data Management
    NJ Courts
    Trenton
    ------------------------------


  • 2.  RE: CICS/ COBOL versions

    Posted 2 days ago

    Hi Kristin,

     

    The AMBLIST utility can show compiler information. The compiler version info might be embedded in the load module's identification records.

     

    //STEPNAME EXEC PGM=AMBLIST

    //SYSPRINT DD SYSOUT=*

    //SYSLIB DD DSN=your.load.library,DISP=SHR

    //SYSIN DD *

      LISTLOAD MEMBER=PROGNAME

    /*

     

    Other SYSIN options include:
    LISTLOAD MEMBER=MYPROG,OUTPUT=BOTH

    LISTOBJ MEMBER=MYPROG

     

    Let me know if this helps.

     

    Regards,

    Marcus Davage CEng CITP MBCS

    Lead Product Developer
    Intelligent Z Optimization and Transformation
    BMC Software Ltd

    Email marcus_davage@bmc.com

    MarcusDavage@bmcsoftware.onmicrosoft.com/bookings/">Book time to meet with me

    My Digital Pin IBM Champion 2025 badge image. Experience. Advanced level. Issued by IBM

     






  • 3.  RE: CICS/ COBOL versions

    Posted 2 days ago
    Edited by Roy Boxwell 2 days ago

    Hi!

     As Marcus states AMBLIST is your friend! Use the LISTLOAD and issue a F 'CONTROL SECTION:  yourprogname'   Note the two spaces! You should find the following:

               CONTROL SECTION:  MDB2R250                                               
    USABILITY: REENTRANT      AMODE: MIN   OVERLAY SEGMENT:    0   OVERLAY REGION:   0  
    ===== IDRL =====                                                                    
              TRANSLATOR   VER   MOD     DATE        TIME                               
              5655EC6       06    03    09/05/2025                                      
    ===== IDRU =====                                                                    

     Here you can see I used COBOL 6.3. 

    Hope that helps!



    ------------------------------
    Roy Boxwell
    Senior Software Architect
    Software Engineering GmbH
    Duesseldorf
    +4921196149675
    ------------------------------



  • 4.  RE: CICS/ COBOL versions

    Posted 21 hours ago
    Edited by Shigeki Kimura 21 hours ago

    Hello,

    How about using the AMBLIST LISTIDR functionality?

    Thanks!



    ------------------------------
    Shigeki Kimura
    zMigration Office Technical Lead
    IBM Japan
    ------------------------------