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
 

 

How to declare VSAM keys

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: How to declare VSAM keys
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: 2360
Location: Israel

PostPosted: Mon Feb 20, 2006 10:27 am    Post subject:
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    Post subject:
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    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 VSAM Space Allocation mrgnndhmk JCL & VSAM 7 Sat Apr 22, 2017 12:42 am
No new posts PA02 - Programmtically control attent... dodithegreat IMS DB/DC 1 Thu Apr 06, 2017 8:33 pm
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts VSAM RLS=NRI while doing IDCAMS sheersh JCL & VSAM 1 Tue Mar 07, 2017 1:55 pm


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