Author |
Message
|
WannaBeInAParker |
Posted: Thu Jul 07, 2005 9:39 am Post subject: MS03 V6.0.0 on OpenVMS |
|
|
Voyager
Joined: 09 Dec 2003 Posts: 81
|
We have MQSeries 5.3 CSD07 Queue Managers on OpenVMS 7.3.2. We have compiled the MS03 support pac on the system. When we run the saveqmgr.exe, we get the following results with no SAVEQMGR.TST file created:
FALCON> sq -m "JACKQ1"
SAVEQMGR V6.0.0
Compiled for Websphere MQ V5.3 on Jul 7 2005
Requesting attributes of the queue manager...
Requesting attributes of all queues...
Requesting attributes of all channels...
Requesting attributes of all processes...
When looking into this further we see that 4 messages end up on the DLQ. The first reason 2052 MQRC_Q_DELETED, like someone closed the dynamic queue prematurely and then three subsequent 2085 Uknown Object errors.
We have not altered the code in any way, we just downloaded and compiled the source.
Has anyone run into this yet?
Any help is appreciated
WannaBe _________________ -WannaBe- |
|
Back to top |
|
 |
harwinderr |
Posted: Thu Jul 07, 2005 10:57 pm Post subject: |
|
|
 Voyager
Joined: 29 Jan 2002 Posts: 90
|
You need to slighlty modify the code to run ms03 on VMS.
Change the saveqmgr.h header file (line number 744 and 745).
Modify the values of OK and WARNING to be as same as other platforms.
i.e.
#define WARNING 1
#define OK 0
Compile again and re-run. |
|
Back to top |
|
 |
WannaBeInAParker |
Posted: Fri Jul 08, 2005 4:51 am Post subject: |
|
|
Voyager
Joined: 09 Dec 2003 Posts: 81
|
harwinderr,
That was it! Thanks for the help, I would have never found that. Did I miss some instructions or was it a bug in the release.
Thanks again! _________________ -WannaBe- |
|
Back to top |
|
 |
harwinderr |
Posted: Fri Jul 08, 2005 9:20 pm Post subject: |
|
|
 Voyager
Joined: 29 Jan 2002 Posts: 90
|
I don't think it was a bug. Guess it was just released without porting to OVMS. |
|
Back to top |
|
 |
wschutz |
Posted: Mon Jul 11, 2005 6:22 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Quote: |
You need to slighlty modify the code to run ms03 on VMS.
Change the saveqmgr.h header file (line number 744 and 745).
Modify the values of OK and WARNING to be as same as other platforms.
i.e.
#define WARNING 1
#define OK 0
Compile again and re-run. |
Interesting, so for OpenVMS, the return codes should be the same as other platforms? So should the test for OpenVMS on line 743 be removed? (That test has been in there since at least v521 of the s/p). _________________ -wayne |
|
Back to top |
|
 |
harwinderr |
Posted: Mon Jul 11, 2005 8:13 am Post subject: |
|
|
 Voyager
Joined: 29 Jan 2002 Posts: 90
|
In the previous versions of the s/p, I did not see the return codes from MQ calls compared to OK and WARNING macros. That could explain the s/p working on VMS at that level.
In V6.0 of the s/p, the return codes are being compared with macros. So, obviously the call will fail (see line number 1221 in saveqmgr.c).
I am not sure why the test for OVMS in saveqmgr.h was put at the first place. But the return codes are same for both VMS and UNIX and this test can be avoided. |
|
Back to top |
|
 |
wschutz |
Posted: Mon Jul 11, 2005 8:26 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
I see. The reason the test was put in there is because someone (I forget who) told me that the standard for VMS programs (ie modules) is to return a 1 if all is okay and a 0 for a warning condition. This allowed them to test in a script that called saveqmgr the return code to see if all went well.
I assume this is still the std for VMS. It looks like I overloaded the use of "OK" and "WARNING". _________________ -wayne |
|
Back to top |
|
 |
|