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
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
What are the different data types in cobol?
how do you define single dimensional array and multidimensional array in your cobol?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
Write a cobol program making use of the redefine clause.
Can a Search can be done on a table with or without Index?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
how to refer the data field?
What is a report item?
What is the difference between goback, stop run and exit program in cobol?
how do you reference the ksds vsam file formats from cobol programs
How arrays can be defined in COBOL?
What is comp-1 and comp-2?
Which division and paragraphs are mandatory for a COBOL program?
Explain how you can characterize tables in cobol?