ACF2 Insert of Certificate gets ACF67030 Invalid Operand Error

Document ID : KB000124573
Last Modified Date : 12/02/2019
Show Technical Document Details
Question:
ACF2 Insert of Certificate gets ACF67030 Invalid Operand Error, how can the error be addressed?
Answer:
The "ACF67030 INVALID OPERAND" is mostly caused by not being in the correct mode for the ACF Command processor. A TSO, ACF  CHKCERT from any ACF mode(SET command) can be done. However for an INSERT of a certificate the correct mode must be set for certificate administration.

The INSERT of a certificate needs to be done after a SET PROFILE(USER) DIV(CERTDATA) command.

For example:
ACF
SET PROFILE(USER) DIV(CERTDATA)
INSERT SERVEX.CERT2 - DSN('SYS1.CERT.SERVEX.SIGNED.CRT') - LABEL(TSTA SERVEX CERTIFICATE) TRUST