z/OS Cryptographic Services ICSF Application Programmer's Guide
Previous topic | Next topic | Contents | Index | Contact z/OS | Library | PDF


When the Call Does Not Succeed

z/OS Cryptographic Services ICSF Application Programmer's Guide
SA22-7522-16

Now you have planned your use of the ICSF callable services, made the call, but the service has completed with a return and reason codes other than zero.

If the return code is 4, there was a minor problem. For example, reason code 8004 indicates the trial MAC that was supplied does not match the message text provided.

If the return code is 8, there was a problem with one of your parameters. Check the meaning of the reason code value, correct the parameter, and call the service again. You may go through this process several times prior to succeeding.

If the return code is 12, ICSF is not active, or has no access to cryptographic units, or has an environmental problem. Check with your ICSF administrator.

If the return code is 16, the service has a serious problem that needs the help of your system programmer.

There are several reason codes that can occur when you have already fully debugged and tested your program. For example:

  • Reason code 10004 indicates that you provided a key identifier that holds a key enciphered under a host master key. The host master key is not installed in the cryptographic unit. If this happens, you have to go back and import your importable key form again and call the service again. You need to build this flow into your program logic.
  • Reason code 10012 indicates a key corresponding to the label that you specified is not in the CKDS or PKDS. Check with your ICSF administrator to see if the label is correct.
  • Reason code 3063 indicates RACF failed your request to use a token.
  • Reason code 16000 indicates RACF failed your request to use a service.
  • Reason code 16004 indicates RACF failed your request to use the key label. Examine your CSFKEYS profiles and key store policies for possible errors.

Return and reason codes are described in Appendix A. ICSF and TSS Return and Reason Codes.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014