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


Please Help Members By Posting Answers For Below Questions

What is the difference between comp and comp-3?

694


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

706


In which area will you utilize 88 level items in cobol?

716


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

1927


In COBOL programming, what is PERFORM? What is VARYING?

668






Name the sections present in data division.

697


what is the difference between COBOL2 AND COBOL390?

2449


What is the usage of comp fields in cobol?

653


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

680


Difference between cobol and cobol-ii?

704


What is the difference between comp and comp-3 usage?

674


i need a small 3d program using inline and outline.

1629


HOw can I get the negative sign while deduct high value from low value

1784


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.

1697


Explain how you can characterize tables in cobol?

636