View previous topic :: View next topic
|
Author |
Message |
hemanth.nandas
Active User
Joined: 18 Aug 2007 Posts: 120 Location: India
|
|
|
|
Hi Murali,
Quote: |
Why do you think so? |
Murali read my full post.
Quote: |
If yes, What ever I had given are the only chances to code COND parameter (As I know). |
This is what I had stated. What knew that I had posted thats all.
Hi Swapnadeep,
Quote: |
When I am giving the COND statement in STEP04 as COND=(0,EQ,STEPSAS), the job is giving a warning as "STEPSAS not found in JOB". But after submitting, the job gets abended... |
What did you meant with this. Is your requirement fulfilled or what? |
|
Back to top |
|
|
swapnadeep.ganguly
Active User
Joined: 21 Mar 2007 Posts: 203 Location: India
|
|
|
|
Requirement is not fulfilled. I want the job not to abend due to this reason. The job is abending with a JCL Error |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Swapnadeep,
Nested proc has only one step. So code COND parameter for abort step as -
Code: |
COND=(0,GE,STEPSAS.SAS) |
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Is this now working?
If not, the requirement and the current jcl should be posted here - there is far too much unproductive "stuff" at this point in the 25+ posts to this topic. |
|
Back to top |
|
|
swapnadeep.ganguly
Active User
Joined: 21 Mar 2007 Posts: 203 Location: India
|
|
|
|
Hi all,
I tried your suggestions but they did not work.
However I worked out a new solution which worked. I am posting the solution which was able to sort out my issue:
Code: |
// IF (RC GT 0) THEN
//STEP04 EXEC PGM=ABORT2
//UCC11NR DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//CEEDUMP DD SYSOUT=*
//SYSUDUMP DD SYSOUT=D
// ENDIF
|
Thank you everyone who suggested me so many methods to solve my problem. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Thank you for posting your solution |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
the original post stated :-
"As per the COND parameter in STEP04, the step04 is to get executed if any of the above steps return a code not equal to zero. "
So only testing for the return code of STEP03.SAS will not be sufficient if STEP01 or STEP02 fails and STEP03.SAS works.
STEP04 should be testing all STEPS.
I'd be more inclined to use the ** The IF/THEN/ELSE/ENDIF Statement **
as below. see code
Gerry
Code: |
//CHECK IF ((STEP01.RUN)
// & (STEP01.RC > 00))
// OR ((STEP02.RUN)
// & (STEP02.RC > 00))
// OR ((STEP03.SAS.RUN)
// & (STEP03.SAS.RC > 00)) THEN
//*
//STEP04 EXEC PGM=IEFBR14
//*
//*-------------------------------------------------------------
//CHECK ENDIF |
|
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Gerry,
Why do you need so many conditions. You could use a simple IF condition, like (the one whihc Swapnadeep also used)-
|
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi Murali,
yes, I agree your way is much simpler.
I'm a little confused, which is the one Swapnadeep used ? thanks
Gerry |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Gerry,
Quote: |
I'm a little confused, which is the one Swapnadeep used ? |
Its the last post in 2 page. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi Murali,
I must be missing something, but I don't see where the if statement was used.
Gerry |
|
Back to top |
|
|
swapnadeep.ganguly
Active User
Joined: 21 Mar 2007 Posts: 203 Location: India
|
|
|
|
Gerry,
The if statement was used in my last post where i provided the solution.
Quote: |
// IF (RC GT 0) THEN |
I hope now you have got your reply. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
yes, it helps if I read all 3 pages. Sorry for being a nuisance.
Gerry |
|
Back to top |
|
|
swapnadeep.ganguly
Active User
Joined: 21 Mar 2007 Posts: 203 Location: India
|
|
|
|
Its ok... |
|
Back to top |
|
|
|