Free a Data set From the MVS System Console

To free a single DDNAME:

F <iway_server_jobname/started task>,DYNAM FREE FI <ddname>

To free a single DSNAME (all occurrences in the server):

F <iway_server_jobname/started task>,DYNAM FREE DS <dsname>

To free multiple DDNAMEs, passing a pattern (free all DDNAMEs starting with AB):

F <iway_server_jobname/started task>,DYNAM FREE FI AB*

To free multiple DSNAMEs (all occurrences in the server), passing a pattern (free all allocations of data sets starting with IWAY.VSAM):

F <iway_server_jobname/started task>,DYNAM FREE DA IWAY.VSAM*

A message is issued in the iway_server JESMSGLG indicating if the command was processed successfully or not, as follows.

Success:

+DYNAM COMMAND SUCCESSFULLY PROCESSED Rc=0

Failure:

+DYNAM ERROR: IKJ56225I DATA SET IWAY.TEST ALREADY IN USE, TRY LATER

Freeing an Allocated Data Set

Suppose ISTART JCL (jobname IWAY2) has the following allocation:

//VSAMFILE DD DISP=SHR,DSN=VSAM.FILEA.CLUSTER

The operator can free this file using the command (from the MVS console):

F IWAY2,DYNAM FREE FI VSAMFILE