11-24-2016 04:36 AM
We are executing a SAS DI job in batch mode and the job is completed successfully. But when we execute the sas job through SAS CIS by executing a campaign the jobs log shows error like "Macro not resolved". The macro paths are kept in autoexec file. This is happening with all the macros and macro variables .
Kindly help us on this.
Thanks in Advance
11-24-2016 04:44 AM
Look at the logs, especially the part where the autoxec is executed. It might be that the system user that runs CIS does not have the necessary permissions to read the includes.
11-24-2016 05:03 AM
We are getting below error.
NOTE: Autocall member, WRITEHEADER, has not been compiled by the macro processor. It might contain a macro syntax error or not define a macro with the same name as the member. To autocall
this member again, set OPTION MRECALL.
ERROR 180-322: Statement is not valid or it is used out of proper order.
11-24-2016 05:16 AM
Are you using the autocall facility also in DI batch jobs, or are you simply including the files there?
And is the file where the macro %writeheader is defined named writeheader.sas?
11-24-2016 06:11 AM
Yes we are using autocall only.. Macro path is included in autoexec. The name of macro is same as the .sas name. Also, the same issue is coming for all the macros and macro variables used in the job.
11-24-2016 06:22 AM
On which system platform are you running SAS (the server part)?
11-24-2016 06:38 AM
Could you post the code for the %writeheader macro here, or does it contain sensitive information?
11-24-2016 07:19 AM
There's surprisingly little in the SAS knowledge base to be found for this NOTE, and that is related to z/OS.
So the only thing that's left from my POV is some difference between the two environments (user permissions, option settings) that makes the macro syntactically or semantically wrong in the CIS.
In any case, I'd put the issue to SAS technical support. With them, it's easier to reveal the code.