How do I delete datasets that are archived by DFSMShsm

Document ID : KB000027199
Last Modified Date : 14/02/2018
Show Technical Document Details

Question:

How do I delete datasets that are archived by DFSMShsm?

 

Description:

Problems may be observed when deleting datasets that have been archived with DFSMShsm.

To be able to delete the datasets you must have logged on with group name ARCCATGP.

 

Solution:

To be able to delete the datasets you must have logged on with group name ARCCATGP.

For TSO:
On the TSO logon full screen panel, there is a field GROUP. Put the ARCCATGP in that field and continue with the normal logon.

If you do not use the TSO full screen logon you can specify the GROUP(ARCCATGP) on the TSO logon command e.g. LOGON user01 GROUP(ARCCATGP).

For BATCH JOBS: You need to add GROUP=ARCCATGP to the jobcard of the batch job.

The only other setup that you will need to do in ACF2 is to ensure the user has access to the GROUP. This can be done with a resource rule like this:

  • $KEY(ARCCATGP) TYPE(TGR)

  • UID(uid string) ALLOW

Failure to setup this rule will result in an ACF04056 message stating that the user does not have access to the GROUP resource.

An alternative would be to setup the user's LOGONID to have ARCCATGP as the default group.

This can be achieved by the following commands.

 ACF
 CHANGE userid GROUP(ARCCATGP)

If the user has the group specified in their LOGONID record they do not need access to the TGR resource rule.