I first developed a Macro script in SAS EG, which will update a set of records into a SAS BASE Table. I then make this a Macro Script dynamic that will take in parameter based on every session. I stored this Macro script as .sas file in the physical path in the server. (Assume it is /sasapp/macro). The screenshot for this script(I cant copy the script out because the server doesnt allow us to copy paste😞 It works perfectly fine when i run the script in SAS EG. I configured SASAUTOS in sasv9.cfg to include SAS Auto Macro in this directory. However, even after configuring and restarting objectspawner, it is not taking effect for this new directory. My plan is that I set to trigger this macro.sas everytime i run a job in SAS DI Studio. To further troubleshoot, I re-trigger/re-run in the original sas macro script using SAS EG, It works. However, when i try the command below, It doesn't work. Now, I am not sure what is wrong. filename ptmacro '/sasapp/macro/jobctrl.sas';
%include ptmacro;
%startjob(1, test, started); The error that I am getting: My question is, why running %startjob in the original full macro script works in SAS EG, but if i use %include in a new SAS Session and try to trigger with %startjob (without full macro script this time), it gives error.
... View more