Executing Catalog Entries

If you are converting SAS/IntrNet programs that use SOURCE or MACRO catalog entries, then you need to use a wrapper .sas source file to execute the catalog entry. As mentioned in the "Conversion Considerations" section, the stored process server cannot directly execute SOURCE, MACRO, or SCL catalog entries.
Note: SCL catalog entries cannot be executed using this type of wrapper program.
You can use a wrapper program like the following to execute SOURCE catalog entries:
libname mylib 'sas-data-library';  /* this library
could be pre-assigned */
filename fileref1 catalog 'mylib.catalog.program.source';
%include fileref1;
The wrapper program for MACRO catalog entries can be something like the following wrapper:
libname mysas 'SAS-data-library'; 
/* this library could be pre-assigned */
filename mymacros catalog 'mysas.mycat';
options sasautos=mymacros mautosource;
%macroname;
These two sample programs show only the minimum code that is necessary to execute catalog entries from a SAS program. This might be enough in some cases, but you might want to use some other SAS/IntrNet features by including macro variables such as _PGMLIB, _PGMCAT, _PGM, _PGMTYPE, and _APSLIST.