Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Where to get sample for processing RM... vice_versa PL/I & Assembler 2 Tue Jan 16, 2018 2:03 pm
No new posts VSAM dataset not found abdulrafi JCL & VSAM 5 Fri Jan 12, 2018 11:19 am
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts Compare VSAM files using DFSORT pshongal DFSORT/ICETOOL 5 Thu Nov 23, 2017 10:24 am
No new posts How to get complete URL from CICS Con... mbattu CICS 1 Tue Nov 14, 2017 11:59 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us