Hi,
I have configured all my macros variables in autoexec_usermods.sas file and when I query the macros by %put ¯ovarivale, I cannot able to fetch the data from the file.
Throwing me Apparent Symbolic reference error. But the similar type of macros , I have written in other levels and I can able to access that.
I feel something is missing in one of the level while reading the data from autoexec_usermods file.
Can anyone please help me in that. Thanks in advance.
Suggestions (to help us help you):
And also supply in which server environment the error happens (workspace vs. stored process), and the complete path to the autoexec_usermods.sas file. It may be you edited the wrong file, or that the server is a persistent one (pooled, stored process) and needs to be restarted.
I'd have to strongly recommend against storing user credentials in macros, even (so called) masked passwords.
If you are running on a metadata platform, rather than define user & password, instead use "authdomain=MyAuthDomain" and set up the authentication domain in metadata (or have your platform admin do it for you).
Doesn't directly resolve your macro issue, but since you brought up credentials, thought it worth mentioning.
That aside, can you supply code & logs, even if you mask any sensitive information? Also, do the macro variables contain any special characters - an individual quote, an individual bracket, a keyword like OR, IN, etc?
Have you considered setting up your libraries in SAS metadata? This avoids any AUTOEXEC maintenance at all and using @AndrewHowell's recommendations you can also keep your usernames and passwords encoded.
Hi,
Sorry for late response.
Macros has been updated in autoexec file of Batch server (not in Workspace or Stored Process server). I have rectified the issue by included the SAS users/groups in the SASApp --> logical Grid sever and in Grid Options Set Mappings.
But one thing I need to understand in 9.4 platform. So whenever I update the autoexec file under Batch server , I wont restart the object spawner.
But recently did one change in autoexec file under Stored Process server and it requires restart of Object spawner services and then I can able to access the macros.
Whether the same case of Workspace server as well???
Workspace servers are started everytime a user requests one. Pooled workspace servers and stored process servers are started once and persist, so you need to restart the spawner to get new instances that read and execute the changed autoexecs.
The SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment.
SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.
Find more tutorials on the SAS Users YouTube channel.