View previous topic :: View next topic
|
Author |
Message |
nagaraj_bez
New User
Joined: 09 Jun 2005 Posts: 10
|
|
|
|
Hi,
We have 18 initial bytes of a vsam key out of the total 31 bytes.
Now, we are trying to start the vsam file dynamically by first populating the whole key with low-values and then moving the available 18 bytes to the key. and then we gave a readnext.
But we could see that the file status is 23 after starting with 'equal to' clause. so, we are not able to point to the correct record even though we have records matching the partial key in the VSAM file.
can anyone please help on finding what could be the correct approach? |
|
Back to top |
|
|
vasanthkumarhb
Active User
Joined: 06 Sep 2007 Posts: 275 Location: Bang,iflex
|
|
|
|
Hi,
Is the 18 bytes is owned by one variable or is shared by elementary items.
if the key value is shared b/w elementary variables you can code as
Code: |
START VSAM-FILE KEY >= MATCHING-KEY
END-START. |
where kEY is a partial key field of the group key field. |
|
Back to top |
|
|
nagaraj_bez
New User
Joined: 09 Jun 2005 Posts: 10
|
|
|
|
thanks vasanth, will try what u suggested. |
|
Back to top |
|
|
nagaraj_bez
New User
Joined: 09 Jun 2005 Posts: 10
|
|
|
|
Thank u Vasanth, ur suggestion worked |
|
Back to top |
|
|
vasanthkumarhb
Active User
Joined: 06 Sep 2007 Posts: 275 Location: Bang,iflex
|
|
|
|
Hi,
thnk you to inform that it is worked for you........ |
|
Back to top |
|
|
|