If reading a variable length file with fixed input, how
would you prevent SAS from reading the next record if the
last variable didn?t have a value?
Answer Posted / ade
Use the MISSOVER keyword; it forces SAS to put either a
blank or a period for the missing variable before continuing
to the next record.
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
For what purposes have you used sas macros? : sas-macro
What do the put and input function do?
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.
explain the difference between alternate key, business key, foreign key, generated key, primary key, retained key and surrogate key ? : Sas-di
How would you code a macro statement to produce information on the sas log? This statement can be coded anywhere? : sas-macro
If a variable contains letters or special characters, can it be numeric data type?
What is the length assigned to the target variable by the scan function?
what type of graphs we will create(for 2+years candidates)?
how does sas handle missing values in a merge? : Sas programming
What is slibref?
what is factor analysis? : Sas-administrator
what is treatment emergent events and treatment emregent adverse event
Explain what is data step?
what is the primary data source for the wrs? : Sas-bi
what is slowly changing dimension? : Sas-di