| Date: | Wed, 24 Jan 2007 16:43:53 -0500 |
| Reply-To: | "data _null_;" <datanull@GMAIL.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | "data _null_;" <datanull@GMAIL.COM> |
| Subject: | Re: Macro Variable Problem (or should I say, coder problem) |
|
| In-Reply-To: | <BAY123-F30E9F5199699D7AE11A605DEAC0@phx.gbl> |
| Content-Type: | text/plain; charset=ISO-8859-1; format=flowed |
Along similar lines. I often use formats/informats for this type of
problem. It would be helpful if Mark described the "big picture" so
we could better understand exactly what he is trying to accomplish. I
expect it is more involved than the example he presented.
data work.control;
retain fmtname 'nm2age' type 'I' hlo 'UJ';
set sashelp.class(keep=name age);
start = upcase(name);
label = age;
run;
proc format cntlin=work.control;
run;
%put NOTE: John%str(%')s age is: %sysfunc(inputN(john,nm2age10.));
|