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
Mention what are the data types does SAS contain?
how will you locate the sas platform applications? : Sas-bi
what is the use of proc sql? : Sas programming
What are the different versions of sas that you have used until now? : sas-grid-administration
What is the basic syntax of a sas program?
What is the order of application for output data set options, input data set options and SAS statements?
what can you learn from the sas log when debugging? : Sas programming
In sas, what are the areas that you are most interested in? : sas-grid-administration
What is the differnce between SDTM 3.1.2 to 3.1.1 version
If you were told to create many records from one record, show how you would do this using array and with proc transpose?
Have you ever used the SAS Debugger?
What is the command used to find missing values?
How to include or exclude specific variables in a data set?
how will you location sas platform applications available from web browser? : Sas-bi
how to change the execute of macro