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 is interleaving in SAS?
what do you mean by data staging area? : Sas-di
What is the difference between proportion and average?
Hi Jeevan/Akshara I have tried to contact SASI Vats for latest Advanced SAS Programming Certification Dumps (A00-212) but have not got any response. I would highly and gratefully appreciate your assistance in this regard. If you guys have access to this, would you be kind enough to forward it to me ? I would abide by all the terms you have for this. Please, note my email id: upretigopi@yahoo.com Preti Sharma
explain the function of substr in sas? : Sas-administrator
what r the job openings SAS for fresher graduates !
Differentiate between format and informat? : sas-grid-administration
explain what is factor analysis? : Sas-administrator
how can you import .csv file in to sas? : Sas programming
How will you generate test data with no input data?
What are the differences between proc means and proc summary?
What is program data vector (pdv)?
To what type of programms have you used scratch macros?
What are pdv and it functions?
What is the difference between using drop = data set option in data statement and set statement?