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


Please Help Members By Posting Answers For Below Questions

How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2728


What is difference between static and dynamic call in cobol?

772


Which Search verb is equivalent to PERFORM…VARYING?

680


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1019


What is the local-storage section?

681






Write a program to explain size error.

669


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8156


How you can read the file from bottom?

658


How to use the same COBOL program in Batch and CICS on lines? explain with an example

1912


what is the use of outrecord?

1768


What rules are to be followed while using the corresponding options?

632


What is a scope terminator give example?

652


What are the different rules of SORT operation?

691


What is the use of intialize verb?

742


What is the difference between Call and a Link?

694