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: 1353
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
No new posts Searching for a member but don't know... TSO/ISPF 6
No new posts Looking For a PDS Member Without Open... PL/I & Assembler 10
Search our Forums:

Back to Top