Why is a STOP statement needed for the point=option on a
SET statement?

Answers were Sorted based on User's Feedback



Why is a STOP statement needed for the point=option on a SET statement?..

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

Why is a STOP statement needed for the point=option on a SET statement?..

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

Post New Answer

More SAS Interview Questions

what are the advantages of using SAS in clinical data mangement? why should not we use other software products in managing clinical data?

2 Answers   Wockhardt,


in the flow of data step processing, what is the first action in a typical data step? : Sas programming

0 Answers  


How would you delete observations with duplicate keys?

6 Answers  


What do the sas log messages “numeric values have been converted to character” mean? What are the implications?

0 Answers  


how do we get duplicate observations in a separate dataset?

6 Answers   CitiGroup,






How is character variable converted into numeric variable and vice versa?

0 Answers  


Describe the function and untility of the most difficult SAS macro that you have written.

0 Answers  


How do you read in the variables that you need?

9 Answers   Accenture,


Name types of category in which SAS Informats are placed?

0 Answers  


how to generate means for every subject;

4 Answers   Mind Tree,


When merging 2 datasets with a common variable (not merge key), how to keep both?

3 Answers  


How would you determine the number of missing or nonmissing values in computations?

0 Answers  


Categories