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
In COBOL, what is the different between index and subscript?
What are the different rules to perform a Search?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
What are the rules of the move verb?
What is redefines clause in COBOL?
how do you reference the rrds file formats from cobol programs
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
What are the pertinent COBOL
how to move the records from file to array table. give with code example
Difference between array and sub-script ?
Give some examples of command terminators?
Which division and paragraphs are mandatory for a COBOL program?
What are various search techniques in cobol? Explain.
Explain about different table spaces.
What are the different open modes available in cobol?