|
View previous topic :: View next topic
|
| Author |
Message |
atanwc
New User
Joined: 26 Jul 2006 Posts: 24
|
|
|
|
My jcl tries to use include member ABC to resolve &ABC
JCL
// include member = ABC
//ABC EXEC ABC,
// PRTOUT=&ABC
Include Member
//SET ABC='(,),OUTPUT=(*.OUT1,*.OUT2),COPIES=1'
Proc ABC
// ABC=&ABC
The problem is ABC in proc is = (,),OUTPUT=(*.OUT1,*.OUT2),COPIES=1
which missing the quota sign '(,),OUTPUT=(*.OUT1,*.OUT2),COPIES=1' . That cause JCL problem.
I need some help to put the quotation mark into the proc.
Thanks! |
|
| Back to top |
|
 |
atanwc
New User
Joined: 26 Jul 2006 Posts: 24
|
|
|
|
| I may say how to pass APOSTROPHE from include member into proc. |
|
| Back to top |
|
 |
Marso
REXX Moderator

Joined: 13 Mar 2006 Posts: 1356 Location: Israel
|
|
|
|
The fact that you use "ABC" both in the JCL and in the PROC is a bit confusing.
it is possible by using pairs of quotes:
in the include, use:
| Code: |
| // SET XYZ='''''''(,),OUTPUT=(*.OUT1,*.OUT2),COPIES=1''''''' |
The external quotes are the delimiters for the variable, each pair or quotes inside the variable represent one quote only:
| Code: |
//STP1 EXEC MYTEST,ABC=&XYZ
IEFC653I SUBSTITUTION JCL - MYTEST,ABC='''(,),OUTPUT=(*.OUT1,*.OUT2),COPIES=1''' |
Now, parameter ABC contains one quote, the string and one last quote.
within the PROC, it will be resolved:
| Code: |
++TEST DD PARM1=&ABC
IEFC653I SUBSTITUTION JCL - PARM1='(,),OUTPUT=(*.OUT1,*.OUT2),COPIES=1' |
That should do the trick!!! |
|
| Back to top |
|
 |
atanwc
New User
Joined: 26 Jul 2006 Posts: 24
|
|
|
|
| Thanks! I got it! |
|
| Back to top |
|
 |
|
|
 |
All times are GMT + 6 Hours |
|