SYSVIEW API. data Error OPM1046O ERROR 46 RUNNING RL.JIRA3001, LINE 177: INVALID VARIABLE REFERENCE
book
Article ID: 194253
calendar_today
Updated On: 09-04-2024
Products
OPS/MVS Event Management & Automation
Show More
Show Less
Issue/Introduction
I am getting an error (error no 46) when trying to access a data element from a OPS/MVS interface with SYSVIEW. I don't understand why the error is being issued. I haven't been able to find an answer in your manuals or via internet searches. I was hoping you could help explain what I'm doing incorrectly. I'm using an )API rule. Please see the details of the error run below.OPM4200I MESSAGE: 'opsinfo(jobname) = SYSVIEW' OPM4200I MESSAGE: 'api.application (SYSVIEW) = SYSVIEW' OPM4200I MESSAGE: 'api.version (Current rel.) = 16.0' OPM4200I MESSAGE: 'api.level (Service pk/bld) = 00000990' OPM4200I MESSAGE: 'api.id (CAGSVX0001) = CAGSVX0001' OPM4200I MESSAGE: 'api.color (Alert color) = .' OPM4200I MESSAGE: 'api.group (Variable metric' OPM4200I MESSAGE: ' Group Name ) = SYSTEM' OPM4200I MESSAGE: 'api.name (Variable metric name) = ERUCSA%' OPM4200I MESSAGE: 'api.resource (Assoc resource) = *' OPM4200I MESSAGE: 'api.status (Current status) = NORMAL' OPM4200I MESSAGE: 'api.value (Current value ) = 0%' OPM4200I MESSAGE: 'api.text (Excptn msg txt) =' OPM4200I MESSAGE: 'SYST MVS * SYSTEM STORAGE ERUCSA% * NORMAL NORMAL 12.1DAYS 0% 1% 70% UPPER' OPM4200I MESSAGE: 'api.description (parmlib) = E-RUCSA storage used pct' OPM4200I MESSAGE: 'api.user =' OPM4200I MESSAGE: 'mvsName=SYST os=MVS jobname=* varMetGrNm=SYSTEM' OPM4200I MESSAGE: 'varMetNm=STORAGE AssocRes=ERUCSA% oldStatus=*' OPM4200I MESSAGE: 'newStatus=NORMAL curValue=NORMAL WarnDefVal=12.1DAYS' OPM4200I MESSAGE: 'ProblmDefVal=0% 1% 70% UPPER' OPM0997T *-* 156:trace r OPM0997T *-* 157:apiJobName = OPSINFO('JOBNAME') OPM0997T >>> APIJOBNAME=SYSVIEW OPM0997T *-* 158:apiVersion = translate(space(api.version)) OPM0997T >>> APIVERSION=16.0 OPM0997T *-* 159:if apiVersion = 13.0 then do OPM0997T *-* 165: validJobGroup = 'ASID' OPM0997T >>> VALIDJOBGROUP=ASID OPM0997T *-* 166: validPagGroup = 'SYSTEM' OPM0997T >>> VALIDPAGGROUP=SYSTEM OPM0997T *-* 167: validStgGroup = 'SYSTEM' OPM0997T >>> VALIDSTGGROUP=SYSTEM OPM0997T *-* 170:if isSvTP(api.id,'T',apiJobname) then Return OPM0997T *-* 104: trace i OPM0997T *-* 105: Select OPM0997T *-* 106: when tpIndex = 0 | taskNameIndex = 0 then OPM0997T >V> 1 OPM0997T >L> 0 OPM0997T >O> 0 OPM0997T >V> 2 OPM0997T >L> 0 OPM0997T >O> 0 OPM0997T >O> 0 OPM0997T *-* 108: when tpIndex = taskNameIndex then OPM0997T >V> 1 OPM0997T >V> 2 OPM0997T >O> 0 OPM0997T *-* 110: otherwise nop OPM0997T *-* 111: End /* Select */ OPM0997T *-* 113:return 0 OPM0997T >L> 0 OPM0997T *-* 174:apiResource = translate(space(api.resource)) OPM0997T >>> APIRESOURCE=* OPM0997T *-* 175:apiStatus = translate(space(api.status)) OPM0997T >>> APISTATUS=NORMAL OPM0997T *-* 176:apiText = translate(space(api.Text)) OPM0997T >>> APITEXT=SYST MVS * SYSTEM STORAGE ERUCSA% * NORMAL NORMAL 12.1DAYS 0% 1% 70% UPPER OPM0997T *-* 177:apiName = translate(space(api.name)) OPM9999T OPAOEV RC= 46 FOR ENVIRONMENTAL VARIABLE API.VARIABLE1 OPM1046O ERROR 46 RUNNING RL.JIRA3001, LINE 177: INVALID VARIABLE REFERENCE OPFINFO OPM1046O ERROR 46 RUNNING RL.JIRA3001, LINE 177: INVALID VARIABLE REFERENCE
Resolution
The error 46 is due to the setting of the variable name in the INIT section:
)INIT name="VARIABLE1"
Any reference to 'name' after this line of code will cause this value of VARIABLE1 to be used - for example api.name is actually api.VARIABLE1.
Change the variable name to something different like name1 and then change any other references to name where you intended to use this new value.
Feedback
Was this article helpful?
thumb_up
Yes
thumb_down
No