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 you can read the file from bottom?
How can you get the ksds file records into your cobol program?
What guidelines should be followed to write a structured cobol prgm?
Can we change the password using ALTER? anyone tried and changed?
For rewrite, why is it mandatory that file needs to be opened?
Why occurs cannot be used in 01 level in COBOL?
i need a small 3d program using inline and outline.
How do you reference the following file formats from cobol programs?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
Which is not true about evaluate statement
What is the difference between next sentence and continue in cobol programing language?
How do you differentiate between cobol and cobol-ii?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
What is the problem of ordered sequential files access?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?