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


Please Help Members By Posting Answers For Below Questions

What is rmode(any) ?

676


What is the difference between PIC 9.99 and PIC9v99?

771


I have a File that has duplicate records. I need only those records that occur more than thrice.?

8609


How do we get current date from system with century in COBOL?

792


What are the different rules to perform a Search?

613






What are 77 levels used for?

652


Write some characteristics of cobol as means of business language.

611


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

667


What kind of error is trapped by on size error option?

734


here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

6796


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1833


What rules are followed by the search verb.

629


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1516


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8146


What is the difference between comp and comp-3?

692