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

Cond Parameter Error


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
swapnadeep.ganguly

Active User


Joined: 21 Mar 2007
Posts: 203
Location: India

PostPosted: Thu Nov 01, 2007 3:06 pm
Reply with quote

Hi Hemant,

It states: INVALID PARAMETER ON EXEC STATEMENT
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Nov 01, 2007 3:10 pm
Reply with quote

Swapnadeep,

It should be

cond=(0,EQ,STEPSAS.xxxxxxx)
Back to top
View user's profile Send private message
hemanth.nandas

Active User


Joined: 18 Aug 2007
Posts: 120
Location: India

PostPosted: Thu Nov 01, 2007 3:11 pm
Reply with quote

Hi Swapnadeep,

Is it executing all prior steps?

If yes, What ever I had given are the only chances to code COND parameter (As I know). You better to contact your Admin.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Nov 01, 2007 3:22 pm
Reply with quote

Hemanth,


Quote:
I had given are the only chances to code COND parameter


Why do you think so?

Swapnadeep,

If you are referring somestep in the sas proc, use the cond provided above. replace xxxxxx with the stepname.

If this is not you requirement, post your req clearly.
Back to top
View user's profile Send private message
swapnadeep.ganguly

Active User


Joined: 21 Mar 2007
Posts: 203
Location: India

PostPosted: Thu Nov 01, 2007 3:26 pm
Reply with quote

According to my requirement,

The Abort step(STEP04) is to be executed only if there is a return code not equal to 0 from the SAS step (STEPSAS).

All these steps are within the Proc which I am calling from the job.

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...
Back to top
View user's profile Send private message
hemanth.nandas

Active User


Joined: 18 Aug 2007
Posts: 120
Location: India

PostPosted: Thu Nov 01, 2007 3:36 pm
Reply with quote

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
View user's profile Send private message
swapnadeep.ganguly

Active User


Joined: 21 Mar 2007
Posts: 203
Location: India

PostPosted: Thu Nov 01, 2007 3:58 pm
Reply with quote

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
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Nov 01, 2007 5:31 pm
Reply with quote

Swapnadeep,

Nested proc has only one step. So code COND parameter for abort step as -

Code:
COND=(0,GE,STEPSAS.SAS)   
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Thu Nov 01, 2007 9:05 pm
Reply with quote

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
View user's profile Send private message
swapnadeep.ganguly

Active User


Joined: 21 Mar 2007
Posts: 203
Location: India

PostPosted: Fri Nov 02, 2007 10:03 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Fri Nov 02, 2007 9:24 pm
Reply with quote

Thank you for posting your solution icon_smile.gif
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Mon Nov 05, 2007 5:36 am
Reply with quote

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
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Mon Nov 05, 2007 9:04 am
Reply with quote

Gerry,

Why do you need so many conditions. You could use a simple IF condition, like (the one whihc Swapnadeep also used)-

Code:
IF (RC GT 0) THEN       
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Mon Nov 05, 2007 10:11 am
Reply with quote

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
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Mon Nov 05, 2007 10:51 am
Reply with quote

Gerry,

Quote:
I'm a little confused, which is the one Swapnadeep used ?

Its the last post in 2 page.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Mon Nov 05, 2007 11:02 am
Reply with quote

Hi Murali,
I must be missing something, but I don't see where the if statement was used.


Gerry
Back to top
View user's profile Send private message
swapnadeep.ganguly

Active User


Joined: 21 Mar 2007
Posts: 203
Location: India

PostPosted: Tue Nov 06, 2007 9:08 am
Reply with quote

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
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Tue Nov 06, 2007 11:33 am
Reply with quote

yes, it helps if I read all 3 pages. Sorry for being a nuisance.

Gerry
Back to top
View user's profile Send private message
swapnadeep.ganguly

Active User


Joined: 21 Mar 2007
Posts: 203
Location: India

PostPosted: Tue Nov 06, 2007 11:43 am
Reply with quote

Its ok...
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 -> JCL & VSAM Goto page 1, 2  Next

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
Search our Forums:

Back to Top