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 are INPUT PROCEDURE and OUTPUT PROCEDURE?
Name some of the examples of COBOl 11?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
What do you understand by psb and acb?
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?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
What is the usage of comp fields in cobol?
How arrays can be defined in COBOL?
What is the compute verb? How is it used?
What is the difference between goback, stop run and exit program in cobol?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
What is the use of intialize verb?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What is amode(31)