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

where are dashboard components are created and maintained? : Sas-bi

0 Answers  


code the tables statement for a single level frequency?

2 Answers  


What is the difference between input and infile statement?

0 Answers  


Can you use a macro within another macro? If so how would SAS know where the current acro ended and the new one began?

2 Answers  


how can you get the single data set from the library(which has the number of data sets)?

3 Answers   Accenture, Deloitte,






How to read multiple excel sheets from a single excel file at once????

7 Answers   HCL, Verinon Technology Solutions,


How do you debug and test your SAS programs? What can you learn from the SAS log when debugging? How do you test for missing values? How would you create multiple observations from a single observation? What are some good SAS programming practices for processing very large data sets? Briefly describe 5 ways to do a "table lookup" in SAS. Why is SAS considered self-documenting? Are you sensitive to code walk-throughs, peer review, or QC review? What other SAS features do you use for error trapping and data validation? How does SAS handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, PROCs?

2 Answers  


What are the new features included in the new version of SAS Programming Language?

0 Answers  


Mention what is SAS data set?

0 Answers  


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

0 Answers  


hi tell be about pfizer? how to compare the work with other companies ? please tell me how to login and work also?

1 Answers   Pfizer,


How are numeric and character missing values represented internally?

0 Answers   Quintiles,


Categories