Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Starting Vsam without a Complete Key.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Starting Vsam without a Complete Key.
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: 276
Location: Bang,iflex

PostPosted: Fri Apr 18, 2008 11:17 am    Post subject:
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    Post subject:
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    Post subject:
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: 276
Location: Bang,iflex

PostPosted: Mon Apr 21, 2008 8:57 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts VSAM RLS=NRI while doing IDCAMS sheersh JCL & VSAM 1 Tue Mar 07, 2017 1:55 pm
No new posts Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 4 Wed Jan 11, 2017 6:18 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us