How do you continue an if statement in jcl if it takes up more than one line?  I have an if statement in the jcl that is enclosed by parenteses and I get a jcl error because the closing is on the next line or several lines down.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

as far as I know continuation is done with a non-blank character in column 72.
I might be wrong though, as my mainframe days ended a long time ago, unfortunately.
ghorathAuthor Commented:
We knew how a normal continuation worked but the if has a leading ( and the next line that is continued has a ) and we get a jcl error.  We need this as one statement because it sends one email based if one of 4 conditions is met.  Thus the need for a longer if line.
This is what I found in the MVS JCL Reference -
Continuing a Relational Expression
You can continue relational-expressions on the next JCL statement. Break the
relational-expression where a blank is valid on the current statement, and continue
the expression beginning in column 4 through 16 of the next statement. Do not put
comments on the statement that you are continuing. You can code comments after
you have completed the statement. For example (see attachment).

//TESTCON IF (RC = 8 | RC = 1) | RC = 12 |
//            RC = 14) THEN  COMMENTS OK HERE
              .  action when relational-expression is true

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

ghorathAuthor Commented:
I will try it and get back to you.  Thanks.
ghorathAuthor Commented:
No exactly what we were looking for but it works and if it works that is good enough.  Thanks for the help.
>> No exactly what we were looking for  <<
How that? How else should one have understood your question?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.