Managing SAS Data Libraries |
As you accumulate more SAS files, you will need to manage the SAS data libraries. Managing libraries generally involves using SAS procedures or operating environment commands to perform routine tasks such as
You can use operating environment commands to manage SAS files, but for the most part, their use is restricted to the library level. To delete or copy individual SAS files, such as a SAS data set, it is necessary to use SAS utility procedures.
Operating Environment Information: For SAS files that are stored on directory-based computers or in the CMS operating environment and that do not have auxiliary files (such as a SAS data set without an index or audit trail file), you can use operating environment utilities at both the library and file level. If a SAS data set has either an index file or an audit trail file, then you must use SAS utility procedures to delete the file.
One advantage of SAS utility procedures is that you can use them in any operating environment at any level. If you learn SAS procedures, then you can handle any file management task for your SAS data libraries without knowing the corresponding operating environment commands.
There are several SAS tools that are available for basic file management. You can use these features alone or in combination.
Copyright © 2012 by SAS Institute Inc., Cary, NC, USA. All rights reserved.