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 is the difference between comp and comp-3?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
In which area will you utilize 88 level items in cobol?
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
In COBOL programming, what is PERFORM? What is VARYING?
Name the sections present in data division.
what is the difference between COBOL2 AND COBOL390?
What is the usage of comp fields in cobol?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
Difference between cobol and cobol-ii?
What is the difference between comp and comp-3 usage?
i need a small 3d program using inline and outline.
HOw can I get the negative sign while deduct high value from low value
Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.
Explain how you can characterize tables in cobol?