ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General Discussion » Running AMQ3PUT4 Program

Post new topic  Reply to topic
 Running AMQ3PUT4 Program « View previous topic :: View next topic » 
Author Message
nik_iway
PostPosted: Mon Apr 24, 2006 9:05 pm    Post subject: Running AMQ3PUT4 Program Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Tue Apr 25, 2006 3:18 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Toronto_MQ
PostPosted: Tue Apr 25, 2006 9:45 am    Post subject: Reply with quote

Master

Joined: 10 Jul 2002
Posts: 263
Location: read my name

Or, in your case, GRTMQMAUT.

Steve
Back to top
View user's profile Send private message
Srinivasan
PostPosted: Tue May 02, 2006 9:05 pm    Post subject: Running AMQ3PUT4 Program Reply with quote

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
View user's profile Send private message Yahoo Messenger
vennela
PostPosted: Wed May 03, 2006 10:07 am    Post subject: Re: Running AMQ3PUT4 Program Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Srinivasan
PostPosted: Wed May 03, 2006 10:05 pm    Post subject: Re: Running AMQ3PUT4 Program Reply with quote

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
View user's profile Send private message Yahoo Messenger
vennela
PostPosted: Thu May 04, 2006 4:36 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

What version of MQ and what version of OS?
I think I used it a while back maybe 3 years back with MQ 5.3 on iSeries V5R2 and I didn't have a problem.
If that is the case, then you can open a PMR.
http://www.mqseries.net/phpBB2/viewtopic.php?t=13586&highlight=qmqmsamp
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Toronto_MQ
PostPosted: Thu May 04, 2006 4:38 am    Post subject: Re: Running AMQ3PUT4 Program Reply with quote

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
View user's profile Send private message
Srinivasan
PostPosted: Thu May 04, 2006 8:25 pm    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
Toronto_MQ
PostPosted: Fri May 05, 2006 8:15 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » Running AMQ3PUT4 Program
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.