Author |
Message
|
msvpraveen |
Posted: Wed Jul 13, 2005 5:50 pm Post subject: Getting error code 2035 when trying to connect to MQ server |
|
|
Novice
Joined: 07 Jul 2005 Posts: 12
|
Hi,
I have my MQ client installed on windows 2000 machine and my server is on mainframe.I am trying to connect to MQ using sample C++ programs provided with client.The program is getting connected to the queue manager but when trying to open the queue giving an error with reason code 2035.Sample program doesn't set any user id or password.
Praveen |
|
Back to top |
|
 |
wschutz |
Posted: Wed Jul 13, 2005 5:54 pm Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
The windows client picks up the userid that is running the program. This can be overridden by the mcauser setting on the svrconn definition. Is the userid that's running the sample program authorized to open the queue (in racf or acf2 or topsecret)? _________________ -wayne |
|
Back to top |
|
 |
vennela |
Posted: Wed Jul 13, 2005 7:27 pm Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
No double posting please.
I deleted your other post. |
|
Back to top |
|
 |
msvpraveen |
Posted: Thu Jul 14, 2005 4:15 am Post subject: |
|
|
Novice
Joined: 07 Jul 2005 Posts: 12
|
vennela wrote: |
No double posting please.
I deleted your other post. |
Sorry for that I thought I didn't properly post the earlier one.
Coming back to the question,if I set a user id and password in the program which has access to the queue will it work fine.Also can u please elaborate as to what permissions the user should have.Is there a work around for this[/quote] |
|
Back to top |
|
 |
vennela |
Posted: Thu Jul 14, 2005 6:26 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
You will have to give permissions on the server to the user that you are supplying in your program.
CL commands to grant permissions.
Quote: |
Authentication Information Commands
CHGMQMAUTI, Change MQM Authentication Information
CPYMQMAUTI, Copy MQM Authentication Information
DLTMQMAUTI, Delete MQM Authentication Information
CRTMQMAUTI, Create MQM Authentication Information
DSPMQMAUTI, Display MQM Authentication Information
WRKMQMAUTI, Work with MQM Authentication Information |
|
|
Back to top |
|
 |
wschutz |
Posted: Thu Jul 14, 2005 6:37 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
I guess "mainframe" can mean iSeries, but I assumed it was zOS....
When you say:
Quote: |
if I set a user id and password in the program which has access to the queue will it work fine. |
what exactly do you mean?
"Programs" don't have access to queues, userids and groups have access. I assume you mean you're setting the via "setAlternateUserid" on the object (queue) you're trying to open.
Can you give more detail on exactly what you're doing to make it work? _________________ -wayne |
|
Back to top |
|
 |
vennela |
Posted: Thu Jul 14, 2005 6:47 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
wschutz wrote: |
I guess "mainframe" can mean iSeries, but I assumed it was zOS....
|
My bad. I haven't reread the post today. For some reason, I assumed it was iSeries. |
|
Back to top |
|
 |
|