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');

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!

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.

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
  • 3 replies
  • 928 views
  • 0 likes
  • 3 in conversation