MVS JCL QUESTION

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.
ghorathAsked:
Who is Participating?
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.

woolmilkporcCommented:
Hi,
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.
wmp
0
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.
0
woolmilkporcCommented:
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

0

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
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

ghorathAuthor Commented:
I will try it and get back to you.  Thanks.
0
ghorathAuthor Commented:
No exactly what we were looking for but it works and if it works that is good enough.  Thanks for the help.
0
woolmilkporcCommented:
>> No exactly what we were looking for  <<
How that? How else should one have understood your question?
0
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
Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.