While practicing on SAS academics I daily ran the below code:
%let path=~/EMC1V2_Macro;
libname mc1 "&path/data";
Then created following macro and saved in the AUTOCALL library to use this macro again.
%macro propcase(text); %sysfunc(propcase(&text)) %mend propcase;
Next time when I login into SAS, and run the LIBNAME statement with below code it runs smoothly. Calling the macro PROPCASE works here.
options sasautos=("/home/u62036390/EMC1V2_Macro/autocall",sasautos);
Other situation when I login into SAS, I just need my libraries so I run the LIBNAME statement without OPTIONS SASAUTOS. But after a while I run this OPTIONS SASAUTOS and then if I call the macro it doesn't resolve.
To me this appears as if the OPTIONS SASAUTOS is working only when I run with the LIBNAME statement. But in Advanced programming performance based exam, we don't need to define libraires. This is automatically done when we start the exam.
Suppose in the exam, I want to built my AUTOCALL library so I can use the macros saved in the exam. But here as the libraries are not needed to be defined and as per my understanding if the OPTIONS SASAUTOS is working only with the LIBNAME statement it will give me a error that the macro was not found. Please correct if I misunderstood the concept and also guide how this will work in the exam specially.
... View more