That works.  In fact you can also do a partial substitution using a variable.

Lloyd



----- Original Message ----
From: "Hardee, Chuck" <[email protected]>
To: [email protected]
Sent: Wed, March 7, 2012 3:16:05 PM
Subject: Re: Tips for continuing DD statement with only one parameter field

I don't know if it will work, but try SETting your path to a variable and then 
use that variable in the PATH= parameter:

// SET MYPATH='long/path/name'
//MYDDNAME DD PATH='&MYPATH'

C-

Charles (Chuck) Hardee
Senior Systems Engineer
Database Administration
Information Technology Services
Thermo Fisher Scientific
300 Industry Drive
Pittsburgh, PA 15275
724-517-2633 (Office)
[email protected]

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of 
Charles Mills
Sent: Wednesday, March 07, 2012 3:09 PM
To: [email protected]
Subject: Tips for continuing DD statement with only one parameter field

I've got several DD statements in a proc that have only a single parameter,
PATH='long/path/name'

Because the path is long the statement will not fit on a single card image
(but the PATH parameter by itself will). So I coded 

//MYDDNAME  DD
//  PATH='long/path/name'

No good. It turns out the JCL Reference means what it says when it says you
can break a JCL statement *after* any parameter (but not, apparently, before
any parameter!).

Putting an X in column 72 does not help. Putting a solo comma somewhere
after DD does not help. The JCL reference does not provide any guidance that
I could find. Google does not seem to know how to do this.

I'm sure I could wrestle with the rules for continuing quoted parameters,
but that makes an obscure, difficult to maintain mess IMHO.

Do any of you more experienced JCL jockeys know a simple trick for getting
around this problem? Is there some DD parameter that I should code as a
"no-op" on the first line?

Thanks all.

Charles 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to