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
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
i have a file which contains records like 10,30,90,50,20,40,80,60,70 i want to display these records in reverse order like 70,60,80,40,20,50,90,30,10 please give me the cobol code (do not sort the records)
3 Answers Cap Gemini, Mind Tree,
Can we change the password using ALTER? anyone tried and changed?
db2 variable decimal(15,2) what is the equalent size of cobol variable
Difference between array and sub-script ?
When is a scope terminator mandatory?
what is redefines? where it can be effectively use for the purpose of memory utilization? give an example?
What is the Importance of GLOBAL clause According to new standards of COBOL?
How to use the same cobol program in Batch and CICS onlines ? Please expalin with an example. Thanks in advance.
wht r the advantages of 77 level number ?
How do we get current date from system with century in COBOL?
) What is the use of IGNORE?
Hi Guys, I have faced one interview question if I have requirement to add 5 new columns to existing table what are prerequisite do i need to take.