LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (February 2003, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
>
=========================================================================
Date:         Fri, 21 Feb 2003 13:59:50 +1100
Reply-To:     Thomas Rick <rthomas@WOOLWORTHS.COM.AU>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Thomas Rick <rthomas@WOOLWORTHS.COM.AU>
Subject:      Re: MVS Concatenate
Content-Type: text/plain

Michel,

This works for me, SAS8.02 on S/390. From the SASLOG,

8 data _null_; 9 a1='Name'; 10 a2='First'; 11 b=a1||a2; 12 put a1= a2= b=; 13 run;

A1=Name A2=First B=NameFirst NOTE: The DATA statement used 0.00 CPU seconds and 11542K.

Not sure what is happening for you. Perhaps if you showed us some code or listing from the log, we may be able to see what is wrong.

Regards, Rick.

> -----Original Message----- > From: Michel Hantar [SMTP:meh1@WORLDNET.ATT.NET] > Sent: Friday, February 21, 2003 12:38 PM > To: SAS-L@LISTSERV.UGA.EDU > Subject: MVS Concatenate > > Hi. > > I have a small problem. > I have two character variables a1 and a2 and I want to put them into one > new > variable b=a1a2 (concatenate) their value. > > Example. > var value > a1=Name > a2=First > b=NameFirst. > > I used b= a1||a2; > > But to my surprise I am getting an error, SAS name not recognized or > expecting an operator depending if I write it like a1 || a2 (with extra > space). How can I concatenate these two variables.Any other function or > hints? > Interestingly enough if I do this on SAS Desktop it works! > Anybody any idea what is the problem? Again this is happening under > MVS/390 > SAS 8.02. platform. > > Thanks, > Mimi. > -- > ------------------------------------------------------------ > Free Web Email & Filter Enhancements. > http://www.freewebemail.com/filtertools/ > ------------------------------------------------------------ **********************************************************************


Back to: Top of message | Previous page | Main SAS-L page