Chapter Contents

Previous

Next
SAS Library: _assign

SAS Library: _assign



Assigns a libref and initializes a SAS Library object or deassigns a libref and clears a SAS Library object


Syntax
Example
See Also

Syntax

CALL SEND (library-object-id, '_assign'libref, pathname<, engine<, engine-options>>);

Argument Type Description

C specifies the libref for a SAS data library
pathname
C specifies the pathname for which libref is to be assigned. If pathname is blank, then libref will be deassigned, and the Library object will be cleared. This is the same result produced by _remove.
engine
C specifies the engine that will be used to access SAS files opened in the data library.


If you are specifying a SAS/SHARE server, the engine should be REMOTE.
engine-options
C specifies options honored by the specified engine


Example

This example assigns the libref, LIB, to pathname and initializes LIBOBJ2 to that library:

libclass=loadclass
         ('sashelp.fsp.library.class');
libobj2=instance(libclass);
call send(libobj2, '_assign_', 'lib', 
          'pathname');

If you look at the contents of LIBOBJ2, you see

( _class=2621
  DESC='SAS Library Class'
  ATTRIBUTES=( SEQUENTIAL=0
              )[2647]
  ENGINE='V611'
  NAME='LIB'
  PATHS=_blank
/*  */

  SERVER=''
  PATH=( 'pathname'
        )[2645]
  DATA_REP=''
 )[2643]

See Also

_setup.


Chapter Contents

Previous

Next

Top of Page

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