Prev: Announce: Roland's SAS Macros website to be reorganised
Next: Help needed regarding the urgent task.
From: laika on 25 May 2010 09:57 Hi, I have the following LET statement : %LET test = %SYSFUNC(CATX(%STR(), inputfile,12)) ; %put &test ; the result is inputfile12 and this is correct. When i use %LET test = %SYSFUNC(CATX(%STR(), inputfile,04)) ; %put &test ; then i get inputfile4, but i want inputfile04. How can i solve this? Tx
From: Tom Abernathy on 26 May 2010 10:58 Why not just get rid of the call to CATX? %let test=04; I assume you want to concatenate some strings. That is easy in macro code. %let name=fred; %let suffix=04; %let newname=&fred.&suffix; On May 25, 9:57 am, laika <michel.verhe...(a)axa.be> wrote: > Hi, > > I have the following LET statement : > > %LET test = %SYSFUNC(CATX(%STR(), inputfile,12)) ; > %put &test ; > > the result is inputfile12 and this is correct. > > When i use > > %LET test = %SYSFUNC(CATX(%STR(), inputfile,04)) ; > %put &test ; > > then i get inputfile4, but i want inputfile04. > > How can i solve this? > > Tx
From: Reeza on 26 May 2010 14:20
On May 25, 6:57 am, laika <michel.verhe...(a)axa.be> wrote: > Hi, > > I have the following LET statement : > > %LET test = %SYSFUNC(CATX(%STR(), inputfile,12)) ; > %put &test ; > > the result is inputfile12 and this is correct. > > When i use > > %LET test = %SYSFUNC(CATX(%STR(), inputfile,04)) ; > %put &test ; > > then i get inputfile4, but i want inputfile04. > > How can i solve this? > > Tx Look at Z formats. |