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

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Interview Q & A
View previous topic :: View next topic  
Author Message
veeru_ch
Beginner


Joined: 11 Dec 2003
Posts: 4
Topics: 2

PostPosted: Mon Apr 23, 2007 3:55 am    Post subject: Alternate Index Reply with quote

Hi,
I have 2 to 3 alternate indexes in my vsam file. Please help me how to code in JCL as well as in COBOl. If possible please provide a piece of code.

Thanks in Advance
Veer.
Back to top
View user's profile Send private message
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Mon Apr 23, 2007 4:32 am    Post subject: Reply with quote

If you have an AIX, then define a PATH which connects the AIX to the base cluster. In the JCL, you have specify the name of the path on the DD statement instead of the name of the cluster.

e.g.
Code:
//FILE1 DD DSN=pathname,DISP=SHR


Go thru the below URL.
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/dgt1v403/3.11.2.1?SHELF=&DT=19990113080956&CASE=

Before accessing a KSDS or ESDS through an alternate index, a path must be defined. A path is the mean by which a base cluster is accessed through its alternate indices. A path is defined and named using the AMS DEFINE PATH command. At least one path must be defined for each of the alternate indices through which the base cluster is to be accessed. The path name refers to the base cluster and alternate index pair. When a program opens a path for processing, both the base cluster and the alternate index are opened. A base cluster plus all its AIXs is called a sphere.
Back to top
View user's profile Send private message Send e-mail
veeru_ch
Beginner


Joined: 11 Dec 2003
Posts: 4
Topics: 2

PostPosted: Mon Apr 23, 2007 6:21 am    Post subject: Reply with quote

Phani,
Thanks for the information. Can you please let me know what are the necessary statements need to declare in the cobol program.

Thanks
Veer.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 11834
Topics: 74
Location: San Jose

PostPosted: Mon Apr 23, 2007 7:07 am    Post subject: Reply with quote

Quote:

Can you please let me know what are the necessary statements need to declare in the cobol program.


veeru_ch,

1. click on "Quick Manuals" link on top of this pae
2. Select "Enterprise COBOL Programming Guide" which is the first link on that link
3. Read chapters 1.10

Kolusu
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Interview Q & A 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