IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Include member problem


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
atanwc

New User


Joined: 26 Jul 2006
Posts: 24

PostPosted: Wed May 30, 2007 8:31 pm
Reply with quote

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
View user's profile Send private message
atanwc

New User


Joined: 26 Jul 2006
Posts: 24

PostPosted: Wed May 30, 2007 11:06 pm
Reply with quote

I may say how to pass APOSTROPHE from include member into proc.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1356
Location: Israel

PostPosted: Tue Jun 12, 2007 2:48 pm
Reply with quote

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
View user's profile Send private message
atanwc

New User


Joined: 26 Jul 2006
Posts: 24

PostPosted: Fri Jul 06, 2007 7:10 am
Reply with quote

Thanks! I got it!
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare the member of two pds on las... DFSORT/ICETOOL 13
No new posts creat new line command in front of Me... TSO/ISPF 4
No new posts Problem moving a cobol program into E... COBOL Programming 3
No new posts PDS member list with stats JCL & VSAM 6
No new posts ISRDSLST(3.4) Do not include addition... TSO/ISPF 0
Search our Forums:


Back to Top