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


Please Help Members By Posting Answers For Below Questions

What is the purpose of _character_ and _numeric_?

795


How does SAS handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, PROCs?

1301


what is the difference between calculating the 'mean' using the mean function and proc means? : Sas programming

862


How would you invoke a macro? : sas-macro

747


what is sas database server? : Sas-di

794


What is the difference between INPUT and INFILE ?

962


What are the prime responsibilities of data integration administrator? : Sas-di

790


What is the general format of function in sas? : sas-grid-administration

754


Differentiate between format and informat? : sas-grid-administration

786


What would be the value of month at the end of data step execution and how many observations would be there?

778


Have you ever used the SAS Debugger?

1435


do you need to know if there are any missing values? : Sas programming

751


How necessary is it to be creative in your work?

2203


If a variable contains only numbers, can it be a character data type?

828


What are the difficulties u faced while doing vital signs table or dataset?

2151