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
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
How do get the result of your program directly on your pc?
What are the rules of the move verb?
how do you reference the variable unblock file formats from cobol programs
How do you reference the following file formats from cobol programs?
What kind of error is trapped by on size error option?
Why would you use find and get rather than to obtain?
What is rmode(24)
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
Name the sections present in data division.
What is a report item?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.