Page 1 of 1

How to Access Alternate Index ???

PostPosted: Sat Oct 23, 2010 1:35 pm
by gauthamnagpur18
Usually We access the KSDS through following command

Print ids(/) char

Similarly which command is used to access Alternate Index ???

Thanks in Advance .

Re: How to Access Alternate Index ???

PostPosted: Sat Oct 23, 2010 3:39 pm
by NicC
What utility are you using to view the dataset? In an application program one usually accesses vsam files by providing a key.

Re: How to Access Alternate Index ???

PostPosted: Sat Oct 23, 2010 5:13 pm
by enrico-sorichetti
see this topic ( in a different forum - albeit )
http://ibmmainframes.com/about29269.html

which shows how ...
define a base clusted
define an aix / bldindx
define a path

the output shown are
the sysout of the defines/bldindx

the sysout of
(1) print the base cluster
(2)print the aix
(3)print the path

the fact that the base cluster in this case is an ESDS is IRRELEVANT
the overall logic is exactly the same

the (1) is evident
the (2) is irrelevant from an application point of view, but it shows the structure of the aix
the (3) will print the records in the order defined by the alternate index

read, enjoy, meditate :D

Re: How to Access Alternate Index ???

PostPosted: Tue Oct 26, 2010 7:52 am
by gauthamnagpur18
I have used IDCAMS Only . ....When KSDS is created , We cant access it directly .We can either repro to another flat file or we can use print ids(/) char in front of KSDS ...

Similarly , Whether there is any method to access Alternate Index .

Thanks enrico-sorichetti .

Re: How to Access Alternate Index ???

PostPosted: Tue Oct 26, 2010 8:00 am
by dick scherrer
Hello,

When KSDS is created , We cant access it directly .
Why not? The main reason to have a ksds is so that it may be accessed directly. . .

Possibly there is something i misunderstand. . .

Re: How to Access Alternate Index ???

PostPosted: Tue Oct 26, 2010 3:50 pm
by Robert Sample
Did you try the print ids(/) on the PATH name?