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

how can we use 2 keys while using in VSAM?


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
babun

New User


Joined: 03 Aug 2005
Posts: 9
Location: bangalore

PostPosted: Thu Dec 15, 2005 10:12 pm
Reply with quote

Hi folks
i have the req of using 2 keys in ksds(VSAM),,so we can use the one key like keys(7,14),,but can we use combination of keys? if we can can u pls answer & send it to me asap pls..
babu
Back to top
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Thu Dec 15, 2005 10:34 pm
Reply with quote

I'm almost sure that is for this reason that the alternate index exists.
Try to create an alternate index.
The AMS command to define and alternate index are:
Code:
DEFINE AIX (NAME(myVsam.AIX)   -
       RELATE(myFirstVsam))    -
       DATA (...)              -
       INDEX (...)     
DEFINE PATH (NAME(myVsam.PATH) -
       PENT(myVsam.AIX))
BLDINDEX                       -
       INDATASET(myFirstVsam)  -
       OUTDATASET(myVsam.AIX)


To have more information about VSAM try to visit this link:
http://www.jaymoseley.com/hercules/vstutor/vstutor.htm

I hope in this suggest.
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 -> DFSORT/ICETOOL

 


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 Use input file with OMIT rcd keys? DFSORT/ICETOOL 15
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
Search our Forums:

Back to Top