IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

TSO batch error


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
wanderer

Active User


Joined: 05 Feb 2007
Posts: 199
Location: Sri Lanka

PostPosted: Sat Nov 17, 2007 1:20 am
Reply with quote

Hi,

I am executing a set of TSO commands in batch, using IKJEFT01. The step gives an RC > 0 only when the last command in the set gives error. If there is an error in a command that is in the middle, the step ends with RC = 0 because the last command ran OK.

Is there any way to have the IKJEFT01 step end with RC > 0 when any of the set of commands error out?

Hope it makes sense.
Thanks!
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Sat Nov 17, 2007 1:45 am
Reply with quote

I'm looking at the different options for running a TMP (Terminal Monitor Program) in batch:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IKJ4B480/APPENDIX1.1.1?SHELF=&DT=20070509043357&CASE=

Maybe one of the three options is better suited for your needs?
Back to top
View user's profile Send private message
wanderer

Active User


Joined: 05 Feb 2007
Posts: 199
Location: Sri Lanka

PostPosted: Sat Nov 17, 2007 5:22 am
Reply with quote

Thanks Superk. That was informative.

I also found a WHEN clause,
e.g.

command1
WHEN SYSRC(= 0) command2
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
Search our Forums:

Back to Top