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?

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

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"