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'.
Answers were Sorted based on User's Feedback
Answer / deependra
The output is as follow:-
MAIN-PARA
SECTION A PARA A1
SECTION A PARA A2
| Is This Answer Correct ? | 24 Yes | 1 No |
Answer / 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 |
The output is :
---------------
MAIN-PARA
SECTION A PARA A1
SECTION A PARA A2
Because, There is no THRU command in PERFORM statement. So
it will execute still it reaches the 'EXIT' command or it
will perform the full section or until the next section
reaches.
| Is This Answer Correct ? | 0 Yes | 1 No |
How many bytes do a s9 (7) comp-3 field occupy?
When search all is used in cobol program without sorted input data?
6 Answers CGI, Principal Finance,
Suppose i have a Cobol field of 10 byte. it contains a decimal sign.How to know where is the point location?
Difference between cobol and cobol-ii?
Size of a column has been changed in DB2 table (Suppose it was of 5 characters and later changed to 4 characters) and forgot to change the DCLGEN in COBOL program, what will happen during the execution of code? If the program Abends then what will be the error? If it doesn't abend then hpw the error can be catched?
Why IBM?
What is Static and Dynamic linking ?
Are you comfortable in cobol or jcl?
what is record label is empty or standard in file description of data division?
How many maximum number of procedures can we write in one COBOL program?
Wat is the difference between NEXT and CONTINUE statement in cobol,can any one explain with example.
What is SQL Code -904 and -903 in DB2 And how to handle it?