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 / satyaprem
the programmer need to pay attention to code ...syntax
error ..looks ans 1 but not true ...
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
What is difference between static and dynamic call in cobol?
Which Search verb is equivalent to PERFORM…VARYING?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
What is the local-storage section?
Write a program to explain size error.
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
How you can read the file from bottom?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
what is the use of outrecord?
What rules are to be followed while using the corresponding options?
What is a scope terminator give example?
What are the different rules of SORT operation?
What is the use of intialize verb?
What is the difference between Call and a Link?