View previous topic :: View next topic
|
Author |
Message |
subinraj
New User
Joined: 04 Sep 2007 Posts: 16 Location: Bangalore
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 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: 16 Location: Bangalore
|
|
|
|
Thanks for the quick response |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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: 16 Location: Bangalore
|
|
|
|
hello,
I wanted was the primary key using both WS-A and WS-B which is not possible as you said. |
|
Back to top |
|
|
|