@sasviyajunior wrote:
Hello. I tested with sashelp.class data In the process. From class last line I want to make this rule YY NN YY NN. Is there a good way? For example, you want to create a new column N YY NN YY NN in the class dataset.
Are N YY NN YY NN supposed to be variable names? Values? If values for how many variables? Of what names? If the values are YY or NN what is the rule in determining which is which.
Here is an example of executing some code only 2 records prior to the end of a given data set using SASHELP.CLASS.
data junk;
set sashelp.class nobs=nn;
if _n_ = nn-2 then do;
var1='YY';
var2= 3;
end;
run;
But I don't see a lot of utility in this approach.
... View more