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 can you learn from the SAS log when debugging?
how does sas handle missing values in procs? : Sas programming
What are the parameters of scan function?
Differentiate input and infile.
What is run-group processing?
why is sas data integration studio important? : Sas-di
how do the in= variables improve the capability of a merge? : Sas programming
explain about sas business intelligence? : Sas-bi
What do you know about sas data set?
Where do you use proc means over proc freq?
what do the sas log messages "numeric values have been converted to character" mean? What are the implications? : Sas programming
For what purposes have you used sas macros? : sas-macro
What is PROC in SAS?
What is a put statement?
What versions of SAS have you used (on which platforms)?