ENDREQ(ddname)
After completion of a ENDREQ function call, several special REXX variables are populated with useful information. You should treat these variables as "read only" and make no attempt to modify any of them. The variables are:
parse value get('iodd','CAT','(dir,upd)'), with . +10 type . if (rc = 0) & (type = 'SIAMESE') then do /* Build new record here */ call put 'iodd', newrec end else call endreq 'iodd'