Identify statements whose placement in the DATA step is
critical?
Answer Posted / meena
Placement of the last six statements (shown below) is critical
because the attributes of variables are determined
by the first reference to the compiler:
drop, keep, rename
label
retain
length
format, informat
attrib
array
by
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
which features do you use to check the data validations and errors? : Sas-administrator
data data1; input dt account; format dt date9.; cards; 1745 1230 1756 1120 1788 1130 1767 1240 ; data data2; input startdt enddt total; format startdt date9. enddt date9.; cards; 1657 1834 12300 1557 1758 16800 1789 1789 12300 1788 1345 12383 1899 1899 13250 ; proc sql; create table data3 as select * from data1 as x left join data2 as y on x.dt>=y.startdt and x.dt<=y.enddt; quit; Here, we are getting cartision product. But,I want left join report consisting of this program. It should not get duplicate values. you can modify the program also.
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.
Name some categories in sas 9? : sas-grid-administration
what is enterprise guide? What is the use of it? : Sas programming
What is a put statement?
what are some good sas programming practices for processing very large data sets? : Sas programming
Name validation tools used in SAS
how we can create a FLAG datasets? Ex:-ID age_group no_persons 1 to 10 10 to 20 3 11 to 20 21 to 30 7 21 to 3o 31 to 40 5
what cause the "error: connect:" and "error in the libname statement" when there weren't any such problems?
What are the different operating system platforms in which we can use sas? : sas-grid-administration
Differentiate between format and informat? : sas-grid-administration
What is the length assigned to the target variable by the scan function?
What is the difference between order and group variable in proc report?
Name any two sas spawners? : sas-grid-administration