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 / vel
a
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
What are the various section in data division and briefly explain them.
What are the different open modes available in cobol?
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
What are the access modes of START statement?
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
Write down the divisions of cobol program?
example for sub strings ? and refernce modifications whit output pls
how do you reference the rrds file formats from cobol programs
Describe the cobol database components?