I am failry new to this amazing language. Recently I was trying for a program, but I got some unexpected outputs, or at least unexpected to me.
My Requirements are :
1. I have one VSAM file(say, ALTKSD), it has one primary key. I have created another AIX file(say, ALTKSD1), which has an alternate index for the base cluster ALTKSD.
2. I have also build a path between them.
3. Cust-Id is primary index and telephone-no is alternate index
4. As per my cobol program, I am reading a 3rd Input(Sequential) file, which has only one record i.e., telephone-no(Alternate Index) and matching these with my VSAM file, what ever matching records I would get based upon the telephone-no I'll write them into my Report-file.
But, I am not able to open the VSAM file itself, the error code is 35
FILE-CONTROL.
SELECT FILEIN1 ASSIGN TO IN1
ORAGANIZATION IS INDEXED
ACCESS IS DYNAMIC
RECORD KEY IS USER-ID
ALTERNATE RECORD KEY IS TELEPHONE-NO
FILE STATUS IS WS-STAT0INPUT1
SELECT FILEIN1 ASSIGN TO IN1
ORAGANIZATION IS INDEXED
ACCESS IS DYNAMIC
RECORD KEY IS USER-ID
ALTERNATE RECORD KEY IS TELEPHONE-NO
FILE STATUS IS WS-STAT0INPUT1
OPEN INPUT FILEIN1
In the JCL, in the DD name I am giving path of the VSAM file(ALTKSD)
Am I going wrong anywhere, any help would be heartly appreciated.