View previous topic :: View next topic
|
Author |
Message |
patlolla
New User
Joined: 05 Jun 2006 Posts: 10
|
|
|
|
Hi,
In my program, I have multiple conditions as below
Code: |
IF wscond1
if wscond2
Perform u780-para thru u780-exit
end-if
end-if. |
I would like to bypass the above perform para which writes the default code in the program. Could you please suggest me how to do..
Thanks
patlolla |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
Set wscond2 to a false value as in:
Code: |
IF wscond1
move (a false value) to wscond2
if wscond2
Perform u780-para thru u780-exit
end-if
end-if. |
|
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
Your post is not at all clear. Under what conditions do you want to bypass the PERFORM? If for all conditions, why not just delete or comment out the 5 lines of code? If for SOME conditions, which conditions -- you'll have to change the IF logic appropriately? |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Reminds me of the posting "LOOK UP". My neck is still hurting....
Bill |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Why not just use a "control-break" after first IF, like:
Code: |
IF WSCOND1
CONTINUE
IF WSCOND2
.
.
. |
|
|
Back to top |
|
|
|