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 / santhosh
please be in attention.Read the code thoroughly for syntax
errors.Here in this code he is performing a paragraph which
is not defined (i,e.)he is performing pri-out paragraph &
defined pre-out paragraph.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What guidelines should be followed to write a structured cobol prgm?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
how do you reference the ksds vsam file formats from cobol programs
What is rmode(any) ?
Explain the configuration section of a cobol program with examples of syntax.
State the various causes of s0c1, s0c5 and s0c7.
Name some of the examples of COBOl 11?
how to convert the recors form vsam file to db2 table tru file aid
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
What is static and dynamic call in cobol?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
A table has two indexes defined. Which one will be used by the SEARCH?
Which is not true about evaluate statement
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
What are all the divisions of a COBOL program?