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 / pricil kurian

Hi ravi..ur answer is correct. ONE QUERY...for the below
example to get third record consecuitvely we need to
if mod(_n_,3)= 0 ; is in't?
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)= 0 then;
run;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How we can create SAS USER DEFINED CODE?

2144


For what purpose would you use the RETAIN statement?

1578


how does sas handle missing values in sort order? : Sas programming

974


What is the difference between SAS functions and procedures?

1179


what is ae onset date n what is RDS

2653


AE datasets names? how many types?

2556


What is the difference between reading data from an external file and reading data from an existing data set?

1224


What is the use of stop statement?

1108


Intern stastical programmer written test

788


what is the use of proc contents and proc print in sas? : Sas-administrator

1101


what does the run statement do? : Sas programming

1097


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

1308


What are the prime responsibilities of data integration administrator? : Sas-di

1115


Compare sas with other data analytics tools.

1091


What is the basic syntax style in SAS?

1224