Answer Posted / cutepa1
Almost all the above answers are right, except one or few.
Here I provide a clear insight into _n_ variable. This is an
automatic variable of PDV(Program Data Vector) that returns
the no. of observations that it has iterated. There are
such variables like _error_, end=, in=, first.by-variabke,
last.by-variable,etc.. All these variables will not be
displayed in the target output.
Ex:
data new;
set ora.emp;
if _n_ >= 2 and _n_ <= 6 then output;
run;
/* as _n_ returns 'n'th observation our statement is to save
those obs when _n_ returns the value between 2 and 6. Hence
the 5 obs of the specified dataset between second and six
are saved into 'new'.
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
sas implementing companies in pune implementing clinical projects if anyone knows plz send ans immediately
in the flow of data step processing, what is the first action in a typical data step? : Sas programming
Give some examples where proc report’s defaults are different than proc print’s defaults?
What is the sas data set? : sas-grid-administration
what are the softwares and applications that are used most frequently used by sas bi applications developers? : Sas-bi
name some data transformation used in sas di? : Sas-di
What are the implications?
what is the one statement to set the criteria of data that can be coded in any step? : Sas programming
what is the use of proc contents and proc print in sas? : Sas-administrator
how do you test for missing values? : Sas programming
what are some problems you might encounter in processing missing values? In data steps? Arithmetic? Comparisons? Functions? Classifying data? : Sas programming
Hi all, If Anybody has Advance SAS Certification dumps??? Please share with me. Email: pramod.kalugade03@gmail.com
What is Linear Regression?
what is the use of sas management console? : Sas-di
What are pdv and it functions?