This looks promising.
[pre]
data test;
infile cards dlm=', .;';
input word :$24. @@;
length L3 $3;
L3= substrN(word,length(word)-2);
cards4;
Hi,
I need to get last 3 bytes in a variable length variable, irrespective of what ever total length that variable is.
thanks,
sasbase
;;;;
run;
proc contents;
run;
proc print;
run;
[/pre]