Author |
Message
|
nik_iway |
Posted: Mon Apr 24, 2006 9:05 pm Post subject: Running AMQ3PUT4 Program |
|
|
Centurion
Joined: 21 Jul 2005 Posts: 115
|
Hi everybody,
I am using the sample AMQ3PUT4 to create a module. Through command CRTPGM i am binding with the service program name QMQM(library)/LIBMQM(Service Program)..
I want to Access the Queuemanger on the ISeries programatically. I am running my program on a different user account (no Admin rights). Is there any administration configuration that needs to be done to access the QueueManager running under Adminstrator Account..
When i am running the above program i am getting the error 2035 MQRC_NOT_AUTHORISED
Urgently Required Help
Regards
Nik |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Apr 25, 2006 3:18 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Read the admin manual and look for setmqaut
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
Toronto_MQ |
Posted: Tue Apr 25, 2006 9:45 am Post subject: |
|
|
 Master
Joined: 10 Jul 2002 Posts: 263 Location: read my name
|
Or, in your case, GRTMQMAUT.
Steve |
|
Back to top |
|
 |
Srinivasan |
Posted: Tue May 02, 2006 9:05 pm Post subject: Running AMQ3PUT4 Program |
|
|
Apprentice
Joined: 12 Jul 2005 Posts: 41 Location: Chennai
|
Nik,
Did you try to call AMQ3PUT4 program from command line manually?
If you have not tried it, call the program from command line with two parameters of length 48 bytes.
Queue manager name and Remote queue defn name should be 48 bytes otherwise it would throw an error.
if it works in the command line then it should not be a problem with your bound program. else debug your program and check whether you have the queue connected and opened.
Regards,
Srinivasan _________________ Srinivasan for MQ discussion |
|
Back to top |
|
 |
vennela |
Posted: Wed May 03, 2006 10:07 am Post subject: Re: Running AMQ3PUT4 Program |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Srinivasan wrote: |
Queue manager name and Remote queue defn name should be 48 bytes otherwise it would throw an error. |
I am pretty sure the length of the names shouldn't matter as long as they are valid.
Also, it need not be a remote queue, it as well can be a local queue.
It is the equivalent of amqsput on distributed platforms.
For 2035 error, the replies above are very much valid and exactly to the point. |
|
Back to top |
|
 |
Srinivasan |
Posted: Wed May 03, 2006 10:05 pm Post subject: Re: Running AMQ3PUT4 Program |
|
|
Apprentice
Joined: 12 Jul 2005 Posts: 41 Location: Chennai
|
In AS/400, it gives problem. please try calling AMQ3PUT4 with parameters less than 48 chars you will not be able to send the message.
I have experienced this problem, thats why Im very sure abt this. _________________ Srinivasan for MQ discussion |
|
Back to top |
|
 |
vennela |
Posted: Thu May 04, 2006 4:36 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
|
Back to top |
|
 |
Toronto_MQ |
Posted: Thu May 04, 2006 4:38 am Post subject: Re: Running AMQ3PUT4 Program |
|
|
 Master
Joined: 10 Jul 2002 Posts: 263 Location: read my name
|
Srinivasan wrote: |
In AS/400, it gives problem. please try calling AMQ3PUT4 with parameters less than 48 chars you will not be able to send the message.
I have experienced this problem, thats why Im very sure abt this. |
... a 2035 is an authorization error - and should have nothing to do with the length of the paramters passed.
I assume you're referring to this (from the manuals):
"Using this example program, the command is:
CALL PGM(QMQMSAMP/AMQ3PUT4) PARM('Queue Name')
where Queue Name must be 48 characters in length, which you achieve by padding the queue name with the required number of blanks. "
... however I would be very surprised if using a queue name of less than 48 characters would return a 2035?? If it did, it would most certainly be a bug.
I think Nik's statement -
nik_iway wrote: |
I am running my program on a different user account (no Admin rights) |
- pretty much speaks directly to the problem.
Steve |
|
Back to top |
|
 |
Srinivasan |
Posted: Thu May 04, 2006 8:25 pm Post subject: |
|
|
Apprentice
Joined: 12 Jul 2005 Posts: 41 Location: Chennai
|
... however I would be very surprised if using a queue name of less than 48 characters would return a 2035?? If it did, it would most certainly be a bug.
- Steve
I never said that 2035 occurs becuase of the length of the string.
What Nik has done is, he tried to use the sample program as a module for sending messages to MQ. After creating the prorgam and then he tried to put messages into a queue, now he encountered the error.
I asked him not to use that sample program as a module, have that as the main program and call it from command line and check. while calling from command line he has to take care of parameter lengths otherwise it will accept and will not send any message
Vennela for your question: the version we are using is 5.2. _________________ Srinivasan for MQ discussion |
|
Back to top |
|
 |
Toronto_MQ |
Posted: Fri May 05, 2006 8:15 am Post subject: |
|
|
 Master
Joined: 10 Jul 2002 Posts: 263 Location: read my name
|
Sorry Srinivasan, I misread your response...
I guess we can all agree that nik has a security issue here.
Steve |
|
Back to top |
|
 |
|