From: laika on
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
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
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.