What is _n_?
Answers were Sorted based on User's Feedback
Answer / d.vijaya bhaskar
SAS variable to count the no of obs read.
| Is This Answer Correct ? | 2 Yes | 1 No |
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 |
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 |
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 |
Answer / chiranjeevi
The _n_ is a automatic variable which displays the line number.
| Is This Answer Correct ? | 1 Yes | 1 No |
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 |
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 |
Answer / mani
The automatic
variable _n_ counts iterations of the DATA step.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / mahesh
Its an automatic variable.it shows no. of iterations gone
through in datastep.
| Is This Answer Correct ? | 0 Yes | 0 No |
what other SAS features do you use for error trapping and data validation?
Below is the table. Required to be output should be the highest number of each student_id. Example. Student_id Subject Marks 1 Hindi 86 2 Hindi 70 3 English 80 . Calculate sum and average marks for each group of student_id Example. Student_id Subject Marks Total Marks Average 1 English 40 181 60.33333 2 English 67 196 65.33333 3 English 80 160 53.33333 PLEASE PROVIDE THE CODE OF ABOVE PROBLEMS
what is the diff b/w verification validation in sas
What are the features of SAS?
Can we create datasets by proc step ? (Proc contents, Means)?
What are TEAEs
2 Answers Accenture, Quintiles,
what are the differences between proc report and proc tabulate?
Hi, If anyone has base SAS certification dumps, please share.
How many versions came upto now in SAS?
data jagan1.s; input bp$; cards; 100/90 120/89 112/87 run; in the above code how to convert character data values to numeric data values?
what is the Population you used in your project, is it ITT or PP?
0 Answers Accenture, Quintiles,
what is SAS/Graph?