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 |
is it possible to generate sas datasets using proc print ???
1 Answers GSK GlaxoSmithKline,
What are the efficacy variables in your study?
2 Answers Accenture, Quintiles,
How to convert a numeric variable to a character variable?
how does sas handle missing values in procs? : Sas programming
Describe the types of SAS programming tasks that you performed like Tables? Listings? Graphics? Ad hoc reports? Other?
What is the maximum length of the macro variable?
how does sas handle missing values in sort order? : Sas programming
what are input dataset and output dataset options? : Sas programming
What would be the value of month at the end of data step execution and how many observations would be there?
what is hierarchy flattening? : Sas-di
what is the primary variable in your study?
What is a macro routine?