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 formula to measure Baseline
How do you add a number to a macro variable?
How experienced are you with customized reporting and use of Data _Null_ features?
State the difference between INFORMAT and FORMAT ?
What is the use of PROC gplot?
Can you continue to write code while the rest of the people on the floor where you work have a noisy party to which you were not invited?
Mention the category in which sas informats are placed?
How to read the file names of a text files from a shared drive using SAS?
What is proc sql pass through facility?
Explain the message ‘MERGE HAS ONE OR MORE DATASETS WITH REPEATS OF BY VARIABLE’.
Explain the purpose of retain statement.
Describe the function and utility of the most difficult SAS macro that you have written?