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



Study the DATA DIVISION entries and the three PROCEDURE DIVISION entries given below: 01 END..

Answer / vel

a

Is This Answer Correct ?    6 Yes 1 No

Study the DATA DIVISION entries and the three PROCEDURE DIVISION entries given below: 01 END..

Answer / vel

a

Is This Answer Correct ?    2 Yes 1 No

Study the DATA DIVISION entries and the three PROCEDURE DIVISION entries given below: 01 END..

Answer / aneesh kaniyath

Answer is a

Is This Answer Correct ?    1 Yes 0 No

Study the DATA DIVISION entries and the three PROCEDURE DIVISION entries given below: 01 END..

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

Study the DATA DIVISION entries and the three PROCEDURE DIVISION entries given below: 01 END..

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

Post New Answer

More COBOL Interview Questions

How do u write test cases?

0 Answers   IBM,


When and how can we use index & subscript ?

2 Answers  


what is the difference between occurs and occurs depending on? i dont think so there is the difference in storage..then why we should use occurs depending on?

9 Answers   TCS, Tech Mahindra,


In a file if a column account number conatain value 0001234.. how can we move the value to another variable without zero. value may contain any type such as 00123405. we need the value 1234 or 12305. how can we do that in cobol. Please help.

1 Answers   CSC,


what is call by value and call by reference ?

3 Answers   Infosys, ITC Indian Tobacco Company,






In a program, variables are used but no DB2 involved in it. Can you call it as host variables??

4 Answers   EDS,


Explain fixed length record in cobol? with suitable example

1 Answers   IBM,


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

0 Answers  


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.

1 Answers  


what is record label is empty or standard in file description of data division?

2 Answers   HCL,


Which of the following EDITind and PICTURE symbols is to be used if a minus(-) is to appear before the value if the value is -ve and a plus(+) is to appear before the value if the value is +ve? (a) + (b) - (c) + OR (d) It is not possible

7 Answers   TCS,


how will you define vsam file in select clause?

3 Answers   Patni,


Categories