Topic
1 reply Latest Post - ‏2013-04-02T10:45:44Z by SystemAdmin
SystemAdmin
SystemAdmin
6184 Posts
ACCEPTED ANSWER

Pinned topic How to use resource registry variable in PUT function?

‏2013-04-01T05:44:30Z |
Actually I have tried to use the resource registry variable in PUT function as below but it is not working

%EA_MQClient% is used to retrive from resource registry (mrn file contains the respective value)

VALID(PUT("MQSC", " -QMN %EA_MQClient% -QN QNAMEXXX -V2 -FORMAT MQSTR -TE",
PACKAGE(ALERT_EMAIL)),
FAIL ("MQPUT FAILED: " + TEXT(LASTERRORCODE( ) ) + TEXT(LASTERRORMSG( )) ))

Error Message:
<Message>FAIL function aborted map: (-1002) Adapter command is incorrect</Message>

If I replace %EA_MQClient% with MQ Manager name then it is working fine. is there any issue in the syntax??. Kindly advice
Updated on 2013-04-02T10:45:44Z at 2013-04-02T10:45:44Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    6184 Posts
    ACCEPTED ANSWER

    Re: How to use resource registry variable in PUT function?

    ‏2013-04-02T10:45:44Z  in response to SystemAdmin
    This looks like the resource registry is not properly configured, therefore the QM nae is not found and this is what makes your command invalid.

    Have a look at the resource registry manual to configure it properly and this should fix the issue