Why is a STOP statement needed for the point=option on a
SET statement?
Answers were Sorted based on User's Feedback
Answer / latha sunkara
When you use the POINT= option, you must include a STOP
statement to stop DATA step processing, programming logic
that checks for an invalid value of the POINT= variable, or
both. Because POINT= reads only those observations that are
specified in the DO statement, SAS cannot read an end-of-
file indicator as it would if the file were being read
sequentially. Because reading an end-of-file indicator ends
a DATA step automatically, failure to substitute another
means of ending the DATA step when you use POINT= can cause
the DATA step to go into a continuous loop.
Is This Answer Correct ? | 8 Yes | 0 No |
Answer / dupe
just to add to the previous answer, if the stop statement
is executed, SAS cannot proceed to the bottom of the
datastep, where a run statement is encountered which forces
an explisit output of observation. To overcome this, you
will need to include the output statement before the stop
statement.
Is This Answer Correct ? | 3 Yes | 2 No |
what are the advantages of using SAS in clinical data mangement? why should not we use other software products in managing clinical data?
in the flow of data step processing, what is the first action in a typical data step? : Sas programming
How would you delete observations with duplicate keys?
What do the sas log messages “numeric values have been converted to character” mean? What are the implications?
how do we get duplicate observations in a separate dataset?
How is character variable converted into numeric variable and vice versa?
Describe the function and untility of the most difficult SAS macro that you have written.
How do you read in the variables that you need?
Name types of category in which SAS Informats are placed?
how to generate means for every subject;
When merging 2 datasets with a common variable (not merge key), how to keep both?
How would you determine the number of missing or nonmissing values in computations?