DB2 is giving an ACF2 violation trying to refresh WLM and also error message DSNT542I
search cancel

DB2 is giving an ACF2 violation trying to refresh WLM and also error message DSNT542I

book

Article ID: 189973

calendar_today

Updated On:

Products

ACF2 ACF2 - DB2 Option ACF2 - z/OS ACF2 - MISC

Issue/Introduction

Running a refresh of WLM in DB2, the job gets an ACF04056 violation and error message:

DSNT542I SQL ID sqlid IS NOT AUTHORIZED TO REFRESH WLM ENVIRONMENT wlm-environment-name

From IBM documentation for DSNT542I, what rule is needed in ACF2?

System programmer response

Give sqlid READ access or higher on the appropriate SAF resource profile. That profile resides in SAF resource class DSNR and has the format ssid.WLM_REFRESH.wlm-environment-name.


Environment

Component : ACF2 for z/OS

Resolution

A sample rule in ACF2 could look like this where DSNC is the ssid, using the default TYPE code (SAF) in the CLASMAP record for class DSNR:

$KEY(DSNC) TYPE(SAF)
 WLM_REFRESH.- UID(uid_for_user) ALLOW