What is _n_?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
What are symget and symput? : sas-macro
How would you generate 1000 observations from a normal distribution with a mean of 50 and standard deviation of 20. How would you use PROC CHART to look at the distribution? Describe the shape of the distribution.
if you were told to create many records from one record, show how you would do this using array and with proc transpose? : Sas programming
what is the function of catx syntax? : Sas-administrator
SAS System ?
How do you add a number to a macro variable?
what is validvarname and varnum? why we are using this options; explain with a syntax for this options?
how do u validate the program which u have written.
Name validation tools used in SAS
In ARRAY processing, what does the DIM function do?
What is the differnce between SDTM 3.1.2 to 3.1.1 version
If you set a label in the data step and call a proc freq on the data, how do you display the data without the labels and just the variables.