Suppose a program has the following code. What will be the
output?

MAIN-PARA.
DISPLAY 'MAIN-PARA'
PERFORM SECTION-A.
STOP RUN.

SECTION-A.
PARA-A1.
DISPLAY 'SECTION A PARA A1'.
PARA-A2.
DISPLAY 'SECTION A PARA A2'.

Answer Posted / deependra

The output is as follow:-
MAIN-PARA
SECTION A PARA A1
SECTION A PARA A2

Is This Answer Correct ?    24 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is amode(24), amode(31), rmode(24) and rmode(any)?

688


What the difference is between continue and next sentence?

651


What rules are followed by the search verb.

629


What is the utilization of copybook in cobol?

649


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

667






Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

668


how do you reference the fixed unblock file formats from cobol programs

698


How many sections are there in data division in COBOL?

674


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

5664


Which is not true about evaluate statement

1563


How you can read the file from bottom?

654


What is the Purpose of Pointer in the string?

636


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1642


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

697


In COBOL, what is the different between index and subscript?

751