Hi Sathysari - I was searching for this error which I just encountered today. Do you mind if you can share with me your solution? I already looked into the details of the error but I can't still resolve my problem.
I'm matching 3 temporary/virtual files I created in the previous job of my easytrieve. I matched, I'm populating the fields of my output file using the fields from these virtual files. The OUTFILE is defined in FILE statement and has DD statement in my JCL. TRLR01, TRLR02, TRLR49 are the virtual files I created in the previos jobs.
JOB INPUT (TRLR01 KEY TRLR01-FILE-KEY +
TRLR02 KEY TRLR02-FILE-KEY +
TRLR49 KEY TRLR49-FILE-KEY)
IF MATCHED TRLR01, TRLR02, TRLR49
O-POLICY = TRLR01-FILE-KEY
O-STATUS = TRLR01-STAT
O-CLASSPLAN = TRLR02-CLASSPLAN
O-AGENT = TRLR49-AGENT
O-SIT = TRLR49-AGENT-SIT
O-AGENCY = TRLR49-AGENCY
O-CRF-KEY = TRLR49-CRF-KEY
O-KEY = TRLR49-KEY
PUT OUTFILE
ELSE
IF MATCHED TRLR02, TRLR49
O-CLASSPLAN = TRLR02-CLASSPLAN
O-AGENT = TRLR49-AGENT
O-SIT = TRLR49-AGENT-SIT
O-AGENCY = TRLR49-AGENCY
O-CRF-KEY = TRLR49-CRF-KEY
O-KEY = TRLR49-KEY
PUT OUTFILE
ELSE
IF TRLR02
O-CLASSPLAN = TRLR02-CLASSPLAN
PUT OUTFILE
ELSE
IF TRLR49
O-AGENT = TRLR49-AGENT
O-SIT = TRLR49-AGENT-SIT
O-AGENCY = TRLR49-AGENCY
O-CRF-KEY = TRLR49-CRF-KEY
O-KEY = TRLR49-KEY
PUT OUTFILE
END-IF
END-IF
END-IF
END-IF
Thanks.
Code'd