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

  • comp-3

    what is comp-3 and advantage with examples?

    shaikmf

    • Jun 11th, 2008

    COMP-3 is a computational method used in COBOL. COMP-3 is represented in Packed Decimail format. Decimails are alloed to this COMP-3 Field. Each digit occupies 1/2 bite of memory, so this declara...