Study the DATA DIVISION entries and the three PROCEDURE
DIVISION entries
given below:
01 END-OF-FILE-SWITCH PIC XXX.
88 NO-MORE-RECS VALUE "YES".
88 MORE-RECS VALUE "NO".
(i) READ SAMPLE-FILE AT END MOVE "YES" TO NO-MORE-RECS.
(ii) IF NO-MORE-RECS = "YES" GO TO LAST-PARA.
(iii) IF NO-MORE-RECS GO TO LAST-PARA.
Which are wrong?
(a) (i) and (ii)
(b) (ii) and (iii)
(c) (i) and (iii)
(d) all
Answer Posted / nilesh
we cant put a check on 88 level record, as it reopresents a
value and not a variable. So option II is ceratainly not
right. I the answer should be a.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Which Search verb is equivalent to PERFORM…VARYING?
) How do u handle errors in BMS macro
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
What is Pic 9v99 Indicates in COBOL?
Can a Search can be done on a table with or without Index?
How you can characterize tables in cobol?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
how do you reference the printer file formats from cobol programs
What is the difference between perform … with test after and perform … with test before?
how can i see junk values in dclgen or in hostvariable of comp ?
What are the access modes of START statement?
i want a program using by if, evaluate , string, unstring, perform, occurs?
When is inspect verb is used in cobol?
What is an in line perform? When would you use it? Anything else you wish to say about it.