Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is _n_?

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


Please Help Members By Posting Answers For Below Questions

What is the purpose of _character_ and _numeric_?

1025


what is sas enterprise intelligence architecture? : Sas-bi

945


explain the use of % includes a statement in sas? : Sas-administrator

961


what are some good sas programming practices for processing very large data sets? : Sas programming

888


What is maximum number of rows and cols can be handled in SAS?

1510


what has been your most common programming mistake? : Sas programming

1050


Explain how merging helps to combine data sets.

1005


How would you define the end of a macro?

1056


How would you determine the number of missing or nonmissing values in computations?

1026


How to sort in descending order?

1215


What is the maximum length of the macro variable?

1143


Have you ever used the SAS Debugger?

1706


how to remove duplicates using proc sql?

1107


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

1574


What are the parameters of scan function?

1129