I had 100 records and i want to execute last three records by
using cobol programming?what will be coding?

Answer Posted / sandip

In cobol apply counter while reading file if counter reach at 97 start writing record to another file.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

) what is the difference between AID and HANDLE AID?

1641


how can i see junk values in dclgen or in hostvariable of comp ?

2550


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

862


What the difference is between continue and next sentence?

667


how do you reference the variable unblock file formats from cobol programs

757






)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1528


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

2345


What rules are followed by the search verb.

642


What is report-item in COBOL?

714


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

638


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

5701


Explain about different table spaces.

654


What is the difference between PIC 9.99 and PIC9v99?

787


How to remove 2 duplicate records and copy only one using job control language?

760


How do we get current date from system with century in COBOL?

811