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
Explain the configuration section of a cobol program with examples of syntax.
what is difference between cobol and cobol/400
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
What are the pertinent COBOL
what are decleratives in cobol?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
What are the different rules of SORT operation?
I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
how do you reference the fixed unblock file formats from cobol programs
What rules are followed by the search verb.
What is the Purpose of POINTER Phrase in STRING command in COBOL?
Write some characteristics of cobol as means of business language.
What is rmode(24)
How to print 10 to 1 if the input have only 10 digit number?