Answered Questions

  • Redefine

    What is redefine in COBOL?

    Dhans

    • Sep 2nd, 2019

    The REDEFINES clause is used to store more than one data items in the same storage area. Syntax: level-number Data-name1 REDEFINES Data-name-2 data-name-1 is the redefining item or the REDEFINES su...

    gauravaram

    • Dec 6th, 2018

    redefines class is something you can use the existing memory location for your new variable using the redefines caluse 01 emp-data pic x(100) 05 emp-name pic x (40) 05 emp-no pic x(20) 05 fi...

  • COPY Statement

    Which one of the following COPY statement is correct?1) COPY COPYFILE REPLACE ==PRE-== ==WK-==2) COPY COPYFILE REPLACING =PRE-= =WK-=3) COPY COPYFILE SUPPRESS4) COPY REPLACING ==PRE-== ==WK-== IN COPYFILE5) COPY SUPPRESS COPYFILE

    Abhusha

    • Nov 20th, 2014

    COPY COPYFILE REPLACING =PRE-= =WK-= is the correct answer

    correct syntax Syntax:
    COPY copybook-name [(OF/IN) library name]
    [REPLACING string-to-be-replaced BY replacing-string]

    Rishu

    • Jul 27th, 2014

    1st one the answer

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