Saving a SAS Data SetYou can save a SAS data set by simply copying the data set into a library that is connected to the shared folder.
Example
Libname Proj1 '/folders/myfolders';
Data Proj1.Test;
Set Test;
Run;
The data set will then be saved in the shared folder:
Exercise
Locate the CP951 data set from the SASHELP library.
Save the CP951 data set into the shared folder myfolders.
Need some help?
HINT:
Create the library associated with MYFOLDERS. Then copy the data set into the newly created library using the SET statement.
SOLUTION:
Libname PROJ1 '/folders/myfolders';
Data PROJ1.CP951;
Set SASHelp.CP951;
Run;
Note: you do not need to run the LIBNAME statement if the library has already been defined.
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |