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 / islam
the correct answer is : c (i.e. 1)
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is an in line perform? When would you use it? Anything else you wish to say about it.
Are you comfortable in cobol or jcl?
What is the difference between structured cobol programming and object alternativelyiented cobol?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
Name some of the examples of COBOl 11?
How do we get current date from system with century in COBOL?
Define cobol?
What is difference between static and dynamic call in cobol?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
How many bytes S(8) comp field occupy and its maximum value?
what is amode(24), amode(31), rmode(24) and rmode(any)?
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.
How do you reference the following file formats from cobol programs?
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly