Hi All...
I have written COBOL program where i am trying to read a VSAM file....
The file decalration is as follows:
SELECT INACTIVE-MASTER ASSIGN TO VSAM1
ORGANIZATION IS INDEXED
ACCESS MODE IS DYNAMIC
RECORD KEY IS APP-REC-KEY OF INACTIVE-MASTER-RECORD
FILE STATUS IS FILE-STATUS-CODE.
FD INACTIVE-MASTER
RECORD IS VARYING.
01 INACTIVE-MASTER-RECORD.
COPY BOOK.
EJECT
In procedure division i tried to read the file using teh command:
READ INACTIVE-MASTER NEXT
IF SUCCESSFUL-IO
...
mY logic will run
ELSE
Dispaly file status
Abend routine
when run the prog, i am getting the below error:
STATUS-CODE: 04
Since 04 indicates:
A READ statement was successfully executed, but the length of the
record being processed did not conform to the fixed file attributes
for that file.
I couldnt able to figure out where i went wrong...
can u pls help me out...