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 the difference is between continue and next sentence?
how to access the file from prodution from changeman tool and to submit a file to production
What is the difference between comp and comp-3?
What rules are followed by the search verb.
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
Write a program to explain size error.
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
How many bytes S(8) comp field occupy and its maximum value?
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly
In COBOL programming, what is PERFORM? What is VARYING?
how do you reference the esds vsam file formats from cobol programs
Difference between array and sub-script ?
What type of SDLC u followed? Why?