Copying, Moving, and Deleting SAS Data Sets |
The examples in this section use five SAS data libraries that contain sample data sets that are used to collect and store weather statistics for the United States and other countries. The libraries have the librefs PRECIP, USCLIM, CLIMATE, WEATHER, and STORM. The following LIBNAME statements assign the librefs:
libname precip 'SAS-data-library-1'; libname usclim 'SAS-data-library-2'; libname climate 'SAS-data-library-3'; libname weather 'SAS-data-library-4'; libname storm 'SAS-data-library-5';
Note: For each LIBNAME statement, SAS-data-library is a different physical name for the location of the SAS data library. In order to copy all or some SAS data sets from one library to another, the input and output libraries must be in different physical locations.
The DATA steps that create the data sets in the SAS data libraries CLIMATE, PRECIP, and STORM are shown in the Appendix. The DATA steps that create the data sets in the SAS data library USCLIM are shown in Appendix.
Copyright © 2012 by SAS Institute Inc., Cary, NC, USA. All rights reserved.