File allocation using the TSO/E ALLOC Command
In the above example, the FREE command is pushed to the Data Stack. Commands on the Data Stack are executed automatically when the REXX routine ends, whether that is normal or abnormal end. This ensures that the data set is freed for others to use.