Hi,
If you have to deal with 'Forecast Server/Studio' or SAS CPM, those client applications need to work with the 'sas-environment.xml' file.
If you have multiple SAS environments (like most), it's possible to set this file with the description of ALL your SAS environments. SAS users can then just select the appropriate environment they want to work it.
In our case, the following is kind of a puzzle. All 3 environments are identical, but the environment list (i.e. Forecast Stuio) only displays 2 of the 3 available. We've switched with settings all we want, the 'DEV' one NEVER appears on the list:
<environments xmlns="http://www.sas.com/xml/schema/sas-environments-9.4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.sas.com/xml/schema/sas-environments-9.4 http://www.sas.com/xml/schema/sas-environments-9.4/sas-environments-9.4.xsd" version="2.0">
<environment platform-version="9.4" default="false" name="default">
<desc>PROD - prod.server.ip</desc>
<service-registry>http://prod.server.ip:7980/SASWIPClientAccess/remote/ServiceRegistry</service-registry>
<service-registry interface-type="soap">http://prod.server.ip:7980/SASWIPSoapServices/services/ServiceRegistry</service-registry>
<service-registry interface-type="rest">http://prod.server.ip:7980/SASWIPClientAccess/rest/</service-registry>
</environment>
<environment platform-version="9.4" default="false" name="default1">
<desc>DEV - dev.server.ip</desc>
<service-registry>http://dev.server.ip:7980/SASWIPClientAccess/remote/ServiceRegistry</service-registry>
<service-registry interface-type="soap">http://dev.server.ip:7980/SASWIPSoapServices/services/ServiceRegistry</service-registry>
<service-registry interface-type="rest">http://dev.server.ip:7980/SASWIPClientAccess/rest/</service-registry>
</environment>
<environment platform-version="9.4" default="false" name="default2">
<desc>STAGING - staging.server.ip</desc>
<service-registry>http://staging.server.ip:7980/SASWIPClientAccess/remote/ServiceRegistry</service-registry>
<service-registry interface-type="soap">http://staging.server.ip:7980/SASWIPSoapServices/services/ServiceRegistry</service-registry>
<service-registry interface-type="rest">http://staging.server.ip:7980/SASWIPClientAccess/rest/</service-registry>
</environment>
</environments>
Sorry for the display, a cut/paste in a text editor makes it easier to read. (See attached)
Any input appreciated,
Thank you!
Hi Anand_V,
Indeed, we've placed the 'Dev' differently, removed the two others, but to no avail. As you suggest, some sort of XML cleaner may help. I will give it a try.
Thank you for your time!
The SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment.
Learn how to install the SAS Viya CLI and a few commands you may find useful in this video by SAS’ Darrell Barton.
Find more tutorials on the SAS Users YouTube channel.