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
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
Explain how to differentiate call by context by comparing it to other calls?
Why occurs cannot be used in 01 level in COBOL?
how do you reference the variable block file formats from cobol programs
what happens if parmparameter passes zero bytes to the program
How arrays can be defined in COBOL?
What is the Purpose of Pointer in the string?
) what is the difference between AID and HANDLE AID?
What is perform what is varying?
How do you reference the following file formats from cobol programs?
What is link edit in cobol?
A table has two indexes defined. Which one will be used by the SEARCH?
What is Pic 9v99 Indicates in COBOL?
What is the compute verb? How is it used?
i need a small 3d program using inline and outline.