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

Define run-group processing?

0 Answers  


what is Enterprise Guide?what is the use of it?

2 Answers   CitiGroup, Oracle,


Have you ever used the SAS Debugger?

0 Answers   Quintiles,


when we are using the PROC TRANSPOSE? OBSERVATIONS are repeated then what will happen and what it will show in log window.

1 Answers  


how to generate the test data in sas without input data? : Sas-administrator

0 Answers  






What is the Program Data Vector (PDV)? What are its functions?

5 Answers   Accenture,


I am having a stored process.it needs to route my report to both hthml and Xls.By default SP routes to html.I used the PRINTTO to route the html to Xls.BUt it createsthe file not but no content was written to file(0KB)?how can i do it?

1 Answers  


Explain proc univariate?

0 Answers  


What are Dashboard reports?And significance of these in analysis?

1 Answers  


What is the basic structure of the SAS base program?

0 Answers  


Name the option to produce a frequency line items rather that a table.

2 Answers  


calculate the sum of value using only DATA STEP. data count_; input year name $ value; cards; 2006 xxx 10 2007 yyy 12 2006 xxx 20 2008 yyy 15 2007 xxx 15 ; out put should be like this year name T_value ----------------------- 2006 xxx 30 2007 xxx 15 2007 yyy 12 2008 xxx 15

6 Answers  


Categories