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 are the scrubbing procedures in sas? : Sas programming
what is null hypothesis? why do you consider that?
what is the primary data source for the wrs? : Sas-bi
How do you connect the desktop application to metadata server? : sas-grid-administration
Explain the difference between nodup and nodupkey options?
What are the applications primarily used by business analyst? : Sas-bi
What are the difference between the sas data step and sas procs?
What versions of SAS have you used (on which platforms)?
How would you include common or reuse to be processed along with your statements?
what do the sas log messages "numeric values have been converted to character" mean? : Sas programming
What sas features do you use to check errors and data validation?
How to create a permanent sas data set?
Mention sas system options to debug sas macros.
Explain data step in SAS
what is business intelligence? : Sas-bi