|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
z/OS using CSQUTIL in JCL |
« View previous topic :: View next topic » |
Author |
Message
|
EgilsJ.Rubenis |
Posted: Thu Sep 16, 2004 1:18 am Post subject: z/OS using CSQUTIL in JCL |
|
|
Acolyte
Joined: 18 Nov 2002 Posts: 63 Location: Germany, Alfeld
|
Hi,
i have a problem receiving a return code from CSQUTIL. For example
defining a Queue with Replace ends up with :
DEFINE REPLACE QLOCAL
('DSP2MQI.BAT.CRMXML.REQ')
PUT(DISABLED)
CSQN205I COUNT= 5, RETURN=0000000C, REASON=00000008
CSQM115I +CSQ1 CSQMAQLC QLOCAL(DSP2MQI.BAT.CRMXML.REQ) IS CURRENTLY IN USE, ALTER WITH FORCE EEDED
CSQM090E +CSQ1 CSQMAQLC FAILURE REASON CODE '00D44005'
CSQ9023E +CSQ1 CSQMAQLC ' DEFINE QLOCAL' ABNORMAL COMPLETION
The message is OK. But CSQUTIL is returning RC=0.
CSQU148I CSQUTIL Utility completed, return code=0
I want to flush the next step in JCL if the previous hasn't been successfull.
Any idea how to achieve this ? I know that i can change the Queue with ALTER and it works. But that's not the point. The point is how to get the exact information from CSQUTIL within JCL.
thanks
cheers Egils |
|
Back to top |
|
 |
vincezzfr |
Posted: Mon Sep 20, 2004 5:17 am Post subject: |
|
|
Newbie
Joined: 15 Sep 2004 Posts: 1
|
Hello
You can analyse the return code and message returned by the CSQUTIL step with a REXX or clist program ...then run or not the next step of your JCL by exiting the rexx STEP with a RC other than 0
Bye |
|
Back to top |
|
 |
frankdk |
Posted: Thu Sep 23, 2004 11:47 am Post subject: |
|
|
 Novice
Joined: 10 Jun 2004 Posts: 20 Location: Copenhagen, Denmark
|
Hi
In the SYSIN file you should use the FAILURE(..) parm. This will enable you to ignore(which is default) errors, cotinue command processing on errors or end CSQUTIL on errors. _________________ Regards,
Frank |
|
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
|
|
|
|