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

Query regarding accessing VSAM file with multiple fields


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
bipinpeter

Active User


Joined: 18 Jun 2007
Posts: 213
Location: Cochin/Kerala/India

PostPosted: Thu Nov 11, 2010 9:13 am
Reply with quote

Hi All,

My scenario as below, I have a file with below layout

Account Number X(15)
Country Code X(03)
First Name X(10)
Middle Name X(10)
Last Name X(10)
DOB X(10),

In the above layout combination of Account Number,First Name , and DOB are the key field. I want to create the VSAM file with above layout and have to use in program to access the records using above key fields.

Anyone help me how i can define the key fields. I think we can create primary key using consecutive fields only.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Nov 11, 2010 10:06 am
Reply with quote

Hello,

Quote:
I think we can create primary key using consecutive fields only.
Yes.

Change the layout for the vsam file.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top