PING
0.9
Statistical data handling and processing in production environment
|
Test a macro using the example* programs implemented inside the considered macro files.
macro_name
: string representing the macro name;dir
: (option) string storing the location of the macro; in practice, the file <dir>/<macro_name>.sas will be searched for loading the associated; default to the location of the autoexec directory.ans
: the error code of the test, i.e.:
0
if the variable var
exists in the dataset,1
(error: "var does not exist") otherwise.A macro example<macro_name> needs to be implemented inside <dir>/<macro_name>.sas. This macro is then automatically ran.
Run macro %_example_check
for examples.