BookmarkSubscribeRSS Feed
ecarleen
Calcite | Level 5
I'd like to define and then access Unix environmental variables while running EG 4.1 on my Windows workstation.

I know that I can use sysget() to get the values of environmental variables. I succeeded with sysget('TZ').

But how do I define those environmental variables on the Unix server side (hp-ux)? I tried adding the definition to /etc/profile, but EG did not recognize variables defined there. Any suggestions?

My thanks...
2 REPLIES 2
deleted_user
Not applicable
I would recommend you NOT make changes to /etc/profile.
/etc/profile should only be edited by the Unix sys-admin.
Within your user login, there should also be .profile, which you may be able to edit.

But to add OS level environment variables via SAS, I have to ask why?
What are you trying to accomplish?
deleted_user
Not applicable
Absolutely correct Chuck. /etc/profile has global effect, and alterations there will influence every user, and possibly adversely.

However, Enterprise Guide uses a login which will have an associated .profile and this might be changed with no impact on other users of the Unix server.

Prior to the SAS9 BI platform, changes were needed to the environment variables to allow Oracle and other DBMS to be accessed from a SAS session. I am not sure that is required now, but there might be some confusion arising from conflicting instructions in an Access product manual and the BI manual. Either way, detailed discussions and testing with the SysAdmin would be strongly advised.

A call to Tech Support is also probably warranted.

Kind regards

David

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
  • 2 replies
  • 845 views
  • 0 likes
  • 2 in conversation