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 purpose of _character_ and _numeric_?
what is sas enterprise intelligence architecture? : Sas-bi
explain the use of % includes a statement in sas? : Sas-administrator
what are some good sas programming practices for processing very large data sets? : Sas programming
What is maximum number of rows and cols can be handled in SAS?
what has been your most common programming mistake? : Sas programming
Explain how merging helps to combine data sets.
How would you define the end of a macro?
How would you determine the number of missing or nonmissing values in computations?
How to sort in descending order?
What is the maximum length of the macro variable?
Have you ever used the SAS Debugger?
how to remove duplicates using proc sql?
if the Id has more then two transcatiion then show the first observation, IF Id has only two observation then It show both the observation
What are the parameters of scan function?