Releasing Allocated Datasets - FREE Command


FREE command is used to deallocate a dataset that has been previously allocated. This is important to ensure that the system resources are efficiently used and to avoid unnecessary resource wastage.

Syntax -

FREE DATASET('dataset-name')

Where -

  • dataset-name is the name of the dataset that needs to be deallocated.

Examples -

Scenario1 - Deallocate a dataset named MATEPK.TSO.TESTPS.

FREE DATASET('MATEPK.TSO.TESTPS')

This command will deallocate the MATEPK.TSO.TESTPS dataset, freeing up the system resources that were previously used by the dataset.