Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Alternate index

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
krbabu

Active User


Joined: 20 Feb 2004
Posts: 57

PostPosted: Mon Apr 19, 2004 9:59 am    Post subject: Alternate index
Reply with quote

Hi,
I am declaring the alternate index in COBOl prog as
SELECT F1 ASSIGN TO ddname
ORGANIZATION IS INDEXED
RECORD KEY IS emp-no
ALTERNATE RECORD KEY IS emp-name.

my doubt is which dataset is used in JCL coorresponding ddname?Is it base cluster or alternate intex?
Back to top
View user's profile Send private message
References
PostPosted: Mon Apr 19, 2004 9:59 am    Post subject: Re: Alternate index Reply with quote

bluebird

Specialist


Joined: 03 Feb 2004
Posts: 144

PostPosted: Mon Apr 19, 2004 3:51 pm    Post subject:
Reply with quote

if u use this pgm you'll have to code DDNAME on DDNAME statement itz should then be alternate index
Back to top
View user's profile Send private message
krbabu

Active User


Joined: 20 Feb 2004
Posts: 57

PostPosted: Mon Apr 19, 2004 4:32 pm    Post subject:
Reply with quote

i am checking the both the keys in cobol program. That means if i move the no to record key or else i move name to alter nate key. Depends on the moving statement corresponding cluster have to acccess, How can i code this .
Back to top
View user's profile Send private message
bluebird

Specialist


Joined: 03 Feb 2004
Posts: 144

PostPosted: Mon Apr 19, 2004 5:19 pm    Post subject:
Reply with quote

I think any alternate index change will propagate thru to base-cluster BASED on YOUR VSAM DEFINITION:

is this what u wanted to know ?
Back to top
View user's profile Send private message
sivakanuri
Warnings : 1

New User


Joined: 07 Jun 2004
Posts: 5
Location: hyderabad

PostPosted: Tue Jun 08, 2004 5:23 pm    Post subject: BASE CLUSTER and PATH CLUSTER
Reply with quote

i think the answers given above r not correct .
i think when u specify the alt-index in jcl u should use ths base cluster location and the path cluster location of the alt-index in the jcl.

//go.dd1 dd dsn=(base cluster)
//go.dd2 dd dsn=(path cluster)
Back to top
View user's profile Send private message
bluebird

Specialist


Joined: 03 Feb 2004
Posts: 144

PostPosted: Wed Jun 09, 2004 4:17 pm    Post subject:
Reply with quote

to access base cluster thru alternate index u only need to specify the PATH.

meaning changes will be propagated using the path dsname.
(u don't need to specify the base cluster)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1