Using an existing alternate VSAM index in COBOL.
Using an existing alternate VSAM index in COBOL.
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?
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?
-
- Global Moderator
- Posts: 827
- Joined: Wed Sep 11, 2013 3:57 pm
Re: Using an existing alternate VSAM index in COBOL.
see here
http://www.redbooks.ibm.com/abstracts/s ... .html?Open
for the explanation of BASE Cluster, ALTERNATE Index, PATH
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
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
- Robert Sample
- Global Moderator
- Posts: 1896
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Using an existing alternate VSAM index in COBOL.
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.What is the way to view the definition of alternate index of this existing alternate index using CICS?
Re: Using an existing alternate VSAM index in COBOL.
Thanks. I thought it's there somewhere defined in CICS resources.Robert Sample wrote: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.What is the way to view the definition of alternate index of this existing alternate index using CICS?
Re: Using an existing alternate VSAM index in COBOL.
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?
-
- Global Moderator
- Posts: 827
- Joined: Wed Sep 11, 2013 3:57 pm
Re: Using an existing alternate VSAM index in COBOL.
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
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
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
Re: Using an existing alternate VSAM index in COBOL.
May be. I'll just go though them again to confirm.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
-
- Global Moderator
- Posts: 827
- Joined: Wed Sep 11, 2013 3:57 pm
Re: Using an existing alternate VSAM index in COBOL.
may be what ?[font=Tahoma, Arial, Helvetica, sans-serif]May be. I'll just go though them again to confirm.[/font]
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
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
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