SAPI Task (CADZSAPx) Security Violations

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

Question:  

When starting one of the SAPI tasks to process REPORT or MSGCLASS data out of the JES2 queue and into the LDS's, you are receiving JES $HASP186 security violation error messages. How to we resolve this error?

Answer: 

If upon startup of a SAPI task to process data out of the JES2 queue and into the LDS files, the following message is being received:

$HASP186 xxxxxxxx OUTGRP=1.1.1 NOT SELECTED BY STCnnnnn/CADZSAPx. nnn CADZSAPx.SAPIMSG DUE TO SECURITY POLICY

The indication is that your SAPI task is not authorized by your EXTERNAL security package to process data out of the JES queue.

If you need to determine why JES issued this message or you are running in RACF warn mode and need to know if this message would also occur in fail mode, set:

$T DEBUG SECURITY=YES

The above forces the actual Security message to be displayed. The SAPI task (CADZSAPx) MUST be given the appropriate access to JES2 SPOOL by the SECURITY administrators.