Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Alternate index for ESDS in batch mode.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SMS & VSAM
Author Message
mf_user
Currently Banned

Active User


Joined: 05 Jan 2006
Posts: 76

PostPosted: Wed Feb 01, 2006 1:28 pm    Post subject: Alternate index for ESDS in batch mode.
Reply with quote

Hi,

Is it possible to create an alternate index on an ESDS VSAM cluster? An interviewer says that we can create alternate index on ESDS so that we can access the ESDS file randomly in a batch COBOL program !!

Please help me.

Thanks in advance.
Back to top
View user's profile Send private message
References
PostPosted: Wed Feb 01, 2006 1:28 pm    Post subject: Re: Alternate index for ESDS in batch mode. Reply with quote

vikasc4

New User


Joined: 11 Dec 2005
Posts: 36

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

hi,

Yes it is very much possible to create the alternate index on ESDS.
you can create the Alternate index of ESDS same as in the case of KSDS.

regards
Vikas
Back to top
View user's profile Send private message
senthils

Active User


Joined: 15 Nov 2005
Posts: 98
Location: Chennai, India

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

yes vikas we can create an AIX for an ESDS but I dont think it is possible to access the file via AIX in batch mode. In CICS its possible.
Back to top
View user's profile Send private message
vikasc4

New User


Joined: 11 Dec 2005
Posts: 36

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

No Santhils, you can use Alternate index in batch mode also. Only in jcl you have to give the path of the Alternate index.
Back to top
View user's profile Send private message
senthils

Active User


Joined: 15 Nov 2005
Posts: 98
Location: Chennai, India

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

Thats new for me vikas, but I have some doubts regarding this.

1. How do we code the SELECT clause in pgm(ORGANIZATION, ACCESS MODE ETC.)?
2. How do we access the records randomly? Do we have to pass the RBA as the key or something else?

Please clarify these doubts vikas.
Back to top
View user's profile Send private message
vikasc4

New User


Joined: 11 Dec 2005
Posts: 36

PostPosted: Thu Feb 02, 2006 11:32 am    Post subject:
Reply with quote

Hi Senthils,

You can use Alternate index in batch mode but for that you must have a assembler program which relate the RBA of records with the alternate key.This assembler program comes with the installation and check out with your Administer that your installation have this program or not.

You are right that you can not use Alternate index directly in batch program but can be used in CICS region.

I am trying to find out other detail about using alternate index for ESDS and will get back to you if find something.


CORRECT ME IF I AM WRONG

REGARDS
VIKAS
Back to top
View user's profile Send private message
senthils

Active User


Joined: 15 Nov 2005
Posts: 98
Location: Chennai, India

PostPosted: Thu Feb 02, 2006 12:10 pm    Post subject:
Reply with quote

OK vikas
Back to top
View user's profile Send private message
richie_techin

New User


Joined: 21 Jan 2006
Posts: 17
Location: india

PostPosted: Thu Feb 02, 2006 7:30 pm    Post subject: hi
Reply with quote

u can create alternate index in ESDS only in online transaction.
Back to top
View user's profile Send private message
Moved: Mon Nov 26, 2007 10:01 pm by superk From DFSORT/ICETOOL to SMS & VSAM
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SMS & VSAM All times are GMT + 6 Hours
Page 1 of 1