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 / sharmila
HI, please correct me if m wrong..
as we cannot place a condition for 88 level number. Both ii and iii are wrong. hence the correct option should be (b) right?
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
Name some of the examples of COBOl 11?
Write down the divisions of cobol program?
What is length is cobol?
HOw can I get the negative sign while deduct high value from low value
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
how do you reference the variable block file formats from cobol programs
What is inspect in cobol ?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
A table has two indexes defined. Which one will be used by the SEARCH?
What is rmode(any) ?
How you can characterize tables in cobol?
What is the Purpose of POINTER Phrase in STRING command in COBOL?