How do I delete a GSO record that doesn't have a record id qualifier or one that has a masking character in the qualifier?

book

Article ID: 52589

calendar_today

Updated On:

Products

CA ACF2 CA ACF2 - DB2 Option CA ACF2 for zVM CA ACF2 - z/OS CA ACF2 - MISC CA PanApt CA PanAudit

Issue/Introduction

Description:

I accidently created a GSO SAFDEF without a qualifier. How do I delete it so I can define it properly with a qualifier? Similarly, if I defined a GSO record with a masking character, eg, * or - in the qualifier, how do I delete it?

Solution:

To delete the GSO record without a qualifier, issue

ACF           
SET C(GSO)       
LIST SAFDEF  

The LIST SAFDEF will display only the one SAFDEF record with that record id. You can then issue an

ACF           
SET C(GSO)       
DEL SAFDEF  

to delete that specific record.

To delete a GSO record that has a masking character in the qualifier care must be taken to ensure the correct record id is deleted.

The following can be used to illustrate the problem

ACF           
SET C(GSO)       
LIST SAFDEF.*  

will list only the one SAFDEF record that has a qualifier of '*'.

Similarly, a LIST SAFDEF.- would list only a SAFDEF that has a qualifier of '-'.

The problems arise when the "LIKE" parameter is used

ACF           
SET C(GSO)       
LIST LIKE(SAFDEF.-)  

will list ALL records that BEGIN with SAFDEF.

If you issue a DELETE LIKE(SAFDEF.-) ALL records that begin SAFDEF. will be deleted.

So, if you want to delete multiple records use "DELETE LIKE"

If you want to delete just a single record use "DELETE"

Environment

Release:
Component: ACF2MS