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
 

 

reading with alternate key

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
anandss6

New User


Joined: 12 Dec 2005
Posts: 7
Location: trivandrum

PostPosted: Wed Feb 20, 2008 11:09 am    Post subject: reading with alternate key
Reply with quote

Hi,

I am trying to read ksds file with alternate key which is part of primary key. I have given cluster dataset in select statment and cluster and path in JCL. I passed some value to alternate key and tried to read with start key . but its giving error like record not found( even though record is availble). But its working fine when i am trying in sequential mode. could you please help somebody on this.
Back to top
View user's profile Send private message

CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Wed Feb 20, 2008 3:52 pm    Post subject:
Reply with quote

COBOL?
Probably something wrong with the select or FD or the DD, that's my guess....
Back to top
View user's profile Send private message
shawnack

New User


Joined: 28 Jun 2007
Posts: 4
Location: India

PostPosted: Thu Jun 05, 2008 1:31 pm    Post subject: Reply to: reading with alternate key
Reply with quote

This is a very weird situation...even I'm facing the same problem...the problem is that if the AIX is a part of the primary key and one issues a search on that AIX...it does retrieve the correct data..but it then replaces the primary key value with the value fetched thereby modifying the actual AIX content...hence the "record not found" message..I'm sure there's a way out....
Back to top
View user's profile Send private message
shawnack

New User


Joined: 28 Jun 2007
Posts: 4
Location: India

PostPosted: Fri Jun 06, 2008 6:20 pm    Post subject:
Reply with quote

please disregard my previous post....
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Reading data from PS file and send it... rajatbagga All Other Mainframe Topics 18 Fri Sep 23, 2016 12:51 pm
No new posts Reading selected volumes of a multi-v... RickBig JCL & VSAM 6 Wed Jul 13, 2016 7:26 pm
No new posts Several errors during building altern... Andi1982 JCL & VSAM 11 Wed Jul 06, 2016 7:39 pm
No new posts Drop building Alternate Index for a p... bhavin.mehta JCL & VSAM 6 Mon Jul 04, 2016 3:47 pm
No new posts VSAM Alternate Index in CICS jacobdng CICS 2 Fri May 06, 2016 1:41 pm


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