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
what is search and searchall?what is the diffrence between them?give an best example?
) how do u code after getting data?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
Can a Search can be done on a table with or without Index?
what is difference between cobol and cobol/400
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
What are the different rules to perform a Search?
what happens if parmparameter passes zero bytes to the program
Difference between array and sub-script ?
how do you reference the rrds file formats from cobol programs
For rewrite, why is it mandatory that file needs to be opened?
Define static linking and dynamic linking.
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?