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 are the methods that you would employ to fine tune your SQL extract process using SAS/Access or Proc SQL?

1 Answers  


what are several options for creating reports in web report studio? : Sas-bi

0 Answers  


what are the differences between proc report and proc tabulate?

3 Answers  


what are the different ways of merging two datasets.name atleast 4.

2 Answers  


What is the difference between Proc tabulate and Proc print

4 Answers   CitiGroup,






what is in stream data in SAS?

1 Answers  


How will you generate test data with no input data?

0 Answers  


Explain input and put function?

0 Answers  


If you have a data set that contains 100 variables, but you need only five of those, what is the code to force SAS to use only those variable?

16 Answers  


how does sas handle missing values in assignment statements? : Sas programming

0 Answers  


Are you involved in writing the inferential analysis plan? Tables specfications?

0 Answers   Wipro,


What would the following datastep do? Data _null_; Set Dist end=eof; Call Symput("xx"!!left(put(_n_,2.)),&dimension); If EOF then Call Symput('numrows',left(put(_n_,2.))); Run; dimension is a macro variable that is being passed here

2 Answers  


Categories