02.05.2013 Views

SAS(R) 9.1.3 Companion for z/OS

SAS(R) 9.1.3 Companion for z/OS

SAS(R) 9.1.3 Companion for z/OS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

334 RELEASE Procedure Chapter 16<br />

provided a secondary space allocation is given <strong>for</strong> the data set in the control language<br />

or <strong>SAS</strong> statement, and provided all free space on the volume is not subsequently<br />

allocated to other data sets.<br />

PROC RELEASE Statement<br />

PROC RELEASE DDNAME=file-specification ;<br />

DDNAME=file-specification<br />

specifies either a physical file name (enclosed in quotation marks), a fileref that<br />

refers to the physical file from which to release unused space, or a libref referring<br />

to an unopened <strong>SAS</strong> data library. If multiple librefs are currently assigned to a<br />

<strong>SAS</strong> data library, you must specify the libref which was assigned first. DDNAME=<br />

is required.<br />

options<br />

specify how much unused space to keep or release, and specify the unit boundary<br />

on which the data set should end.<br />

TOTAL=number | TRACKS=number<br />

specifies the total number of tracks that the data set should contain after<br />

unused space is released, that is, after PROC RELEASE has executed. For<br />

example, the following statement releases all but ten tracks <strong>for</strong> the data set<br />

that is referenced by the fileref SURVEY:<br />

proc release ddname=survey total=10;<br />

The procedure calculates the amount of space to release as follows:<br />

amount of space allocated − (value of TOTAL= option) = amount of unused<br />

space released<br />

If the value that you specify is smaller than the amount of used space in<br />

the data set, then <strong>SAS</strong> releases only the unused space at the end of the data<br />

set.<br />

UNUSED=number<br />

specifies the number of tracks of unused space that the data set should<br />

contain after PROC RELEASE has executed. The procedure calculates the<br />

amount of unused space to release as follows:<br />

amount of space allocated − (used space + value of UNUSED= option) =<br />

amount of unused space released<br />

If the value that you specify is greater than the amount of unused space at<br />

the end of the data set, then no space is released at the end of the data set.<br />

RELEASE=number<br />

specifies how many tracks of unused space to release. If the value that you<br />

specify is greater than the amount of unused space at the end of the data set,<br />

then <strong>SAS</strong> releases all the unused space at the end of the data set.<br />

EXTENTS | EXTENT | EX<br />

tells <strong>SAS</strong> to release only the space that is allocated to completely unused<br />

secondary extents. After the procedure releases unused space from the data<br />

set, the size of the data set is the sum of the primary extent plus all used<br />

secondary extents.<br />

If you do not specify one of these options in the PROC RELEASE statement,<br />

then all unused space at the end of the data set is released.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!