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",
FAIL ("MQPUT FAILED: " + TEXT(LASTERRORCODE( ) ) + TEXT(LASTERRORMSG( )) ))
<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
Pinned topic How to use resource registry variable in PUT function?
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2013-04-02T10:45:44Z at 2013-04-02T10:45:44Z by SystemAdmin
SystemAdmin 110000D4XK6184 Posts
Re: How to use resource registry variable in PUT function?2013-04-02T10:45:44ZThis is the accepted answer. This is the accepted answer.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