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
Explain the difference between using drop = data set option in set and data statement?
what are input dataset and output dataset options? : Sas programming
Name some categories in sas 9? : sas-grid-administration
what type of graphs we will create(for 2+years candidates)?
If money were no object, what would you like to do?
what can you learn from the sas log when debugging? : Sas programming
How are numeric and character missing values represented internally?
How many data types are there in SAS?
what is metadata? : Sas-bi
What areas of SAS are you most interested in?
Is the physical structure of the data set in the same orientation as the report? Do you need to reshape the data sets? What method should you use to reshape the data–DATA steps,PROC TRANSPOSE,output data set from a procedure?
Hi, Does anybody has lastest SAS certification(base, adv., clinical)dumps,if anybody has please email me at mailtorajani76@gmail.com. Thanks
How do you control the number of observations and/or variables read or written? Approximately what date is represented by the SAS date value of 730?
What is the maximum and minimum length of macro variable
if a variable contain dates like "2015/01"---"2015/12" (yymm) ,How to add day to those dates,if them month is jan then 31 if the month is feb then 28 so on ...