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 » General IBM MQ Support » z/OS using CSQUTIL in JCL

Post new topic  Reply to topic
 z/OS using CSQUTIL in JCL « View previous topic :: View next topic » 
Author Message
EgilsJ.Rubenis
PostPosted: Thu Sep 16, 2004 1:18 am    Post subject: z/OS using CSQUTIL in JCL Reply with quote

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
View user's profile Send private message Send e-mail
vincezzfr
PostPosted: Mon Sep 20, 2004 5:17 am    Post subject: Reply with quote

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
View user's profile Send private message
frankdk
PostPosted: Thu Sep 23, 2004 11:47 am    Post subject: Reply with quote

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
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 » General IBM MQ Support » z/OS using CSQUTIL in JCL
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.