I have a large VSAM file, I need to update a small portion. The file containing the updates is in a single record and the VSAM file has the data in 2 records. I am doing a match initially and then reading the next VSAM record. On both the writes and the read of the vsam file I am getting this error. Is this too complex for easytrieve and should I use COBOL instead.
Here is the vsam file in the JCL and the relevant portions of the easytrieve:
//MIMAST DD DSN=userid.MIMAST,DISP=SHR,
// BUFNO=30
FILE MIMAST VS UPDATE
JOB INPUT (MIMAST KEY(MIM-BK, MIM-REC, MIM-REGION, MIM-CUST, +
MIM-CUSTBIN, MIM-INDR) +
INFILE KEY(IN-BANK, IN-REC, IN-REGION, +
IN-CUST, IN-CUSTBIN, IN-INDR)) +
FINISH DISPLAY-TOTAL
IF MATCHED
WRITE MIMAST UPDATE STATUS
*******B054 NOT A VALID FILE - MIMAST
READ MIMAST KEY WS-KEY STATUS
*******B054 NOT A VALID FILE - MIMAST
WRITE MIMAST UPDATE STATUS
*******B054 NOT A VALID FILE - MIMAST