Previous Page | Next Page

Setting Up SAS Files

Setting Up SAS Files


Using SAS/ASSIST Software to Assign a New Libref

SAS automatically assigns the libref SASUSER to a SAS data library under your operating environment so that you can permanently store your work without assigning another libref.

  1. To assign a new libref, follow this selection path: Tasks [arrow] Setup [arrow] File Management [arrow] SAS data librariesThe SAS Data Libraries window appears.

    SAS Data Libraries Window

    [SAS Data Libraries Window]

    Note that under z/OS, there is an additional option for Table information. This option provides information about the operating environment and a list of allocated DDNames.

  2. Select List current librefs. The Select a Library window appears with a list of the currently assigned librefs. The purpose of this step is just to view the current list of librefs.

    Library Selector Window

    [Library Selector Window]

    Note:   The preceding display shows the Select a Library window for the UNIX operating environment. Other operating environments may have different formats for the Host Path Name.  [cautionend]

  3. Select Cancel to return to the SAS Data Libraries window.

  4. Select Assign a new libref from the SAS Data Libraries window. The Assign a New Libref window appears.

    Assign a New Libref Window

    [Assign a New Libref Window]

    Note:   Under z/OS, the Host Options button in the Assign a New Libref window is used to specify operating environment-specific parameters such as disposition and space.  [cautionend]

  5. In the Libref field, type the libref you want to use. Follow the naming conventions described previously. For this example, type MYDATA .

    In the Name of the SAS data library field, type the name you want to use according to the naming conventions described below.

    • Under z/OS, type a fully qualified operating environment table name, for example, USERID.SAS.DATA.

    • Under UNIX, type the name of an existing directory or subdirectory, for example, MYDATA.

    • Under Windows, type the name of an existing directory or subdirectory, for example, C:\SASDATA.

    • Under OpenVMS, type the name of an existing directory or subdirectory, for example, [MYDATA].

  6. Select OK. A message appears that indicates that the libref was successfully assigned. Select Goback.

  7. Under z/OS only, if the file is not allocated, the software will prompt you to allocate the file and then allocate it for you. The SAS Data Libraries window reappears.

  8. Select List current librefs again. This time the libref you just assigned is listed.

    Library Selector Window with New Libref

    [Library Selector Window with New Libref]

  9. To return to the WorkPlace menu, selectCancel [arrow] Goback


Deleting a SAS Table

  1. To delete a SAS table, follow this selection path:Tasks [arrow] Data Management [arrow] Dbms AccessA SAS Explorer window appears with a list of all the SAS files allocated to your SAS session. If you already have a SAS Explorer window open, then this SAS Explorer window is designated with a (2) on the window's title bar.

    SAS Explorer Window

    [SAS Explorer Window]

  2. In the left pane of the SAS Explorer window, select the data library that contains the table that you want to delete.

  3. In the right pane of the SAS Explorer window, select the table that you want to delete. (If you have a mouse, single-click the table name.)

  4. SelectEdit [arrow] DeleteA prompt appears, asking you if you are sure that you want to delete the table. Select OK to delete the table or Cancel to cancel the delete.

    Note:   If the table that you select for deletion is an active table in one or more SAS/ASSIST tasks, then you cannot delete it. If you want to delete an active table, then remove the table from active status by following the directions in De-Selecting an Active Table.  [cautionend]

  5. To exit the SAS Explorer window, selectFile [arrow] Close

  6. When you are ready to return to the WorkPlace menu or move on to another task, follow the directions in Exiting a Task.

Previous Page | Next Page | Top of Page