$DSCALL OPT=COMPRESS

Compresses a PDS.

&CONTROL SHRVARS=($DS)
EXEC $DSCALL OPT=COMPRESS
             DSN=dataset_name
           [ DISPLAY= {YES | NO } ]
           [ STAT= { OLD | SHR } ]
           [ SYSPRINT= { DELETE | KEEP | DSN } ]

This call is used to compress a PDS using IEBCOPY. The compress function is used to reclaim unused space in the data set. This reduces fragmentation within the PDS and can result in more efficient use of the space allocated to the PDS.

Operands:

Return Codes:

Note: For more information about &SYSMSG, &$DSRC, and &$DSFDBK, see Return Codes and Feedback Codes.

Return Variables:

Example: OPT=CLOSE

EXEC $DSCALL OPT=CLOSE  DSN=SYS.WORK.DEV01 STAT=SHR +
   SYSPRINT=DSN DISPLAY=NO

Note: IEBCOPY is invoked internally.


Copyright © 2009 CA. All rights reserved.