MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Alternate index on ESDS VSAM cluster.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Data Management
View previous topic :: View next topic  
Author Message
mf_user
Intermediate


Joined: 01 Jun 2003
Posts: 372
Topics: 105

PostPosted: Tue Jan 31, 2006 10:27 am    Post subject: Alternate index on ESDS VSAM cluster. Reply with quote

Hi,

Is it possible to have an alternate index on a ESDS cluster. One interviewer tells me that it is possible to access records randomly if you have alternate index on an ESDS VSAM cluster. Exclamation Question

Please throw some light on this topic.

Thanks in advance.
_________________
MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12383
Topics: 75
Location: San Jose

PostPosted: Tue Jan 31, 2006 11:04 am    Post subject: Reply with quote

mf_user,

An AIX can only be defined over a key-sequenced(KSDS) or entry-sequenced cluster.(ESDS)

Read this excellent IBM redbook about VSAM .

http://publib-b.boulder.ibm.com/Redbooks.nsf/RedbookAbstracts/SG246105.html

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mf_user
Intermediate


Joined: 01 Jun 2003
Posts: 372
Topics: 105

PostPosted: Wed Feb 01, 2006 9:44 am    Post subject: Reply with quote

The link was very helpful. I got the answer that the alternate index of an ESDS can be used only with CICS-COBOL (online) programs.........
_________________
MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Back to top
View user's profile Send private message Send e-mail
bablack
Beginner


Joined: 04 Dec 2002
Posts: 71
Topics: 0
Location: Little Falls, NJ

PostPosted: Wed Feb 01, 2006 5:01 pm    Post subject: Reply with quote

I don't know where in that manual you got the impression that only a CICS program can use an AIX on an ESDS, not true.

An AIX can be used by any program, in any environment, to access a ESDS randomly (directly) by a key.
_________________
Bruce A. Black
Senior Software Developer
Innovation Data Processing
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mf_user
Intermediate


Joined: 01 Jun 2003
Posts: 372
Topics: 105

PostPosted: Thu Feb 02, 2006 8:16 am    Post subject: Reply with quote

Hi Black,

Can you please provide me a small COBOL batch program where we can access an alternate index of ESDS to randomly process the records.

This will be very useful.

Thanks for your time.
_________________
MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12383
Topics: 75
Location: San Jose

PostPosted: Thu Feb 02, 2006 8:20 am    Post subject: Reply with quote

Quote:

Can you please provide me a small COBOL batch program where we can access an alternate index of ESDS to randomly process the records.

This will be very useful.

Thanks for your time.


Please go thru this link with stress on subtopic 1.10.6.2

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGY3PG10/1.10.6?SHELF=&DT=20020923143836&CASE=

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bablack
Beginner


Joined: 04 Dec 2002
Posts: 71
Topics: 0
Location: Little Falls, NJ

PostPosted: Thu Feb 02, 2006 8:54 am    Post subject: Reply with quote

mf_user wrote:


Can you please provide me a small COBOL batch program where we can access an alternate index of ESDS to randomly process the records.



Sorry, I am not a COBOL programmer, but accessing a ESDS by key through an alternate index is exactly the same as accessing a KSDS by key, as far as the program is concerned.

To access by key, you have to define and build the AIX, and then define a PATH which connects the AIX to the base cluster. In the JCL for the step, you specify the name of the path on the DD statement instead of the name of the cluster, e.g.,
//FILE1 DD DSN=pathname,DISP=SHR

everything else is automatic.
_________________
Bruce A. Black
Senior Software Developer
Innovation Data Processing
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mf_user
Intermediate


Joined: 01 Jun 2003
Posts: 372
Topics: 105

PostPosted: Fri Feb 03, 2006 3:34 am    Post subject: Reply with quote

Ok Mr. Black. I will try to work it out.

Thanks for the quick reply.
_________________
MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Data Management All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group