BookmarkSubscribeRSS Feed
ath_123
Calcite | Level 5

Hi All,

 

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

9 REPLIES 9
Kurt_Bremser
Super User

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.

ath_123
Calcite | Level 5

Hi,

 

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.
MPRINT(FLUSSI_OUTPUT): ();
345 %writeheader();
_
180

ERROR 180-322: Statement is not valid or it is used out of proper order.

Kurt_Bremser
Super User

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?

ath_123
Calcite | Level 5

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.

ath_123
Calcite | Level 5

We are using UNIX platform.

ath_123
Calcite | Level 5

Yes it does have sensitive information Smiley Sad

Kurt_Bremser
Super User

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.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 9 replies
  • 1296 views
  • 0 likes
  • 2 in conversation