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 / suresh ramaiyan
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 |
Post New Answer View All Answers
How do you reference the fixed block file formats from cobol programs
) How do u handle errors in BMS macro?
What are the different types of condition in cobol and write their forms.
What are literals?
Whats the difference between search & search ALL?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
Why did you choose to work with ibm mainframe cobol programming?
What are the rules of the move verb?
What are declaratives and what are their uses in cobol?
What is the difference between a binary search and a sequential search what are the pertinent cobol?
IF I mention stop run in CICS what happens?
Which is not true about evaluate statement
What are the cobol coding sheets?
How do u write test cases?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?