This script does not directly manipulate SAS datasets. Its role is to configure the paths where SAS will search for external macro files (via sasautos) and external format catalogs (via fmtsearch) that will be necessary for the execution of other SAS programs. It neither creates nor reads transactional data.
1 Code Block
MACRO DEFINITION
Explanation : This block contains the definition of the 'AHGsetauto' macro. It integrates conditional logic ('%if...%then...%else') to adapt configurations based on the value of the macro variable '&theuser'. Inside these conditional blocks, various SAS options are defined to control session behavior. These include display options ('nodate nonumber nocenter'), macro management ('mautosource', 'sasautos'), data handling ('missing=' '), and format searching ('fmtsearch'). The 'filename someauto' statement creates a shortcut to local file paths. The 'sasautos' and 'fmtsearch' options are lists of paths, defining where SAS should search for autocall macro files and format catalogs, respectively, mixing system paths ('!sasroot'), user paths, and project paths. The 'ls=180' and 'nofmterr' options adjust the log line width and format error handling, respectively.
sasautos=( %IF &mymac ne %THEN"&mymac"; '!sasroot/sasautos''!sasroot\\base\\sasmacro'"&projectpath\\analysis""&readonly\\pds1_0\\macros""&projectpath\\extract""&projectpath\\macros"'!sasroot\\base\\sasmacro'/*gmac hctools*/ sasautos /*_my*/ )
21
fmtsearch=(work.formats ) cmdmac;
22
/*%b_formats;*/
23
24
option ls=180;
25
option nofmterr;
26
27
28
%END;
29
%mend;
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration. WeAreCAS is an independent community site and is not affiliated with SAS Institute Inc.
This site uses technical and analytical cookies to improve your experience.
Read more.