View previous topic :: View next topic |
Author |
Message |
Arian Beginner

Joined: 24 Sep 2004 Posts: 10 Topics: 3
|
Posted: Tue Sep 28, 2004 9:37 am Post subject: Read VSAM file using partial Key - Batch |
|
|
Hi,
I have a batch program that reads a VSAM file.
The key lenght is 10 bytes. But I dnt know the first 5 bytes of the key. I know the last 5 bytes of the key.
Can i read the VSAM file with this information.
I dnt want to do a sequential read. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Tue Sep 28, 2004 11:53 am Post subject: |
|
|
Arian,
Populate the first 5 bytes of the key with low-values and read the vsam file until your key is GE than the look up key
Hope this helps...
Cheers
kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
Arian Beginner

Joined: 24 Sep 2004 Posts: 10 Topics: 3
|
Posted: Tue Sep 28, 2004 1:39 pm Post subject: |
|
|
Kolusu, this would mean start from the begining ?
Its sequential read ! |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
|
|