View previous topic :: View next topic |
Author |
Message |
veeru_ch Beginner
Joined: 11 Dec 2003 Posts: 4 Topics: 2
|
Posted: Mon Apr 23, 2007 3:55 am Post subject: Alternate Index |
|
|
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 |
|
|
vkphani Intermediate
Joined: 05 Sep 2003 Posts: 483 Topics: 48
|
Posted: Mon Apr 23, 2007 4:32 am Post subject: |
|
|
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 |
|
|
veeru_ch Beginner
Joined: 11 Dec 2003 Posts: 4 Topics: 2
|
Posted: Mon Apr 23, 2007 6:21 am Post subject: |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12367 Topics: 75 Location: San Jose
|
Posted: Mon Apr 23, 2007 7:07 am Post subject: |
|
|
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
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
|
|