BookmarkSubscribeRSS Feed
Ken_Work
Calcite | Level 5
Hello,

Could someone help me figure out how to setup autocall on UNIX?

I have macros stored in 2 directories and the include file contains:

----------------------------------------------------------------------------------------------
options ls=80 mprint mlogic symbolgen;

options compress=binary;

filename macsrc '/projects/maclib/';
filename macgen '/projects/maclib/common/';
options mautosource SASAUTOS=(macsrc macgen SASAUTOS);

-----------------------------------------------------------------------------------------------

When execute macro, I got the error:
ERROR 180-322: Statement is not valid or it is used out of proper order.^MERROR 180-322: Statement is not valid
or it is used out of proper order.^MERROR 180-322: Statement is not valid or it is used out of proper order.

and
WARNING: No logical assign for filename SASAUTOS.
WARNING: Source level autocall is not found or cannot be opened. Autocall has
been suspended and OPTION NOMAUTOSOURCE has been set. To use the
autocall facility again, set OPTION MAUTOSOURCE.
WARNING: Apparent invocation of macro SELECTBETWDATES not resolved.


SELECTBETWDATES is a macro

Any help and/or suggestion are much appreciated.

Thank you.
3 REPLIES 3
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
You need to share all of your executed code (specifically as revealed in the SAS-generated log), not just selective code-pieces, ideally pasted just like it comes out of the SAS log output window (or batch log file).

Scott Barry
SBBWorks, Inc.
ArtC
Rhodochrosite | Level 12
We will also need to know if you are running a batch or interactive program.
Ken_Work
Calcite | Level 5
Thank you all.

I figured out the problem. I have to change the options statement to

options mautosource SASAUTOS=(macsrc macgen '!SASROOT/sasautos');

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1554 views
  • 0 likes
  • 3 in conversation