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 / divakar
correct ans is D.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
In COBOL programming, what is PERFORM? What is VARYING?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
how do you reference the ksds vsam file formats from cobol programs
What type of SDLC u followed? Why?
HOw can I get the negative sign while deduct high value from low value
Write down the divisions of cobol program?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
What are the pertinent COBOL commands?
When is inspect verb is used in cobol?
What do you understand by psb and acb?
) How do u handle errors in BMS macro
what is amode(24), amode(31), rmode(24) and rmode(any)?
Which mode is used to operate the sequential file?
How do you define a variable of comp-1 and comp-2?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?