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
What is the LINKAGE SECTION used in COBOL?
Can we change the password using ALTER? anyone tried and changed?
How arrays can be defined in COBOL?
how to access the file from prodution from changeman tool and to submit a file to production
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
what is the difference between COBOL2 AND COBOL390?
How do you define a variable of comp-1 and comp-2?
Describe the cobol database components?
Write a cobol program making use of the redefine clause.
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
A table has two indexes defined. Which one will be used by the SEARCH?
What is the difference between Call and a Link?
Write a program that uses move corresponding.
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?