What is _n_?

Answers were Sorted based on User's Feedback



What is _n_?..

Answer / vemula

It is an automaic variable created during datastep
processing. And it show how many no of time it has iterated
datastep.

Is This Answer Correct ?    1 Yes 3 No

What is _n_?..

Answer / sumalatha.ch

it counts the no.of iteration in the data step.how many
times data step executes.

Is This Answer Correct ?    2 Yes 5 No

What is _n_?..

Answer / name is no need

see,some felows are posting wrong answers ,does it make
sense?if they didn't know the exact answer it is better to
sit silent .see here what happens is when ever a new person
visit this site he was unable to select the correct answer.
i suggest the persons who are posting the wrong answer
better you don't post any answers from this time.

Is This Answer Correct ?    0 Yes 3 No

What is _n_?..

Answer / sampath kumar

IT WILL IDENTIFY THE NO.OF TIMES THE DATA STEP LOOP WILL BE
EXECUTED.EVERY TIME IT WILL INCREMENT BY 1.

Is This Answer Correct ?    9 Yes 14 No

What is _n_?..

Answer / nipun

this is one of the automatic variables created by sas during
data processiong
And _n_ is number of times sas has began to execute.
(not the no. of iterations)

Is This Answer Correct ?    1 Yes 6 No

What is _n_?..

Answer / mohan reddy

_n_ is initially set 1.it will identify the no.of times the
data step will be executed.

Is This Answer Correct ?    8 Yes 15 No

What is _n_?..

Answer / sudhaker

It genarats the number

Is This Answer Correct ?    0 Yes 8 No

What is _n_?..

Answer / srinivas

Srinivas

U run data step,in that step any error._N_ gives which
position error,in that situation _error_=1

_n_ is the iteration of the data step.

if u use in data step _N_ gives the cursor position

Is This Answer Correct ?    3 Yes 12 No

What is _n_?..

Answer / kishore

this is one of the automatic variables created by sas during
data processiong .it specifies the line number in which the
error & the data error takes place

Is This Answer Correct ?    4 Yes 15 No

What is _n_?..

Answer / suresh

How, some of you are saying _n_ gives no of errors.
Please justify ur answer.

Is This Answer Correct ?    0 Yes 17 No

Post New Answer

More SAS Interview Questions

what is chi-square test? have you used that?

1 Answers   Accenture, Quintiles,


How will you react when, while consulting a SAS documentation manual to get an answer to a problem, someone says hey, I thought you were supposed to know all that stuff already, and not have to look it up in a book?

0 Answers   Oracle,


Why do we use QUIT commmand for proc datasets and proc sql ???

3 Answers  


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

0 Answers   Quintiles,


AE datasets names? how many types?

0 Answers   Accenture,






What function CATX syntax does?

0 Answers  


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  


How to read multiple excel sheets from a single excel file at once????

7 Answers   HCL, Verinon Technology Solutions,


What do you feel about hardcoding?

4 Answers   Oracle,


Describe a time when you were really stuck on a problem and how you solved it?

0 Answers   DELL,


What are the uses of sas?

0 Answers  


What will calendar procedure do?

0 Answers  


Categories