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

How to map the alternative index in JCL


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

New User


Joined: 10 Dec 2007
Posts: 2
Location: Bangalore

PostPosted: Tue Dec 11, 2007 4:59 pm
Reply with quote

Hi..
how do you map the alternate index in JCL?
Back to top
View user's profile Send private message
ousep143

New User


Joined: 06 Oct 2007
Posts: 32
Location: India

PostPosted: Tue Dec 11, 2007 5:55 pm
Reply with quote

Hi Raghu,

Try this one.I think it is helpful for you.

//SYSIN DD *
PATHMAP BASENAME='CLUSTER NAME',
PATHNAME='PATH NAME'
PATHKEYS='ALTERNATIVE KEY'
/*

Regards
icon_biggrin.gif





raghu cn wrote:
Hi..
how do you map the alternate index in JCL?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Dec 11, 2007 6:06 pm
Reply with quote

Quote:
//SYSIN DD *
PATHMAP BASENAME='CLUSTER NAME',
PATHNAME='PATH NAME'
PATHKEYS='ALTERNATIVE KEY'
/*


To what utility do those control statement refer ???
Not certainly to IDCAMS

When giving suggestions make sure You understand the environment
of the O/P, and try to imagine ( when a question is badly posed )
what the O/P reallly means...

in this case ( MVS environment ) the O/P almost certainly refers to an
ALTERNATE INDEX hierarchy for VSAM CLUSTERS...

The overall structure in such case is :

BASE CLUSTER
- the original dataset

ALTERNATE INDEX
- an index built on the base cluster, there can be as many as needed

Note: an alternate index is just a cluster itself, and can be processed
on it' s own without accessing the base cluster,
the data read might, and usually does, not have any meaning

PATH
- the entity that relates the alternate index and the base cluster
( the PATH_NAME can be the dsname of a DD statement )

Given a reasonably written program the same can read sequentially
both a bsase cluster and a path by simply changing
the dsname on the dd statement,
and the output will be ordered according to the primary or the
alternate key
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