nadh Intermediate
Joined: 08 Oct 2004 Posts: 192 Topics: 89
|
Posted: Thu May 26, 2005 6:56 am Post subject: fetching last 3 records from file |
|
|
HI,
1. I have a file of some 100000 records, from that file i need to get last 3 records. it is a sequential file. Pls. help me out. I have one solution with me. i will declare a table array of size 3 and keep reading the file until eof.
finally the last three records will be in the array. but i think there is a performance problem. Could anyone suggest me a better solution.
2.I have 4 records in my sysin in jcl. how to get that records in the cobol program.
3. what is checkpoint restart logic and how to implement in cobol db2 pgm.
pls. suggest me the solution
thanks in advance
nadh |
|