Chapter Contents

Previous

Next
SAS Companion for the OS/390 Environment

Assigning Multiple Librefs to a Single SAS Data Library

You can assign more than one libref to the same SAS data library. Any assigned libref may be used to access the data library. In fact, you can use the librefs interchangeably.

For example, suppose that in two different programs you used different librefs for the same data sets. Later you develop a new program from parts of the two old programs, or you include two different programs with the %INCLUDE statement. In the new program, you could simply assign the two original librefs to each data set and proceed.

Note:   Even when multiple librefs are assigned to the same SAS data library, the SAS data library is allocated only once. The first logical name (DDname) that you assign is used as the DDname in the operating environment allocation.  [cautionend]


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.