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

What are types of transport files?

7992


what techniques and/or procs do you use for tables? : Sas programming

1063


what versions of sas have you used (on which platforms)? : Sas programming

1070


What is proc sort?

1209


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

1066


How to create a permanent sas data set?

1234


explain what is factor analysis? : Sas-administrator

1112


How to limit decimal places for variable using proc means?

1109


what is the different between functions and procs that calculate the same simple descriptive statistics? : Sas programming

1063


Intern stastical programmer written test

745


for report generation which one you used proc report or data_null_?

7785


What are the functions which are used for character handling functions?

1139


what is the use of sas management console? : Sas-di

1092


How does SAS handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, PROCs?

1535


How would you define the end of a macro?

1091