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 the difference between order and group variable in proc report?
Explain proc univariate?
Explain the difference between informat and format with an example.
what are the new features included in the new version of sas i.e., Sas 9.1.3? : Sas programming
explain the function of substr in sas? : Sas-administrator
What is the difference between where and if statement?
List down the reasons for choosing sas over other data analytics tools.
if a variable contain dates like "2015/01"---"2015/12" (yymm) ,How to add day to those dates,if them month is jan then 31 if the month is feb then 28 so on ...
what is ae onset date n what is RDS
What is the role of unrestrictive users? : sas-grid-administration
Hello Friends, am new to this forum and am not good at sas progarmming. please can any one of you send me couple of sample large sample SAS Jobs which can you use 200 MB of data and other sas job upto 25GB of data. am doing a performance testing on our legacy systems and new upgraded system. I would really appreciate if you can do me this favor Thank you Priya
what is sas database server? : Sas-di
explain the use of % includes a statement in sas? : Sas-administrator
what are 5 ways to perform a table lookup in sas? : Sas-administrator
What sas features do you use to check errors and data validation?