View previous topic :: View next topic
|
Author |
Message |
mrgnndhmk
New User
Joined: 01 Feb 2006 Posts: 51 Location: India
|
|
|
|
Hi All,
My parameter "PARAMA" would contain a string value during some runs of JCL.
I have to skip steps if the parameter value is space.
I am trying to execute
IF &PARAMA NE ''
GOTO STEP005
But NE is not accepted by JCL.
Can anybody help?
Thanks in advance.
Regards,
Muruganandham k |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
deleted -- I type to slow. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
I have experimented with the following but, it's an undocumented "feature" which could be fixed by IBM at anytime -
Code: |
//VARS SET VALUE1=1,VALUE2=0
// IF &VALUE1=&VALUE2
|
What happens is VALUE1 resolves as 1 and VALUE2 resolves as 0 and in this example, the IF check would be false.
Otherwise, I can't resolve what you want to do because I've only experimented with numbers and equal-to conditions and I don't believe GOTO's are valid either.
Bill |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
You could create a new "first step" that looks at the parm and sets the Return Code accordingly.
Then the remainder of the job simply uses the RC that was set. . . |
|
Back to top |
|
|
mrgnndhmk
New User
Joined: 01 Feb 2006 Posts: 51 Location: India
|
|
|
|
Thanks for the suggestions.
In my shop, I can use the following
|IF &ECHECK EQ ''
<JCL STEPS>
|ENDIF
But I have to set ECHECK before the job card
|SET &ECHECK=&&PARAMA
where &&PARAMA is a Scheduler variable.
Now I am able to achieve what I wanted, though not using NE condition. |
|
Back to top |
|
|
|