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 is the difference between proc report and proc format?
What is the difference between one to one merge and match merge? Give an example.
List down the reasons for choosing sas over other data analytics tools.
Of all your work, where have you been the most successful?
what is difference in window SAS & Unix SAS.....how do define working environment in both???
what are different type of sas servers ? On which server does the sas code execute ?
how do you debug and test your sas programs? : Sas programming
Do you need to rearrange the order of the data for the report?
How to find out no. of business days in a month using macros.???(excluding weekends and holidays).
describe how to adjust the performance of data integrator? : Sas-di
How to limit decimal places for the variable using proc means?
How to get top scorer student from a class-table having different sections A,B, C & D? Each section having same number of students.