Joined: 31 Oct 2007 Posts: 11 Location: Bangalore - India
I need to read a VSAM file with its alternate index in my batch program. My File-control declaration is as below
SELECT ACCOUNT-FILE ASSIGN TO IKG99NC
ORGANIZATION IS INDEXED
ACCESS IS RANDOM
RECORD KEY IS IX151-KEY1-TOP-CPI
ALTERNATE RECORD KEY IS
IX151-KEY1-ACCT-NUM WITH DUPLICATES
FILE STATUS IS WS-ACC-FILE-SW.
The FD declaration is as
++INCLUDE NIXI151 (Copy book that has Files record layout)
When i Open the File in my program i get file status as 35. (File not found). The file contains some data
Is there any JCL changes required for accessing VSAM File with alternate index like specifying the path file?
Can anyone pls help?
Edited: Please use BBcode when You post some code, that's rather readable...Anuj