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
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 |
Answer / nitin
By using stopover, missover is used to read next record
without stopping.
Is This Answer Correct ? | 6 Yes | 2 No |
what are the methods that you would employ to fine tune your SQL extract process using SAS/Access or Proc SQL?
what are several options for creating reports in web report studio? : Sas-bi
what are the differences between proc report and proc tabulate?
what are the different ways of merging two datasets.name atleast 4.
What is the difference between Proc tabulate and Proc print
what is in stream data in SAS?
How will you generate test data with no input data?
Explain input and put function?
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?
how does sas handle missing values in assignment statements? : Sas programming
Are you involved in writing the inferential analysis plan? Tables specfications?
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