Deleting data from the database
You can delete
data from the database using the one of the following keywords of
the DSTUTIL command:
- DELUNSTR
- To delete the unstructured data
- DELSTRUC
- To delete the structured data
- DELBOTH
- To delete the structured and unstructured data
Example:
DSTUTIL DELUNSTR
SEARCH1(JBNMLKJOB00*,
SYCLEQU)
SEARCH2(OLDRMM2)
SEARCH3(JBIDEQJOB00467)
This command deletes records that match the following criteria:
JobName LIKE 'JOB00*' and SysClass = 'U'
or
job OLDER then 2 months
or
JobId = 'JOB00467'