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
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
How is sign stored in a comp-3 field?
how to run sub programs using static and dynamic call ...
What does EXIT do ?
What is the size of s9(19)comp3? explain
What is amode(24)?
Hi All, how is sign is stored in S9(17) comp-3 variable. Answer with an Example will be of great help.
can we use COPY statement in w-s section? how?
What happens in the background of spool when we submit a job for compilation and execution... This is a recent question in ibm...Kindly help me.....
Which of the following paragraphs is compulsory in every COBOL program? (a) SPECIAL-NAMES (b) PROGRAM-ID (c) FILE-CONTROL (d) OBJECT-COMPUTER
give the examples of strings in cobol
What is the difference between Global and External Variables?
What is the maximum length of a field you can define using COMP-3 in COBOL?