Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 1226
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 Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts Browsing member from any PDS shiitiizz CLIST & REXX 7 Wed Mar 08, 2017 1:17 am
No new posts Bind plan as a member to another bind... rexx77 DB2 0 Thu Feb 16, 2017 2:02 am
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm
No new posts SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us