z/OS MVS Programming: Extended Addressability Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Deleting a data space

z/OS MVS Programming: Extended Addressability Guide
SA23-1394-00

When a task doesn't need the data space any more, it can free the virtual storage and remove the entry from the access list.

A problem program with PSW key 8 - F can delete only the data spaces it created or owns, provided it has a PSW key that matches the storage key of the data space.

Example of Deleting a Data Space

The following example shows you how to delete a data space entry from an access list and then delete the data space.
         ALESERV DELETE,ALET=DSPCALET       REMOVE DS FROM AL
         DSPSERV DELETE,STOKEN=DSPCSTKN     DELETE THE DS
         .
DSPCALET DS   F                             DATA SPACE ALET
DSPCSTKN DS   CL8                           DATA SPACE STOKEN

IBM® recommends that you explicitly remove the entry for a data space from the access list and delete the space before the owning task terminates. This frees up resources when they are no longer needed, and avoids excess processing at termination time. However, if you don't, MVS™ automatically does it for you at termination time.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014