|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQ Startup on AS/400 |
« View previous topic :: View next topic » |
Author |
Message
|
krismurali |
Posted: Thu Apr 17, 2003 6:39 am Post subject: MQ Startup on AS/400 |
|
|
 Newbie
Joined: 04 Feb 2002 Posts: 5
|
Are there any Startup Scripts for Starting the MQ series automatically on System Reboots on AS/400 - similar to the UNIX rc start/stop scripts ?
Any suggestions / where to find any AS/400 manuals etc. will be helpul -
Thanks
Kris |
|
Back to top |
|
 |
vennela |
Posted: Thu Apr 17, 2003 7:33 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
|
Back to top |
|
 |
MichaelR |
Posted: Mon Apr 21, 2003 5:28 am Post subject: MQ "autostart" for AS/400..... |
|
|
Apprentice
Joined: 20 May 2002 Posts: 37 Location: Tampa
|
MQSeries for AS/400 start scripts should probably resemble the following:
********************************************************
PGM (&QMGR &PORT)
DCL &QMGR *CHAR 48
DCL &PORT *DEC (5 0)
DCL &HANDLE *CHAR 12
ADDLIBLE QMQM *LAST
MONMSG CPF0000
STRSBS QMQM/QMQM
MONMSG CPF0000
CALL QSYGETPH PARM('QMQM' '*NOPWD' &HANDLE)
CALL QWTSETP PARM(&HANDLE)
/* Start MQ Series Manager */
STRMQM MQMNAME(&QMGR)
MONMSG CPF0000
/* Start MQ Listener Process */
STRMQMLSR PORT(&PORT) MQMNAME(&QMGR)
MONMSG CPF0000
/* Start MQ Channel Initiator */
STRMQMCHLI QNAME(SYSTEM.CHANNEL.INITQ) MQMNAME(&QMGR)
MONMSG CPF0000
/* Start MQSeries Command Server */
STRMQMCSVR MQMNAME(&QMGR)
MONMSG CPF0000
CALL QSYRLSPH PARM(&HANDLE)
ENDPGM
*************************************************** The above code is encapsuslated in a simple CL program that can be called in the program specified to execute at each IPL. Look at the AS/400 system value QSTRUP to determine which progrma is called.
Important note:
The calls to QSYGETPH and QWTSETP are done to insure "process" executes at the MQM permission level. This is necessary because of MQ 5.x for AS/400 security restrictions. If your QSTRUP program executes with *ALLOBJ or QSECOFr, it may still NOT have sufficient priviledges.
Lastly, the call to QSYRLSPH simpy releases releases User Id QMQM from the current invocation.
Hope this helps...
MichaelR
P.S.
You might also consider a similar component for "ending"a QMgr. |
|
Back to top |
|
 |
krismurali |
Posted: Mon Apr 21, 2003 9:33 am Post subject: MQ Startup on AS/400 |
|
|
 Newbie
Joined: 04 Feb 2002 Posts: 5
|
Thanks very much - Will try this.
Have to work with AS/400 System. Progs. as am totally new to AS 400.
Thanks
Kris _________________ Cheers,
Q Man
MQ, MQ workflow Certified soln,. expert |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|