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 / ravi

This is nothing but a implict variable created by SAS during
data processing. It gives the total number of records SAS
has iterated in a dataset. It is Available only for data
step and not for procs.

Eg. If we want to find every third record in a Dataset then
we can use the _n_ as follows
Data new-sas-data-set;
Set old;
if mod(_n_,3)= 1 then;
run;
Note: If we use a where clause to subset the _n_ will not
yield the required result.

Is This Answer Correct ?    13 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is metadata? : Sas-bi

1026


What is your favorite all time computer book? Why?

2505


how do the in= variables improve the capability of a merge? : Sas programming

1431


what is the difference between nodup and nodupkey options? : Sas programming

1182


What is PROC in SAS?

1049


Which are the statements whose placement in the data step is critical?

1253


explain the difference between alternate key, business key, foreign key, generated key, primary key, retained key and surrogate key ? : Sas-di

1063


How do you connect the desktop application to metadata server? : sas-grid-administration

1087


What are the best sas programming practices for handling very large datasets? : sas-grid-administration

1010


Explain what is SAS informats?

1087


it will become easy if uuu provide website linkssss and list of consultanciessssss

1970


Assuming {et} is randomly drawn from N(0,1) and e0 = 0, generate 200 observations of xt = et − 0.5e(t−1) and draw a line graph of xt.

1879


Explain how you can debug and test your SAS program?

1006


which date functions advances a date time or date/time value by a given interval? : Sas programming

944


explain the main difference between the nodup and nodupkey options? : Sas-administrator

1160