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?

Answers were Sorted based on User's Feedback



If reading a variable length file with fixed input, how would you prevent SAS from reading the next..

Answer / madhu

by using missover option.

Is This Answer Correct ?    15 Yes 2 No

If reading a variable length file with fixed input, how would you prevent SAS from reading the next..

Answer / 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

If reading a variable length file with fixed input, how would you prevent SAS from reading the next..

Answer / nitin

By using stopover, missover is used to read next record
without stopping.

Is This Answer Correct ?    6 Yes 2 No

Post New Answer

More SAS Interview Questions

What is the purpose of _error_?

1 Answers   Quintiles,


What is factor analysis?

0 Answers  


What are TEAEs

2 Answers   Accenture, Quintiles,


what is star schema? : Sas-di

0 Answers  


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

0 Answers  






What is the order of evaluation of the following operators + - * / ** () ???

2 Answers  


how many types of MERGE?

17 Answers   CitiGroup,


what are input dataset and output dataset options?

6 Answers   HCL,


What does error:1 mean?

8 Answers   Accenture,


How do you write a test plan?

1 Answers   Oracle,


Explain by-group processing?

0 Answers  


How would you code a macro statement to produce information on the sas log? This statement can be coded anywhere? : sas-macro

0 Answers  


Categories