Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Alternate index

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    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

bluebird

Active User


Joined: 03 Feb 2004
Posts: 127

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

New 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

Active User


Joined: 03 Feb 2004
Posts: 127

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

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

Active User


Joined: 03 Feb 2004
Posts: 127

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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Confusion b/w index and subscript Deepak kumar25 Mainframe Interview Questions 7 Thu Aug 31, 2017 6:50 am
No new posts SQL - select data available in index Nileshkul DB2 3 Mon Jun 26, 2017 1:30 am
No new posts setting new limit Key values for inde... srilata83 DB2 1 Fri Feb 10, 2017 9:24 pm
No new posts Order BY AND Index Nileshkul DB2 2 Sat Dec 31, 2016 6:33 pm
No new posts Several errors during building altern... Andi1982 JCL & VSAM 11 Wed Jul 06, 2016 7:39 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us