consider the following progrm statements
MOVE 0 TO SW.NO.OF.REC
PERFORM PRI-OUT UNTIL SW=1
DISPALY NO.OF.REC
STOP RUN
PRE-OUT
READ IN-FILE AT END
MOVE 1 TO SW
WRITE OUO-REC FROM IN-REC
ADD 1 TO NO.OF REC
if the IN-FILE contains 1000 records what value will be
displayedafter the
PERFORM is over?assume that N0.OF.REC has PIC 9(4)
a.1000
b.1001
c.1
d.none of the above since there is a syntex error
Answer Posted / islam
the correct answer is : c (i.e. 1)
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is redefines clause in COBOL?
What is an in line perform? When would you use it? Anything else you wish to say about it.
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
Write the code implementing the perform … varying.
What is the difference between a binary search and a sequential search what are the pertinent cobol?
How do you get the data to code the BMS macro?
What are various search techniques in cobol? Explain.
) How do u handle errors in BMS macro
what happens if parmparameter passes zero bytes to the program
Difference between cobol and cobol-ii?
What is difference between static and dynamic call in cobol?
How can you get the ksds file records into your cobol program?
Write some characteristics of cobol as means of business language.
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
Are you comfortable in cobol or jcl?