Answer Posted / yadi acho
_n_ is auto number drive in SAS...
if use fro data step look like this
data test1;
set test;
test_field=_n_;
run;
diferent if auto number for SQL procedure u can use this
proc sql;
create table test1 as
select *,monotonic() as test_field
from test;
quit;
cheers!!
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is the function of output statement in a SAS Program?
WHAT IS SAS WEB SERVICE and what are the steps to create an xml service ?
is data integration and etl programming is same? : Sas-di
Name some categories in sas 9? : sas-grid-administration
What are the different versions of sas that you have used until now? : sas-grid-administration
Which command is used to save logs in the external file?
what is a method for assigning first.var and last.var to the by groupvariable on unsorted data? : Sas programming
How to create a permanent sas data set?
Differentiate between ceil and floor functions.
what is hash files in sas and why we are using this one in sas?
Tell e how how dealt with..
what is sas business intelligence? : Sas-bi
Tell e how how dealt with..
What is the different between functions and PROCs that calculate the same simple descriptive statistics?
How necessary is it to be creative in your work?