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

Reading KSDS with Date field as one of the Key field


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rajithmuthan

New User


Joined: 04 Jun 2007
Posts: 2
Location: USA

PostPosted: Tue Jul 28, 2009 2:20 am
Reply with quote

Hi,
I have a KSDS key as below
Branch
Dealer
effective date

The records in the VSAM file can have effective date as future date. On that date I need to read the record with the new effective date and all other previous dates I need to read the old record. I know I can do it thru Generic and read next. But is there any other efficient way of doing it?


Rajith Bellimuthan
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Jul 28, 2009 3:15 am
Reply with quote

Build an alternate index on effective date.

Reading the key generic means, by the way, that you have to specify at least part of the branch to do the read -- generic key reads go from left to right. If your key is branch, dealer, effective date then you cannot read all keys that have a given effective date with a generic read.
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 -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
Search our Forums:

Back to Top