How am I able to release an allocated dataset which remains allocated when PRINT command failed ?

Document ID : KB000014641
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

Customer tried to print SOLVE log data to a dataset by $PSDS81Z. In case the print service fails, the dataset remains allocated on SOLVE. Customer asked about how to release the dataset.

N16C70 MDO UPDATE FAILED RC=91 FB=-24640
N16C70 MDO UPDATE FAILED RC=91 FB=-24640
PS7205 PRINTING OF REQUEST 0009 FAILED, REFER TO MESSAGE N16C70 ON THE LOG

Question:

How am I able to release an allocated dataset which remains allocated when PRINT command failed ?

Answer:

Enter U (U=UNALLOCATE) from DATASET SERVICES : ALLOCATED FILES panel by =/ALLOC

or

Enter UNALLOC DD=ddname from OCS.  SH ALLOC shows you a ddname of the dataset.