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 ...