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

) What is the use of IGNORE?

1 Answers   IBM,


Why occurs cannot be used in 01 level in COBOL?

0 Answers   Arigo Infotech,


Hi All, how is sign is stored in S9(17) comp-3 variable. Answer with an Example will be of great help.

5 Answers   EDS,


How do we get current date from system with century?

2 Answers  


input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?

0 Answers  






Can JUSTIFIED be used for all the data types?

3 Answers  


What is the output generated by the following code? 01 GRP-I. 05 SUBFLD1 PIC XX VALUE "AB". 05 FILTER PIC X(6) VALUE SPACES. 01 GRP-2 REDEFINED GRP-1. 05 SUB-FLD2 PIC XX. 05 SUB-FLD3 PIC XX. 05 FILTER PIC X(4). IF SUB-FLD1 NOT = SPACES DISPLAY "SUBFLD1" MOVE "ABBCCD" TO GRP-1 IF SUB-FLD3 = SPACES DISPLAY "SPACES" ELSE DISPLAY "SUBFLD3" DISPLAY "END" ELSE DISPLAY "SPACES" DISPLAY "END". (a) SUBFLD1 SUBFLD3 END (b) SPACES END (c) SUBFLD1 END (d) SUBFLD1 SPACES

7 Answers   TCS,


what is a zoned decimal data type and how it will be stored?

2 Answers   IBM,


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

0 Answers  


What are ISOLATION LEVELS? Where do we need to specify them?

3 Answers   EXL,


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

4 Answers   EDS,


if a dataset is already created with fixed length but after that i want to change fixed length to variable length then how is it possible

3 Answers   IBM,


Categories