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?
Answers were Sorted based on User's Feedback
Answer / kumaraswamy maduri
Using MISSOVER or TRUNCOVER. TRUNCOVER is best because if
the last variable doesn't have value then it assigns
missing as just as missover one extra difference with
TRUNCOVER is, if you are using formatted input and the
width is more than the value still truncover reads the
available value but missover assigns a missing.
Eg: data t;
input num 3.;
cards;
1
12
121
;
run;
Check the above code using missover and truncover.
| Is This Answer Correct ? | 8 Yes | 1 No |
Answer / nitin
By using stopover, missover is used to read next record
without stopping.
| Is This Answer Correct ? | 6 Yes | 2 No |
Does anybody has SAS Platform Administration certification dumps. pls send to hariithepalli@gmail.com
What would be the result of the following SAS function (given that 31 Dec, 2000 is Sunday)?
How could you generate test data with no input data?
how are numeric and character missing values represented internally? : Sas programming
Does SAS ‘Translate’ (compile) or does it ‘Interpret’? Explain.
what do you mean by data staging area? : Sas-di
Name the option to produce a frequency line items rather that a table.
diff between nodup rec and ondup key???
Why do we use QUIT commmand for proc datasets and proc sql ???
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.
in data set200 observation how to take 110,150,170 using sql procedure?
When merging 2 datasets with a common variable (not merge key), how to keep both?