View previous topic :: View next topic
|
Author |
Message |
karthikuma
New User
Joined: 29 Mar 2005 Posts: 62
|
|
|
|
hi,
i'm having flat file of 10000 records in cobol,but i want only 500 to 1000 ,how can i do it.only y using cobol syntax(not by using dfsort),plz any one give me sugestion.
Regards,
kumar |
|
Back to top |
|
|
asr1983
New User
Joined: 31 May 2005 Posts: 11
|
|
|
|
hi kumar,
As you are saying it as a flat file, you must be having a file structure for it.
So, you can skip the first 500 records and then fetch the next 500 records .
Ex : perform para-1 varying x from 1 by 1 until x = 1000
in para-1 you will be dispaying the records.
as the loop will be continuing until x = 1000 , you will get 500 to 1000 records |
|
Back to top |
|
|
jkbytes
Active User
Joined: 19 Feb 2005 Posts: 139 Location: South Africa
|
|
|
|
Hi Karthi,
I agree with asr, but you can still make your job easy if you repro it to a ksds, and then use the key value for dynamic access from 500 to 1000 records. |
|
Back to top |
|
|
|