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 rmode(any) ?
What is the difference between PIC 9.99 and PIC9v99?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
How do we get current date from system with century in COBOL?
What are the different rules to perform a Search?
What are 77 levels used for?
Write some characteristics of cobol as means of business language.
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
What kind of error is trapped by on size error option?
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?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What rules are followed by the search verb.
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
What is the difference between comp and comp-3?