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

How to declare VSAM keys


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
dipanshu

New User


Joined: 16 Jan 2006
Posts: 53
Location: pune

PostPosted: Mon Feb 20, 2006 9:46 am
Reply with quote

Hi,


INPUT-OUTPUT SECTION.
FILE-CONTROL.
SELECT PPIMSTR
ASSIGN PPIMSTR
ORGANIZATION IS INDEXED
RECORD KEY IS M-ENO
ACCESS MODE IS SEQUENTIAL
STATUS X01-PPIMSTR-STATUS.

In the above code I given record key as ENO,
Confusion: If the vsam having two keys say EID and ENO then how to declare?

Thanks
Dipanshu
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Mon Feb 20, 2006 10:27 am
Reply with quote

As far as I know, you can have only one Prime Index in a KSDS file, and one Alternate Index.

The RECORD KEY clause specify only the Prime Index.

O.
Back to top
View user's profile Send private message
sbalajibe

New User


Joined: 15 Aug 2005
Posts: 62

PostPosted: Tue Feb 21, 2006 12:36 pm
Reply with quote

hi ofer71,

u can have 255 alternate index for a vsam file....

and the key is represented with ALTERNATE KEY IS caluse...


thanks
Balaji
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 -> COBOL Programming

 


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