The data for the THREEROWS dataset is created directly within the SAS script using DATA STEP and CARDS statements.
1 Code Block
DATA STEP Data
Explanation : This DATA STEP block creates a new dataset named THREEROWS in the WORK library. The data for this dataset is read directly from the lines following the CARDS statement, defining three variables (_STATE, SEX1, _AGE80) for three observations.
Explanation : This block executes the PROC DATASETS procedure on the SAS 'WORK' library. In the absence of specific options (such as DELETE, CHANGE, CONTENTS, etc.), this execution often serves to interact with the library's properties or to ensure it is updated after previous operations. The QUIT; and RUN; statements terminate the procedure.
Copied!
PROC DATASETS LIB = WORK;
QUIT;
RUN;
1
PROC DATASETS LIB = WORK;
2
QUIT;
3
RUN;
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.
Related Documentation
Aucune documentation spécifique pour cette catégorie.
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration. WeAreCAS is an independent community site and is not affiliated with SAS Institute Inc.
This site uses technical and analytical cookies to improve your experience.
Read more.