IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Starting Vsam without a Complete Key.


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nagaraj_bez

New User


Joined: 09 Jun 2005
Posts: 10

PostPosted: Fri Apr 18, 2008 10:58 am
Reply with quote

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
View user's profile Send private message
vasanthkumarhb

Active User


Joined: 06 Sep 2007
Posts: 275
Location: Bang,iflex

PostPosted: Fri Apr 18, 2008 11:17 am
Reply with quote

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
View user's profile Send private message
nagaraj_bez

New User


Joined: 09 Jun 2005
Posts: 10

PostPosted: Fri Apr 18, 2008 11:26 am
Reply with quote

thanks vasanth, will try what u suggested.
Back to top
View user's profile Send private message
nagaraj_bez

New User


Joined: 09 Jun 2005
Posts: 10

PostPosted: Sat Apr 19, 2008 11:40 pm
Reply with quote

Thank u Vasanth, ur suggestion worked icon_smile.gif
Back to top
View user's profile Send private message
vasanthkumarhb

Active User


Joined: 06 Sep 2007
Posts: 275
Location: Bang,iflex

PostPosted: Mon Apr 21, 2008 8:57 am
Reply with quote

Hi,



thnk you to inform that it is worked for you........ icon_biggrin.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts CVDA value for RRDS VSAM dataset. CICS 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
No new posts Open VSAM File in IMS DC Region - DFS... IMS DB/DC 0
Search our Forums:

Back to Top