IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Alternate index


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
krbabu

New User


Joined: 20 Feb 2004
Posts: 57

PostPosted: Mon Apr 19, 2004 9:59 am
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
bluebird

Active User


Joined: 03 Feb 2004
Posts: 127

PostPosted: Mon Apr 19, 2004 3:51 pm
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

New User


Joined: 20 Feb 2004
Posts: 57

PostPosted: Mon Apr 19, 2004 4:32 pm
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

Active User


Joined: 03 Feb 2004
Posts: 127

PostPosted: Mon Apr 19, 2004 5:19 pm
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

New User


Joined: 07 Jun 2004
Posts: 5
Location: hyderabad

PostPosted: Tue Jun 08, 2004 5:23 pm
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

Active User


Joined: 03 Feb 2004
Posts: 127

PostPosted: Wed Jun 09, 2004 4:17 pm
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Cobol file using index COBOL Programming 2
No new posts DL/I status code AK for GU call using... IMS DB/DC 1
No new posts Add column to existing records using ... JCL & VSAM 2
No new posts choice of clustering index DB2 3
No new posts Secondary index error while loading d... IMS DB/DC 2
Search our Forums:

Back to Top