Answered Questions

  • COBOL Divisions

    What are the four divisions in COBOL

    Star Read Best Answer

    Editorial / Best Answer

    venkat65318  

    • Member Since Sep-2009 | Sep 13th, 2009


    In Cobol there are 4 divisions.

    1. Identification division or ID division
    In this no setions are there. It has 5 paragraphs.
    a. Progaram-id. programname
    b. Author
    c. Writen-date
    d. Compiled-date
    e. Installer

    2. Environment Division
    Under this there are two sub-sections
    a. Configuration-section.
         Source compter.
         Object computer.
    b. Input-Output section.
         File control.
         IO control.

    3. Data Division
    File-section.
    Working-storage section.
    Linkage section.
    Report section.
    Screen section.

    4. Procedure Division

    saurabh bandyopadhyay

    • May 25th, 2012

    There is another section in Data division; named as LOCAL-STORAGE SECTION.

    For a recursive cobol program, you need to use that section to hold the current values of each variable while the program run.

    Regards,
    Saurabh Bandyopadhyay.
    Mainframe Developer, India.

    Nithya

    • May 10th, 2012

    IDENTIFICATION DIVISION */ mandatory */should contain PROGRAM-ID ENVIRONMENT DIVISION ...

  • What is Load module & Link edit and How will it work Dynamic call?

    Normally we are using Dynamic call. What will happen when COBOL program compilation & execution.

    ramesh4greek

    • Jun 11th, 2010

    Load Module: The object code converted into Load Module (Machine readable form) by using Link edit that's common in COBOL.    But in Dynamic call, first we have to submit the sub progs later we can use that in Link  section in COBCOMP. That's the procedure.