02-15-2012 06:09 PM
I need to add brackets for a list of numerical variables. It seems that the concatenation doesn't work in an ARRAY statement.
This kind of data step doesn' work:
array A(*) cat1-cat&N_cat;
array B(*) &level._se1-&level._se&N_cat;
do j=1 to dim(A);
Because the number of variables to adapt can change, I thought to use an array statement.
Maybe with a proc format ?
Thanks for your help
02-15-2012 06:15 PM
An example dataset would help people to respond, as well as your macro variable assignments.
Also, do the variables &level._se1-&level._se&N_cat
exist or are they new variables that you are trying to create?
02-15-2012 06:28 PM
&level._se1-&level._se&N_cat are new variables.
&N_cat is a number which changes.
input num cat1 cat2 cat3;
1 3.35 5.36 9.25
2 5.32 1.20 1.25
I would like to put cat1 cat2 cat3 between brackets.
Need further help from the community? Please ask a new question.