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
 

 

Question on using the procs

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

New User


Joined: 15 Dec 2008
Posts: 2
Location: Chennai

PostPosted: Mon Dec 15, 2008 11:56 pm    Post subject: Question on using the procs
Reply with quote

Hi,
I have question on using the procs.

Suppose I have jcl with the 2 procs and I don't to execute the 2nd proc, if any of the step in my 1st proc abended.

EX : JCL HAVING 2 PROCs PROC1 & PROC2

PROC 1 having a step1, step2, step3
if the step3 of the proc abended, I dont want to execute the proc.

I would be really happy, if someone post an answer to me.

Thanks
Gopi
Back to top
View user's profile Send private message

superk

Moderator Team Head


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

PostPosted: Tue Dec 16, 2008 12:07 am    Post subject: Reply to: Question on using the procs
Reply with quote

What COND or IF/THEN/ELSE logic have you tried so far? What were the results?
Back to top
View user's profile Send private message
gopiCognznt

New User


Joined: 15 Dec 2008
Posts: 2
Location: Chennai

PostPosted: Tue Dec 16, 2008 12:17 am    Post subject:
Reply with quote

I tried using IF,
//IFSTRT IF (STEP010.RC EQ 0) THEN

the job abended with JCL error in the jscan itself
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: Tue Dec 16, 2008 1:39 am    Post subject:
Reply with quote

Hello,

For us to be able to help, you need to post complete info - not simply post "it didn't work".

Post the complete jcl and the error(s) shown.

When posting use the "Code" tag to preserve alignment and overall make your post more readable.

Make sure to include the message ids as well as the text.
Back to top
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Tue Dec 16, 2008 3:00 am    Post subject: Reply to: Question on using the procs
Reply with quote

First of all, you stated that you need to check for an ABEND condition, not a Return-Code condition. If a program abends, it will never set the Return-Code value, so checking for any value for a Return-Code is pointless. You need to be looking at ABEND type condition parameters.
Back to top
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Tue Dec 16, 2008 3:11 am    Post subject: Reply to: Question on using the procs
Reply with quote

I think the check you want is:

Code:

//STEP0001 EXEC PROC1
//*
// IF (ABEND=FALSE) THEN
//STEP0002 EXEC PROC2
// ENDIF
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: Tue Dec 16, 2008 4:14 am    Post subject:
Reply with quote

Hello,

Please post the requested info. . . .

Quote:
the job abended with JCL error in the jscan itself
An ABEND and a JCL ERROR are completely different situations.

Until you post what has really happened, this is wasting everyone's time.
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 QUESTION: RETURN CHANNEL pahiker CA Products 21 Thu Apr 20, 2017 12:31 am
No new posts The Last Two Question For You To Ask ... CaptBill Mainframe Interview Questions 0 Fri Apr 14, 2017 5:42 am
No new posts Asynchronous CICS Processing Question moezbud CICS 1 Mon Mar 06, 2017 6:13 pm
No new posts CICS Question RE: Browse, Readnext an... moezbud CICS 7 Sun Mar 05, 2017 5:45 am
No new posts Fault Analyzer - listings question. egrove IBM Tools 4 Thu Aug 11, 2016 5:31 pm


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