Chapter Contents |
Previous |
Next |
SAS Companion for the OS/390 Environment |
Specifying a User Autocall Library |
In batch mode, you could use the following JCL statements to specify an autocall library:
//MYJOB JOB account. ... // EXEC SAS,OPTIONS='MAUTOSOURCE' //SASAUTOS DD DSN=MY.MACROS,DISP=SHR
//MYJOB JOB account ... // EXEC SAS,OPTIONS='MAUTOSOURCE' //SASAUTOS DD DSN=MY.MACROS1,DISP=SHR // DD DSN=MY.MACROS2,DISP=SHR // DD DSN=default.autocall.library, // DISP=SHR
Under TSO, you can specify an autocall library either when you invoke SAS or during a SAS session.
sas options('mautosource sasautos= "myid.macros"')
sas options('mautosource sasautos= ("myid.macros1","myid.macros2",sasautos)')
options mautosource sasautos= 'myid.macros';
options mautosource sasautos= ('myid.macros1','myid.macros2', sasautos);
Creating an Autocall Macro |
To create an autocall macro, do the following:
Note: The SAS macro facility allows you to include the underscore character in macro names; however, OS/390 does not allow the underscore character in partitioned data set member names. To create an autocall member for a macro name that contains an underscore, use a pound sign (#) in place of the underscore in the member name. For example, to create an autocall member for a macro named _SETUP_, name the member #SETUP#. However, invoke the macro by the macro name, as follows:
%_setup_
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.