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_?

Answers were Sorted based on User's Feedback



What is _n_?..

Answer / d.vijaya bhaskar

SAS variable to count the no of obs read.

Is This Answer Correct ?    2 Yes 1 No

What is _n_?..

Answer / natraj boga

An internal SAS counter in the data step which contains the
current iteration number of the data step.

Is This Answer Correct ?    2 Yes 1 No

What is _n_?..

Answer / varun kumar

_n_ is a automatic variable that can be used for processing.
It counts the number of times the data set begin to execute.

Is This Answer Correct ?    1 Yes 0 No

What is _n_?..

Answer / ashok kore

This is an automatic variable. It is used to count the
number of obs in dataset.Its added one for every iteration
of datastep.

Is This Answer Correct ?    2 Yes 2 No

What is _n_?..

Answer / sirisha

it indicates number of observations.

Is This Answer Correct ?    2 Yes 2 No

What is _n_?..

Answer / chiranjeevi

The _n_ is a automatic variable which displays the line number.

Is This Answer Correct ?    1 Yes 1 No

What is _n_?..

Answer / venkatesh.layam

while execution process automatic variable _n_ will be
created.it tells how many times data step has been
executed .

Is This Answer Correct ?    0 Yes 0 No

What is _n_?..

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

What is _n_?..

Answer / mani

The automatic
variable _n_ counts iterations of the DATA step.

Is This Answer Correct ?    0 Yes 0 No

What is _n_?..

Answer / mahesh

Its an automatic variable.it shows no. of iterations gone
through in datastep.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SAS Interview Questions

data study; input Subj : $3. Group : $1. Dose : $4. Weight : $8. Subgroup; x= input(Weight,5.1); datalines; 001 A Low 220 2 002 A High 90 1 003 B Low 193.6 1 004 B High 165 2 005 A Low 123.4 1 ; Why does X get truncated? X shows up as 22 instead of 220,9 instead of 90 and 19.8 instead of 198? This problem doesnt happen with the values 193.6 and 123.4. This does not happen if x is read on the 5. informat instead of the 5.1 informat

2 Answers  


Explain the message 'Merge has one or more datasets with repeats of by variables'.

5 Answers  


What is the role of administrative users? : sas-grid-administration

0 Answers  


what is the difference between proc means and proc tabulate?

3 Answers   Cognizant, CTS,


Do you think professionally?

1 Answers   Oracle,


What would the following datastep do? Data _null_; Set Dist end=eof; Call Symput("xx"!!left(put(_n_,2.)),&dimension); If EOF then Call Symput('numrows',left(put(_n_,2.))); Run; dimension is a macro variable that is being passed here

2 Answers  


here is a string like chq.2312244%4452- from that i want only special characters in a column. dont use compress. bcoz i have 1.2 billion of records.i want another process to find the values instant from the data.

2 Answers   Cap Gemini, L&T,


Mention few ways with which a “table lookup’ is done in sas programming.

1 Answers  


At compile time when a SAS data set is read, what items are created?

14 Answers   Accenture,


what do the mod and int function do? What do the pad and dim functions do? : Sas programming

0 Answers  


you have a data set like this. data qqq; input name $ total; cards; qq 22 ww 33 qq 22 ee 44 rr 33 ww 44 ; run; and you want output like this......... name total qq 22 ww 44 Do it by data set step.

6 Answers  


Explain what Proc glm does?

0 Answers  


Categories