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

Alternate Index of a ESDS file


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

New User


Joined: 27 Sep 2010
Posts: 21
Location: Boudh

PostPosted: Mon Feb 04, 2013 11:13 am
Reply with quote

We can create an Alternate Index of a ESDS file.
But for creating an Alternate Index we require a Primary key and an Alternate key.

But ESDS file does not have a Key.

Please guide me I am lost..
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Mon Feb 04, 2013 12:08 pm
Reply with quote

The AIX key is just a field in the ESDS base cluster and has nothing to do
if the base is keyed.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon Feb 04, 2013 12:48 pm
Reply with quote

Create a small KSDS. Create a small ESDS. Same size records on both, same data in both. Build an Alternate Index on each. "PRINT" the Alternate Indexes and look at the output. Reflect upon what you notice.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Feb 04, 2013 1:22 pm
Reply with quote

see here for my TESTED snippets which show how and what
www.ibmmainframes.com/viewtopic.php?t=29269&highlight=esds+aix+path
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon Feb 04, 2013 2:46 pm
Reply with quote

Well, enrico, that's comprehensive :-)

subdalal,

Just make sure you go through it all and understand it. If you don't understand, ask.
Back to top
View user's profile Send private message
subdalal

New User


Joined: 27 Sep 2010
Posts: 21
Location: Boudh

PostPosted: Tue Feb 05, 2013 1:06 pm
Reply with quote

Thanks..@Bill, @Enrico, @Peter. I got it.
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 FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top