Author: mukun264
Subject: Record Not found in AlX but record record present
Posted: Fri Mar 24, 2017 9:28 am (GMT 5.5)
Hi Guys,
I am trying to read an index file using AIX key but getting status code 23 for all available alternate keys.
what I did.
1. declaration of file
SELECT indx-file
ASSIGN KSDSFILE
ORGANIZATION INDEX
ACCESS IS DYNAMIC
RECORD KEY IS MAIN-KEY
ALTERNATE KEY IS ALT-KEY
FILE STATUS IS FILE-STATUS
reading file using alx
READ INDX-FILE KEY ALT-KEY
Here i am getting file status 23 (record not found) . i have checked key . length and records. all are fine. i have given both files in jcl
successful getting data by reading path as main file.
1. declaration of file
SELECT indx-file
ASSIGN KSDSFILE1
ORGANIZATION INDEX
ACCESS IS DYNAMIC
RECORD KEY IS ALT-KEY
FILE STATUS IS FILE-STATUS
reading PATH DD
READ INDX-FILE
any one having idea why. I am unable to getting real background cause. please help
_________________
Bal Mukund
--------------
Bangalore
Subject: Record Not found in AlX but record record present
Posted: Fri Mar 24, 2017 9:28 am (GMT 5.5)
Hi Guys,
I am trying to read an index file using AIX key but getting status code 23 for all available alternate keys.
what I did.
1. declaration of file
SELECT indx-file
ASSIGN KSDSFILE
ORGANIZATION INDEX
ACCESS IS DYNAMIC
RECORD KEY IS MAIN-KEY
ALTERNATE KEY IS ALT-KEY
FILE STATUS IS FILE-STATUS
reading file using alx
READ INDX-FILE KEY ALT-KEY
Here i am getting file status 23 (record not found) . i have checked key . length and records. all are fine. i have given both files in jcl
successful getting data by reading path as main file.
1. declaration of file
SELECT indx-file
ASSIGN KSDSFILE1
ORGANIZATION INDEX
ACCESS IS DYNAMIC
RECORD KEY IS ALT-KEY
FILE STATUS IS FILE-STATUS
reading PATH DD
READ INDX-FILE
any one having idea why. I am unable to getting real background cause. please help
_________________
Bal Mukund
--------------
Bangalore