Accessing SAS Files from Multiple SAS Sessions


If you are running multiple SAS sessions, whether on a single machine or across a network, you can have multiple access to the same SAS file when you are reading from it.

If you have SAS/SHARE installed, the VIEWTABLE window and the FSEDIT or FSVIEW windows allow multiple users to edit the same SAS file. When you edit a data set using the VIEWTABLE window, you can set the editing mode to either Table Level Edit Access or Row Level Edit Access. When you select Table Level Edit Access, only you have access to the data set. Row Level Edit access allows multiple users to access the same SAS file, but only one user can access and make changes to a single record (observation) at a time.

To open a data set in the VIEWTABLE window, from the SAS Explorer window:

  1. double-click the Libraries icon

  2. double-click the library containing the data set

  3. double-click the data set.

To edit the data set, select

Edit Edit Mode

and then select either Table Level Edit or Row Level Edit .

When you edit a data set using FSEDIT or FSVIEW, you can set the update mode to either MEMBER or RECORD. When you select MEMBER mode, only you have access to the data set. When you select RECORD mode, multiple users can write to the same SAS file but only one user can update a single record (observation) at a time.

To open a data set using FSEDIT or FSVIEW:

  1. type FSEDIT or FSVIEW in the command bar

  2. double-click the library name in the Select a Member dialog box

  3. double-click the data set name.

To edit the data set, select

Edit Update

and then select either the MEMBER or RECORD radio button.

The RSASUSER system option, described in RSASUSER System Option on page 540 allows you to share the Sasuser data library. If multiple users need update access to common SAS data sets, use SAS/SHARE software.

For details about rules for multiple user access to the same data set and its members , see the SAS Help and Documentation and SAS/SHARE User s Guide .




SAS 9.1 Companion for Windows
SAS 9.1 Companion for Windows (2 Volumes)
ISBN: 1590472004
EAN: 2147483647
Year: 2004
Pages: 187

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net