Answer Posted / chandra sekar
_N_ gives the record number. You can access any record in
the dataset using _N_ if you know the record number. It is
set as 1 for the first record and incremented for every
subsequent record. It is an automatic variable and is not
visible when you open a dataset. This can also be used to
subset a data. For ex, if you want to access the first 100
records then you can say "if _N_ <= 100".
| Is This Answer Correct ? | 63 Yes | 2 No |
Post New Answer View All Answers
What are the different types of sas functions?
Do we follow ADAM in analysis dataset development?How? Usually which version? Why is it necessary?
Assuming {et} is randomly drawn from N(0,1) and e0 = 0, generate 200 observations of xt = et − 0.5e(t−1) and draw a line graph of xt.
What are the difference between ceil and floor functions in sas?
Tell me about % include and % eval? : sas-macro
In sas, what are the areas that you are most interested in? : sas-grid-administration
How does proc sql work?
what is data governance? : Sas-di
how to change the execute of macro
how do you test for missing values? : Sas programming
What is the sas data set? : sas-grid-administration
How to test the debugging in sas?
Do you know the features of sas?
What are types of transport files?
Explain data step in SAS