>Well, I disagree about the "kluge" part, (it solves the problem for which
the requirements were written), but disgarding that ...
It is, in my opinion, too special a case.
IF PGM=='IEFBR14' & VOL(DSN) == 'MIGRAT' THEN DO;
COMMAND(HDEL DSN);
END;
ELSE DO;
ACTION(ALLOCATE DSN);
END;
What about all other programs that allocate a DataSet, but don't open them?
What about (unlikely, but a boundary condition) a home-grown programme that
could be called IEFBR14.
This is too specialised a condition, hence by (MY) definition a kludge.
But, as I said, that is my opinion (and that of a few others).
-
Too busy driving to stop for gas!
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html