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 / mallikarjuna raju

This is an automatic variable of PDV that returns the no of
observations that it has iterated.There are such variables
like _Error_,end=,in=,first.by-variable,last.by-variable,..etc
All these variables will not be displayed in the target output.
Ex:
Data new;
set <existed>;
if _n_>=2 and <=6 then output;

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how do you debug and test your sas programs? : Sas programming

1169


What is program data vector (pdv)?

1385


How would you code a macro statement to produce information on the sas log? This statement can be coded anywhere? : sas-macro

1097


Will it bother you if the guy at the next desk times the frequency and duration of your bathroom or coffee breaks on the grounds that ?you are getting paid twice as much as he is??

2669


What is the difference between INPUT and INFILE ?

1372


Can you execute macro within another macro? : sas-macro

1047


Approximately what date is represented by the SAS date value of 730?

1269


What is the difference between input and infile statement?

1221


I have a dataset concat having a variable a b & c. How to rename a b to e & f?

1331


For what purposes have you used sas macros? : sas-macro

1046


explain the concepts and capabilities of business object? : Sas-bi

1007


i have a dataset with 100 obs i want to generate title from 20th obs onwards with total observations. that should contain 100 obs.dont use firstobs and dnt split the data. use dataset block or proc report? how can we genarate;

2550


Difference between nodup and nodupkey options?

1267


what do the sas log messages "numeric values have been converted to character" mean? : Sas programming

1071


Are you involved in writing the inferential analysis plan? Tables specfications?

2592