How to query the attribute NUMRESZIIP using ADDRESS HWS?
search cancel

How to query the attribute NUMRESZIIP using ADDRESS HWS?

book

Article ID: 277779

calendar_today

Updated On:

Products

OPS/MVS Event Management & Automation

Issue/Introduction

Trying to get the attribute NUMRESZIIP using OPSBCPII instruction GETATTR instruction in OPS/REXX and getting this error:


OPBCP999E - ( OPIIRQL ) hwiquery failed - RC=401 CommErr=0  Mismatch

OPM0349T ADDRESSHWS - GETATTR failure. RC: 16 ; RSC: X'00000401'
OPM0997T *-* 56:Address "HWS" "GETATTR ATTR('"attr"') ENTITY("fullEntity")",
OPM0997T +++     RC(16)  

 

 

Environment

OPSBCPII OPS/REXX 

Resolution

The target entity type for the NUMRESZIIP attribute must be an Image Activation Profile. For example:

XATRDTYP='NUMRESZIIP'                           
ADDRESS HWS                                     
    "GETATTR ATTR('"XATRDTYP"')",               
    "ENTITY(CPC('xxxxxxxx') IAP('nnnn'))", 
    "DEBUG(YES) TIMEOUT(30)"                    
                                                
SAY 'RESPONSE='HWS.XATRDTYP     

Additional Information

Reference in the OPS/MVS 14.0 documentation:

https://techdocs.broadcom.com/us/en/ca-mainframe-software/automation/ca-ops-mvs-event-management-and-automation/14-0/reference-information/command-and-function-reference/host-environment-commands/address-hws-host-environment/address-hws-v1-commands/getattr-v1-retrieve-the-value-of-a-system-attribute.html