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 the scrubbing procedures in sas? : Sas programming

1284


Difference between SAS STATA & SPSS?

1119


What do the put and input function do?

1062


what r the job openings SAS for fresher graduates !

2456


Can you execute a macro within a macro? Describe. : sas-macro

1111


How would you define the end of a macro? : sas-macro

1094


How does proc sql work?

1083


What do you know about sas and what we do? : sas-grid-administration

1145


What is connection profile? : sas-grid-administration

1173


How many data types are there in SAS?

1078


What is the difference between one to one merge and match merge? Give an example.

1067


What are the differences between sum function and using “+” operator?

1105


how to do user inputs and command line arguments in sas?

3047


what is the effect of the options statement errors=1? : Sas programming

1060


explain the function of substr in sas? : Sas-administrator

1010