Chapter Contents

Previous

Next
SAS Companion for the OpenVMS Operating Environment

Autocall Libraries

An autocall library contains files or members that define SAS macros. The autocall facility enables you to invoke a macro without having previously defined that macro in the same SAS program. In order to use the autocall facility, the SAS system option MAUTOSOURCE must be in effect. (For information about the MAUTOSOURCE system option, see SAS Language Reference: Dictionary.)

SAS Institute supplies some autocall macros. When the SAS System is installed, a SASAUTOS logical name is defined. This OpenVMS logical name refers to the location of the default macros that are supplied by SAS Institute. Whether this logical name is placed in the system-level logical name table or in the process-level logical name table is site-dependent.

You can also define your own autocall macros in a user autocall library.


Creating an Autocall Macro

To create an autocall macro, perform the following tasks:

  1. Create either an OpenVMS directory or an OpenVMS text library to function as an autocall library, or use an existing autocall library.

  2. In the autocall library, create a file (filetype .SAS) or member (filetype .TLB) that contains the source statements for the macro. The filename or member name must be the same as the name of the macro. For example, if a file named PRTDATA.SAS is stored in an OpenVMS directory, then the file must define a macro named PRTDATA. Similarly, if the text library MYLIB.TLB contains the member DATACONT, then that member must define a macro named DATACONT.


Specifying a User Autocall Library

Use the SAS system option SASAUTOS to specify the location of one or more user autocall libraries. (For more information about this option, see SASAUTOS=.) You can specify autocall libraries either when you invoke SAS or during a SAS session, as follows:


Chapter Contents

Previous

Next

Top of Page

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