Using an existing alternate VSAM index in COBOL.

Customer Information Control System. Middleware and MQ Series.
Post Reply
Anup Apte
Registered Member
Posts: 22
Joined: Mon Aug 12, 2013 11:39 am

Using an existing alternate VSAM index in COBOL.

Post by Anup Apte »

Hi,

We have a KSDS VSAM dataset. This is an existing dataset and had been in use for many years. I need to write a new program in which I want to use this file and the alternate index that is defined for this file. What is the way to view the definition of alternate index of this existing alternate index using CICS?
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 825
Joined: Wed Sep 11, 2013 3:57 pm

Re: Using an existing alternate VSAM index in COBOL.

Post by enrico-sorichetti »

see here
http://www.redbooks.ibm.com/abstracts/s ... .html?Open

for the explanation of BASE Cluster, ALTERNATE Index, PATH
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1886
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Using an existing alternate VSAM index in COBOL.

Post by Robert Sample »

What is the way to view the definition of alternate index of this existing alternate index using CICS?
You don't -- you use IDCAMS LISTCAT in a batch job to see the definition, just as you don't see the definition of the base cluster in CICS but rather in batch.
Anup Apte
Registered Member
Posts: 22
Joined: Mon Aug 12, 2013 11:39 am

Re: Using an existing alternate VSAM index in COBOL.

Post by Anup Apte »

Robert Sample wrote:
What is the way to view the definition of alternate index of this existing alternate index using CICS?
You don't -- you use IDCAMS LISTCAT in a batch job to see the definition, just as you don't see the definition of the base cluster in CICS but rather in batch.
Thanks. I thought it's there somewhere defined in CICS resources.
Anup Apte
Registered Member
Posts: 22
Joined: Mon Aug 12, 2013 11:39 am

Re: Using an existing alternate VSAM index in COBOL.

Post by Anup Apte »

Doing some more research on this topic, I came to know that if we create a RDO definition and point it at the AIX, then we can access the file as if it were the base cluster throgh this definition. Is it the usual way of daoing this or it's just a user preference?
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 825
Joined: Wed Sep 11, 2013 3:57 pm

Re: Using an existing alternate VSAM index in COBOL.

Post by enrico-sorichetti »

Looks like you are confusing AIX with PATH

if the ddname/definition points to the AIX then You will get the AIX data ( keys/pointers to the bas cluster )
if the ddname/definition points to the PATH then You will get the base cluster data

read again - if You ever did - the redbook I pointed to in order to understand the differences
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
Anup Apte
Registered Member
Posts: 22
Joined: Mon Aug 12, 2013 11:39 am

Re: Using an existing alternate VSAM index in COBOL.

Post by Anup Apte »

enrico-sorichetti wrote:Looks like you are confusing AIX with PATH

if the ddname/definition points to the AIX then You will get the  AIX  data ( keys/pointers to the bas cluster )
if the ddname/definition points to the PATH then You will get the base cluster data

read again - if You ever did - the redbook I pointed to in order to understand the differences
May be. I'll just go though them again to confirm.
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 825
Joined: Wed Sep 11, 2013 3:57 pm

Re: Using an existing alternate VSAM index in COBOL.

Post by enrico-sorichetti »

[font=Tahoma, Arial, Helvetica, sans-serif]May be. I'll just go though them again to confirm.[/font]
may be what ?   :twisted:
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “CICS, Middleware and MQ Series.”