• No products in the cart.

How to create SAS Libiray?

In SAS, a library is a collection of one or more SAS data sets that are stored together in a single location. You can create a new library in SAS by following these steps:

1. Open SAS: Open the SAS application on your computer. The application should launch with a main menu screen.
2. Open the Explorer window: To create a new library, go to View > Explorer to open the Explorer window.
3. Select a folder location: In the Explorer window, select a folder location where you want to create the new library. This could be a local folder on your computer or a network location.
4. Right-click and select New Library: Right-click on the selected folder location and choose New Library from the context menu.
5. Define the library properties: In the New Library window, define the properties of the new library. This includes:
• Library name: Enter a name for the new library.
• Engine: Select the engine that you want to use for the new library. The engine determines how SAS reads and writes data in the library. Common engines include SAS, V9, and SQL.
• Physical Name: Enter the physical name of the library, which is the file path or network location where the library will be stored.
• Other options: You can also set other options for the new library, such as whether to make it the default library.
6. Click OK: Once you have defined the properties of the new library, click OK to create the library.

After you have created the new library, you can use it to store and access SAS data sets. To view the contents of the new library, go to the Explorer window and expand the library name to see the data sets it contains. You can also use the library name in your SAS code to reference data sets stored in the library. For example, to access a data set called “mydata” in the new library, you would use the following code:

data newdata;

   set mylib.mydata;

run;

In this example, “mylib” is the name of the new library you created, and “mydata” is the name of the data set within the library.

01/03/2023
Template Design © Bodhan soft technologies PVT.LTD. All rights reserved. <meta name="facebook-domain-verification" content="cg6nsg7wc0h385jtk0v0gswpb924ti" />

Connect with :




Chat with Us
1
We are Online
Hello ,
How we can help you ?