How to Migrate SAS Libraries from one library to another library
In this tutorial we will guide you how to Migrate SAS Libraries from one library to another library using proc migrate procedure.While migrating libraries you can set the encoding as per your requirement.
Examples: Migrate SAS Libraries
To migrate SAS libraries we need to follow these steps
- Create TARGET folder where you want to migrate.
- Assign SOURCE library using libname statement.
- Assign TARGET library using libname statement.
- Migrate SAS Libraries using proc migrate procedure.
LIBNAME SOURCE '/home/trenovision/SOURCE' INENCODING="<SPECIFY THE ENCODING>"; LIBNAME TARGET '/home/trenovision/TARGET'; PROC MIGRATE IN=SOURCE OUT=TARGET; RUN;
Hope you are now more clear about how you can Migrate SAS Libraries from one library to another library. Feel free to comment if you have any query or error you’re while executing this code.
Happy Learning !!