Architecting, installing and maintaining your SAS environment

Output to local server browser

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 5
Accepted Solution

Output to local server browser

Hello!

 

I am quite new to SAS and recently deployed a 9.4 environment. Everything is looking good, however the professor would like the browser output to open a local server based firefox installation on the SAS server. If I understand that correctly, you would not need the Remote Browser Server installed on the remote workstation. Does anyone know how I would point the SAS output to the local browser? The OS is RHEL6. 

 

Thank you!

 

 

 

 


Accepted Solutions
Solution
‎03-10-2017 07:33 AM
Super User
Posts: 7,808

Re: Output to local server browser

OK, so you have the X Windows session, which has a unique display address (echo $DISPLAY). The not so funny thing is that this is completely disconnected from what Enterprise Guide or SAS Studio is doing, so we need to make that connection ourselves.

 

To start any application on the SAS server (outside of SAS), you need your workspace server configured to allow XCMD. Do this in Management Console / Server Manager. The (probably SASApp) Workspace Server (not the Logical ... Workspace Server) has that configuration option.

Create your output as a HTML file.

Next I'd set DISPLAY to the value from your X Windows session and then start firefox from the command line. My preferred method looks like this:

filename oscmd pipe "export DISPLAY=your_display_address;firefox html_filename 2>&1";

data _null_;
infile oscmd;
input;
put _infile_;
run;

You should at least see the system's response to your commands in the SAS log.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers

View solution in original post


All Replies
Super User
Posts: 7,808

Re: Output to local server browser

"local server based firefox" is an oxymoron.

Either you want a local firefox to open, or one on the server. Which is it?

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Occasional Contributor
Posts: 5

Re: Output to local server browser

[ Edited ]
Posted in reply to KurtBremser

Wow...thanks for that! I would think you could answer your own question by looking at the subject line, but then you would not get to be so personable, huh? 

 

I would like for server firefox to display output. 

Super User
Posts: 7,808

Re: Output to local server browser

Well, around here you are expected to state your questions in a clear and universally understandable way. Keep in mind that many here are not native English speakers/writers and will miss nuances.

Your answer doesn't get you merit points either.

 

The question I have: if you open the browser that is installed on the server, who is supposed to see its output? EG or SAS Studio has no way of routing display output back to a remote client.

Do you have a GUI session to the server active, like X Windows?

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Occasional Contributor
Posts: 5

Re: Output to local server browser

Posted in reply to KurtBremser

Noted...

 

I'm not big on merit points anyway Smiley Happy

 

Yes, we are using various X Server products on Microsoft Windows for the GUI session. 

 

Thank you for your help BTW! 

Solution
‎03-10-2017 07:33 AM
Super User
Posts: 7,808

Re: Output to local server browser

OK, so you have the X Windows session, which has a unique display address (echo $DISPLAY). The not so funny thing is that this is completely disconnected from what Enterprise Guide or SAS Studio is doing, so we need to make that connection ourselves.

 

To start any application on the SAS server (outside of SAS), you need your workspace server configured to allow XCMD. Do this in Management Console / Server Manager. The (probably SASApp) Workspace Server (not the Logical ... Workspace Server) has that configuration option.

Create your output as a HTML file.

Next I'd set DISPLAY to the value from your X Windows session and then start firefox from the command line. My preferred method looks like this:

filename oscmd pipe "export DISPLAY=your_display_address;firefox html_filename 2>&1";

data _null_;
infile oscmd;
input;
put _infile_;
run;

You should at least see the system's response to your commands in the SAS log.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Occasional Contributor
Posts: 5

Re: Output to local server browser

Posted in reply to KurtBremser

Thank you sir for your help. I have been redirected to another project, but have provided your instructions to the individuals in need and believe it will satisfy their request. 

Trusted Advisor
Posts: 1,321

Re: Output to local server browser

Thanks @dwunder for sharing your actions. Can you please mark the question as solved so others may learn from the thread in future.

 

Kind Regards,

Michelle

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 7 replies
  • 245 views
  • 0 likes
  • 3 in conversation