| Author |
Message |
subinraj
New User
Joined: 04 Sep 2007 Posts: 3 Location: Trivandrum
|
|
|
|
Hi,
I have a file with the following layout.
01 File.
05 WS-A PIC X(05).
05 FILLER PIC X(25).
05 WS-B PIC X(10).
Is it possible to define a VSAM KSDS cluster using WS-A and WS-B as the keys. If yes please give me the syntax.
Thanks in advance, |
|
| Back to top |
|
 |
References
|
Posted: Thu Mar 27, 2008 7:52 pm Post subject: Re: How to create VSAM file with multiple keys |
 |
|
|
 |
enrico-sorichetti
Global Moderator
Joined: 14 Mar 2007 Posts: 1847 Location: italy
|
|
|
|
No!
for a vsam KSDS or AIX the key must be a contiguous number of chars
read the manual
( link at top of the page, scroll down, the manual is VSAM services ) |
|
| Back to top |
|
 |
subinraj
New User
Joined: 04 Sep 2007 Posts: 3 Location: Trivandrum
|
|
|
|
| Thanks for the quick response |
|
| Back to top |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 6039 Location: 221 B Baker St
|
|
|
|
Hello,
Do you want one key of both field a and field b or do you want a primary key of field a and an alternate key of field b?
As Enrico said, you cannot do the first.
If you wanted 2 keys with one field each, you could do that. . . |
|
| Back to top |
|
 |
subinraj
New User
Joined: 04 Sep 2007 Posts: 3 Location: Trivandrum
|
|
|
|
hello,
I wanted was the primary key using both WS-A and WS-B which is not possible as you said. |
|
| Back to top |
|
 |
|
|