Error executing a REXX programs that used OPSDYNAM to allocate a file:
address OPSDYNAM "ALLOC FILE(FILE1) SYSOUT(B) WRITER(SMTP)"
OPSDYNAM
ALLOC FILE(FILE1) SYSOUT(B) WRITER(SMTP)
RC(4)
OPS/MVS
This symptom may indicate the file is already allocated.
A FREE command before the attempt to allocate this file or at the end of the program can be a solution:
address OPSDYNAM "FREE FILE(FILE1)"