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 / 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 |
Post New Answer View All Answers
What is the work of tranwrd function?
How to convert a numeric variable to a character variable?
What is the difference between %put and symbolgen? : sas-macro
In SAS explain which statement does not perform automatic conversions in comparisons?
How do you test for missing values?
What is SAS?
Explain proc univariate?
Differentiate between ceil and floor functions.
describe about metadata object? : Sas-di
Tell e how how dealt with..
if you were told to create many records from one record, show how you would do this using array and with proc transpose? : Sas programming
How can you limit the variables written to output dataset in data step?
Are you involved in writing the inferential analysis plan? Tables specfications?
what are all the reports you generated in your recent project?
what are the new features included in the new version of sas i.e., Sas 9.1.3? : Sas programming