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 |
What is the difference between a binary search and a sequential search?
in cobol perform stmt whether it first checks the condition or not
Under which scenario you would go for a static call as opposed to dynamic call?
what is the advantage of sync class
How can i write a comp-3 variable into a sequential file should i declara the field in the file description as comp- 3?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
What was removed from COBOL in the COBOL II implementation?
Name the divisions in a COBOL program ?
soc-7 is a bad data,invalid data. when ever we are moving the alphabets in the position of numeric then we got this abend. so my question is if o1 ws-data pic 9(1) value passing the alphabet some x. then we got soc-7 or not? i want clarification ?
Whats the use of Examine command? can someone help me?
What is the difference between binary search and sequential search?
Explain the difference between an internal and an external sort, the pros and cons, internal sort syntax etc.