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 can you learn from the SAS log when debugging?

915


how does sas handle missing values in procs? : Sas programming

634


What are the parameters of scan function?

620


Differentiate input and infile.

592


What is run-group processing?

622






why is sas data integration studio important? : Sas-di

557


how do the in= variables improve the capability of a merge? : Sas programming

931


explain about sas business intelligence? : Sas-bi

596


What do you know about sas data set?

592


Where do you use proc means over proc freq?

558


what do the sas log messages "numeric values have been converted to character" mean? What are the implications? : Sas programming

688


For what purposes have you used sas macros? : sas-macro

537


What is PROC in SAS?

602


What is a put statement?

660


What versions of SAS have you used (on which platforms)?

1011