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

concatenate Constant and Variable in REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ruodeer

New User


Joined: 06 Jul 2007
Posts: 58
Location: home

PostPosted: Fri Nov 02, 2007 7:46 am
Reply with quote

Hi all, I have a requirement as following:

Var1,Var2 is a Variable here,
if Var1=xx.yy.z I want Var2 to be "' xx.yy.z'" ,how to CODE FOR Var2?
is there some code like Var2="' +Var1 +'"....

Could any friends here help me out ?Many thanks!~
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Fri Nov 02, 2007 8:13 am
Reply with quote

Ruodeer,

May be this is what you want -

Code:
var1 = xx.yy.z       
var2 = "'"var1"'"   
say var2             


OP:

Code:
'XX.YY.Z'
***       
Back to top
View user's profile Send private message
ruodeer

New User


Joined: 06 Jul 2007
Posts: 58
Location: home

PostPosted: Fri Nov 02, 2007 8:40 am
Reply with quote

Hi murmohk1, thanks for your kindly reply .
that was what I wanted...
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
Search our Forums:

Back to Top