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 / wairagade
Output = MAIN-PARA
See the Main-Para. the flow is like , it will display MAIN-
PARA text and then perform SECTION-A in which nothing is
coded, it will give control back to OS.
If PERFORM SECTION-A thru PARA-A2
Then
O/P
MAIN-PARA
SECTION A PARA A1
SECTION A PARA A2
Please correct me if I stated wrong
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
In COBOL programming, what is PERFORM? What is VARYING?
Are you comfortable in cobol or jcl?
Name some of the examples of COBOl 11?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
What is link edit in cobol?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
What is the difference between Call and a Link?
What is Pic 9v99 Indicates in COBOL?
Why would you use find and get rather than to obtain?
What is cobol?
Which mode is used to operate the sequential file?
What is the difference between a binary search and a sequential search what are the pertinent cobol?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
What is the local-storage section?