ERASE - syncsort_scc_monitor - Latest

Syncsort™ Storage Management SCC DLimit Guide

Product type
Software
Portfolio
Integrate
Product family
Syncsort™ software
Product
Syncsort™ Storage Management > Syncsort™ SCC Monitor
Version
Latest
ft:locale
en-US
Product name
Syncsort Storage Management
ft:title
Syncsort™ Storage Management SCC DLimit Guide
Copyright
2021
First publish date
1991
ft:lastEdition
2025-12-05
ft:lastPublication
2025-12-05T05:06:29.654000
L1_Product_Gateway
Integrate
L2_Product_Segment
IBM Infrastructure
L3_Product_Brand
Precisely Syncsort
L4_Investment_Segment
Mainframe
L5_Product_Group
Mainframe Storage Optimization
L6_Product_Name
Syncsort Storage Management

This statement is used to delete accounts from the SCC-DLimit database. The accounts specified by the INCLUDE ACCOUNT and EXCLUDE ACCOUNT filter criteria are deleted.

The ALL or EMPTY operands indicate whether the account is to be deleted only if the current space amount is zero (EMPTY), or even if some space is currently assigned to the account (ALL).

Important: Default behavior is to delete accounts only if there is no space associated with them (EMPTY).

This function requires ALTER authority to each account name (DSL.acctname) or DLimit database administrator authority (UPDATE access to DSL.$CONTROL).

ERASE scope

LIST

scope

Function: This is an optional parameter. This positional parameter defines the scope of the ERASE function. The valid options are:

  • ALL — delete accounts even if some space is currently assigned to the account.
  • EMPTY — delete accounts only if the current space amount is zero.

Default: EMPTY

Format: ALL or EMPTY

LIST

Function: This is an optional parameter. The LIST operand indicates that the names of the accounts processed during the ERASE operation are to be displayed in the SYSPRINT dataset.

Default: None

Format: LIST

Example The following example shows the use of the ERASE statement to delete accounts in the SCC-DLimit database that are currently empty (have zero space assigned to any space value). Only accounts whose names begin with the characters 'REGION3' are affected. The active SCC-DLimit database is not used - instead, a key-sequenced VSAM cluster that has been previously loaded from a backup via the RESTORE function is used.


          //DSLERASE JOB ...
          //DLMAINT EXEC PGM=DLMAINT,REGION=4M
          //STEPLIB   DD DISP=SHR,DSN=DTS.R71.LOADLIB
          //DBFILE    DD DISP=SHR,DSN=DSL.KSDS.FILE
          //SYSPRINT  DD SYSOUT=*
          //SYSABEND  DD SYSOUT=*
          //SYSIN     DD *
          SET DATABASE(VSAM(DBFILE)) INCLUDE ACCOUNT(REGION3*) ERASE EMPTY LIST