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 » IBM MQ Installation/Configuration Support » MQ Startup on AS/400

Post new topic  Reply to topic
 MQ Startup on AS/400 « View previous topic :: View next topic » 
Author Message
krismurali
PostPosted: Thu Apr 17, 2003 6:39 am    Post subject: MQ Startup on AS/400 Reply with quote

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
View user's profile Send private message
vennela
PostPosted: Thu Apr 17, 2003 7:33 am    Post subject: Reply with quote

Jedi Knight

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

There is definitely a way to place startup scripts in AS/400. But I don't know how. Our AS/400 admin put in a script.

If you are looking for AS/400 MQ manuals then you should go to

http://www-3.ibm.com/software/ts/mqseries/library/manualsa/

If you are looking for all AS/400 manuals then go to

http://publib.boulder.ibm.com/pubs/html/as400/infocenter.html

Hope this helps.

-------
Venny
Back to top
View user's profile Send private message Send e-mail Visit poster's website
MichaelR
PostPosted: Mon Apr 21, 2003 5:28 am    Post subject: MQ "autostart" for AS/400..... Reply with quote

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
View user's profile Send private message
krismurali
PostPosted: Mon Apr 21, 2003 9:33 am    Post subject: MQ Startup on AS/400 Reply with quote

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
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 » IBM MQ Installation/Configuration Support » MQ Startup on AS/400
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.