Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Force abend a previous step

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
sprikitik

New User


Joined: 29 Jan 2007
Posts: 58
Location: Makati City, Philippines

PostPosted: Fri Feb 08, 2008 7:10 am    Post subject: Force abend a previous step
Reply with quote

Hi,

Does anybody know how to force abend a previous steps who returns a RC of 0?

The scenario is i need to execute a step, but for that step to execute, the previous step should abend.. Please help me!
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Feb 08, 2008 8:19 am    Post subject:
Reply with quote

Hello,

Make up a test job that has 2 steps.

Make the first step abend (one easy way is to create a very small program that issues a divide by zero - which will cause an s0cb abend).

The second step will be the one you want to execute if there was a prior abend. You will want COND= for the second step to be EVEN or ONLY, depending on your requirement.

Keep in mind that no value of rc constitutes an abend - it is merely a return code.

One last thought - you can do nothing to change any prior step - it is done.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Fri Feb 08, 2008 3:22 pm    Post subject:
Reply with quote

Dick has given some good advice.

Also, a search of the forum would have produced the answer NO as this has been discussed many many times.

If a step has ended and has issued a return code, it has been done, how did you think that you could change something that has already happened ?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Fri Feb 08, 2008 4:40 pm    Post subject:
Reply with quote

i am constantly stepping on the brakes of the car behind me.
Back to top
View user's profile Send private message
acevedo

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Fri Feb 08, 2008 4:47 pm    Post subject:
Reply with quote

and I try hard to turn back in time when I say/do something wrong... with no success (by now).

;)
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Restart=Step not working ALAK SAHA JCL & VSAM 6 Fri Jun 30, 2017 6:28 pm
No new posts Need DB2 query to fetch previous row ! Chandan1993 DB2 10 Sat Jun 03, 2017 10:43 am
No new posts C03 ABEND sjiraga PL/I & Assembler 1 Thu Jun 01, 2017 4:51 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us