COBOL

COBOL

COBOL

COBOL is responsible for the efficient, reliable, secure, and unseen day-to-day operations of the world's economy.

 View Only
  • 1.  JCL For Compilation COBOL 6.3

    Posted Fri October 13, 2023 09:12 AM
      |   view attached

    Good morning,

    After migrating from Cobol 4.2 to version 6.3, all our compilation jcl stopped working.

    I need your help if possible, providing us with copies of compilation JCLs for COBOL, COBOL + CICS and COBOL + DB2 programs.

    Attached I send one of the error lists, I tried to change the compilation libraries, but I always receive similar errors.

    Thanks



    ------------------------------
    Vagner Bellacosa
    ------------------------------

    Attachment(s)

    txt
    log (1).txt   293 KB 1 version


  • 2.  RE: JCL For Compilation COBOL 6.3

    Posted Fri October 13, 2023 09:30 AM

    Lets start by replacing your //SYSUT1-7 with the following and adding REGION=0M on the JOBCARD removing REGION= on the STEPS where PGM=IGY .. all STEPS with PGM=IGY need the new DDs and REGION=0M.

    //SYSUT1   DD  UNIT=SYSALLDA,SPACE=(CYL,(1,1)),VOL=(,,,1)
    //SYSUT2   DD  UNIT=SYSALLDA,SPACE=(CYL,(1,1)),VOL=(,,,1)
    //SYSUT3   DD  UNIT=SYSALLDA,SPACE=(CYL,(1,1)),VOL=(,,,1)
    //SYSUT4   DD  UNIT=SYSALLDA,SPACE=(CYL,(1,1)),VOL=(,,,1)
    //SYSUT5   DD  UNIT=SYSALLDA,SPACE=(CYL,(1,1)),VOL=(,,,1)
    //SYSUT6   DD  UNIT=SYSALLDA,SPACE=(CYL,(1,1)),VOL=(,,,1)
    //SYSUT7   DD  UNIT=SYSALLDA,SPACE=(CYL,(1,1)),VOL=(,,,1)
    //SYSUT8   DD  UNIT=SYSALLDA,SPACE=(CYL,(1,1)),VOL=(,,,1)
    //SYSUT9   DD  UNIT=SYSALLDA,SPACE=(CYL,(1,1)),VOL=(,,,1)
    //SYSUT10  DD  UNIT=SYSALLDA,SPACE=(CYL,(1,1)),VOL=(,,,1)
    //SYSUT11  DD  UNIT=SYSALLDA,SPACE=(CYL,(1,1)),VOL=(,,,1)
    //SYSUT12  DD  UNIT=SYSALLDA,SPACE=(CYL,(1,1)),VOL=(,,,1)
    //SYSUT13  DD  UNIT=SYSALLDA,SPACE=(CYL,(1,1)),VOL=(,,,1)
    //SYSUT14  DD  UNIT=SYSALLDA,SPACE=(CYL,(1,1)),VOL=(,,,1)
    //SYSUT15  DD  UNIT=SYSALLDA,SPACE=(CYL,(1,1)),VOL=(,,,1)
    //SYSMDECK DD  UNIT=SYSALLDA,SPACE=(CYL,(1,1)),VOL=(,,,1)



    ------------------------------
    Gary Davis
    z/OS Systems Programmer
    DDC ITS, LLC
    Sunrise FL
    2023787953
    ------------------------------



  • 3.  RE: JCL For Compilation COBOL 6.3

    Posted Thu October 26, 2023 05:05 PM
    Edited by Roy Bae Thu October 26, 2023 05:05 PM

    Hello Vagner, 
    Did you get it work finally? COBOL 5/6 needs a bit different set-up than COBOL 4.2 as Gary pointed out. For your information, I included a couple of links. Let us know how it goes!


    Example: user-written JCL for compiling
    https://www.ibm.com/docs/en/cobol-zos/6.2?topic=programs-example-user-written-jcl-compiling

    Compile and link-edit procedure (IGYWCL)
    https://www.ibm.com/docs/en/cobol-zos/6.2?topic=procedure-compile-link-edit-igywcl



    ------------------------------
    Roy Bae
    ------------------------------



  • 4.  RE: JCL For Compilation COBOL 6.3

    Posted Fri March 01, 2024 02:21 PM
      |   view attached

    Here is my working JCL. 



    ------------------------------
    Sylvie Delahaye
    ------------------------------

    Attachment(s)

    txt
    COMPILK.jcl.txt   4 KB 1 version


  • 5.  RE: JCL For Compilation COBOL 6.3

    Posted Fri March 01, 2024 02:34 PM

    Migrating from COBOL 4.2 to 6.x is far more than just updating the binaries for the compiler. As mentioned by others in the thread, there are JCL changes needed and considerations around the datasets and files that are used in the compilation and bind processes.

    I would recommend spending some time with IBM's COBOL Migration Portal, rather than just trying to fix what you have one error at a time.

    This blog is also a good resource for the migration.



    ------------------------------
    Scott Fagen
    Mainframe Evangelist
    CDW
    www.cdw.com/content/cdw/en/solutions/ibm-zsystems.html
    ------------------------------