Answer Posted / amaran
Can i used _n_ in proc sql; Or its only for Datasteo
_n_ is a Autometic variable created in a datastep. It is a
part of PDV. It is used to store the iteration count of the
Input statement.
Proc SQL doesnot create a PDV. so _n_ variable cannot be
used there.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is the maximum length of the macro variable? : sas-macro
Difference between sum function and using “+” operator?
What Proc glm does?
What are the features of SAS?
what is intially documentation in sas?
Describe the function and untility of the most difficult SAS macro that you have written.
what are the best practices to process the large data sets in sas programming? : Sas-administrator
What is the difference between %local and %global? : sas-macro
What do the put and input function do?
Mention common programming errors committed in sas ?
how can you import .csv file in to sas? : Sas programming
How is character variable converted into numeric variable and vice versa?
I have a SCD Type 2 Dimention for Location In which A Sales Office in Having two Surrogate Keys just because of the change in it's Sales Group. SKey SalesGroup Sales Office BeginDate EndDate 280 SG1 SO1 01APR2000 01APR2010 281 SG2 SO1 02APR2010 31MAR2999 Now while loading the Fact, the Lookup ir returning SKey 280 for records before and after 01APR2010. I am not able to give WHERE condition in the Lookup Properties (TranDate between BeginDate and EndDate). Please help.
how does sas handle missing values in procs? : Sas programming
Can you suggest us materials for sdtm mapping?