How to delete an ACF2 keyring record that contains a dash at the end
search cancel

How to delete an ACF2 keyring record that contains a dash at the end

book

Article ID: 267588

calendar_today

Updated On:

Products

ACF2 - z/OS ACF2 ACF2 - MISC

Issue/Introduction

An ACF2 keyring was INSERTed in error that contains a dash character at the end of the record name:

SET PROFILE(USER) DIV(KEYRING)

KEYRING / TESTUSER.TSTRING- LAST CHANGED BY ADMIN ON 05/30/23-13:34

                      DEFAULT() RINGNAME(TESTUSER.TSTRING)

  No certificates are connected to this key ring

This record needs to be deleted, but the delete command fails because it says it can't find the keyring. 

DEL TESTUSER.TSTRING-

How can this record be deleted?

 

Environment

Release : 16.0

Resolution

The dash character is treated as a continuation character in ACF2 when found at the end of a command. To get around this, a DEL LIKE command can be issued so the dash character is treated as a masking character and not a continuation.

First, LIST LIKE the record to make sure the certificate is able to be listed and that it is the only certificate in the list:

SET PROFILE(USER) DIV(KEYRING)
LIST LIKE(TESTUSER.TSTRING-)

If the keyring is listed and the only one listed, then go ahead and issue the following:

SET PROFILE(USER) DIV(KEYRING)
DEL LIKE(TESTUSER.TSTRING-)