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
What is link edit in cobol?
What is the difference between external and global variables in COBOL?
What is redefines clause in COBOL?
Name the divisions, which are available in a cobol program?
When is inspect verb is used in cobol?
What is inspect in cobol ?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
What is a SSRANGE and NOSSRANGE?
What is the utilization of copybook in cobol?
How to remove 2 duplicate records and copy only one using job control language?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com