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 report-item in COBOL?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
For rewrite, why is it mandatory that file needs to be opened?
how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
explain sorting techniques in cobol program?
What is difference between static and dynamic call in cobol?
Name the divisions, which are available in a cobol program?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
What are the pertinent COBOL
What is redefines clause in COBOL?
Can we change the password using ALTER? anyone tried and changed?
how do you reference the variable block file formats from cobol programs
What is the Purpose of POINTER Phrase in STRING command in COBOL?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.