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
Explain what you understand by passing by value.
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
What is static and dynamic call in cobol?
What is the difference between goback, stop run and exit program in cobol?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
Write down the divisions of cobol program?
What is the difference between Call and a Link?
What is report-item in COBOL?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
Are you comfortable in cobol or jcl?
What is the use of intialize verb?
how to move the records from file to array table. give with code example
What are the different rules to perform a Search?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
What is the usage of comp fields in cobol?