Interview Questions   Tutorials   Discussions   Programs   Videos   

SAS - How can you create zero observation dataset?

asked mar September 20, 2014 06:30 AM  

How can you create zero observation dataset?


1 Answers

answered By vishnoiprem   0  

In a data step when no user supplied OUTPUT statement is coded there is an implied output statement and a RETURN statement. So unless changed all SAS data steps end with OUTPUT; RETURN;

The zero obs data set data step could be thought of as being coded like this.

create a zero observation dataset data zero; stop; set sashelp.class; OUTPUT; RETURN; run;

   add comment

Your answer

Join with account you already have



Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!