Date: Fri, 23 Feb 2001 17:17:40 +0100
Reply-To: Peter Crawford <peter.crawford@DB.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Peter Crawford <peter.crawford@DB.COM>
Subject: Re: PROBLEM WITH CONCATENATION
Content-type: text/plain; charset=iso-8859-1
use a trim() on program ...I think it is getting a default length of $200 !
That leaves no room in LIB for any suffix like "\simc"
try lib="&home"||trim(program)||"\simc"
Datum: 23/02/2001 15:44
An: SAS-L@listserv.uga.edu
Antwort an: nicolas.pont@unicible.ch
Betreff: PROBLEM WITH CONCATENATION
Nachrichtentext:
Hello,
I dont understand
WY I THE VAR LIB DOESN'T CONTAIN THE STRING "simc"
but only c:\test and contain of the variable program
data _null_ ;
length lib $100 ;
rc=filename('dir',"c:\test");
dirid=dopen('dir');
numsel=dnum(dirid);
program=compress(dread(dirid,i));
do i=1 to numsel;
program=compress(dread(dirid,i));
if program Ne '.' and program Ne '..' then do ;
/* WY I THE VAR LIB DOESN'T CONTAIN THE STRING "simc" */
/*****************************************************************************/
lib="&home"||program||"simc" ;
put lib=;
end ;
end ;
rc=dclose(dirid);
run;
Thanks for any help
_________________________
Nicolas Pont
Unicible
tel: +41 (0)27/327 4208
fax: +41 (0)27/327 4255
mailto:nicolas.pont@unicible.ch
--
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.