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
What is the difference between goback, stop run and exit program in cobol?
i want a program using by if, evaluate , string, unstring, perform, occurs?
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?
How many bytes S(8) comp field occupy and its maximum value?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
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.
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
What is Pic 9v99 Indicates in COBOL?
Are you comfortable in cobol or jcl?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
What is the difference between external and global variables in COBOL?
Which division and paragraphs are mandatory for a COBOL program?
Write the code implementing the perform … varying.
How do u write test cases?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?