Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Include member problem

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Include member problem
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    Post subject: Re: Include member problem
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: 1252
Location: Israel

PostPosted: Tue Jun 12, 2007 2:48 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Having a problem FTP'ng to the MF pahiker All Other Mainframe Topics 2 Fri Nov 10, 2017 8:20 pm
No new posts LMINIT problem - not finding DDNAME Danielle.Filteau CLIST & REXX 7 Tue Sep 19, 2017 9:57 pm
No new posts More than 1 Include criteria for sing... Roy Ware SYNCSORT 6 Wed Sep 13, 2017 11:45 pm
No new posts Problem commiting to DB2 from IMS MPP Ole Soerensen IMS DB/DC 2 Wed Jul 26, 2017 5:19 pm
No new posts Include/omit with "ALL" pa... mgl DFSORT/ICETOOL 6 Wed Jun 14, 2017 2:31 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us