It would be nice to have a CAT_() type function that uses the format applied to the variables rather than Best for numeric variables.
For example, I would have preferred if the WANT_STRING was the same as the output from the HAVE_STRING code, since a format is applied to the variables already.
format date1-date20 date9.;
format datec1-datec20 $9.;
length datec1-datec20 $9. x_string y_string $256.;
array _date(*) date1-date20;
array _datec(*) $ datec1-datec20;
do i=1 to dim(_date);
have_string=catx(", ", of _date(*));
want_string=catx(", ", of _datec(*));
proc print ;
Yes! Call them CATXF, CATSF, CATQF, CATTF. "F" for formatted.
Of course as soon as you have one of these functions you find out that you don't want your current default format but actually want to use another one but NOT change the default for the variable(s) [which would be easy]...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.