When you create the
stored process, it must meet the following requirements:
-
create an image file in one of the following formats:
PNG, JPG, and GIF (but not animated GIF).
-
-
write directly to _WEBOUT.
-
not include
the %STPBEGIN and %STPEND macros.
-
not produce
HTML output. SAS BI Dashboard does not support the display of HTML
content.
The stored process that
you want to use must include GOPTIONS statements to direct the output
to an image file through the special fileref _WEBOUT. Add the following
code at the beginning of the
SAS/GRAPH code that creates the image:
goptions gsfname=_webout gsfmode=replace;
goptions device=png;
Note: The device setting must be
GIF, JPG, or PNG.
Be
sure to use the following settings in SAS Enterprise Guide:
-
Turn off stored process macros.
In the
Stored
Process Manager window, view the SAS Code pane. Turn
off stored process macros by clicking
Include code for and
clearing the
Stored process macros selection.
The following message appears:
The append macros setting is disabled and the SAS code does not
contain the %stpbegin and %stpend macros.
Would you like to turn on the append macros setting?"
Click
No to
dismiss the message.
-
Specify the stored process server.
In the
Stored
Process Manager window, view the Execution Options pane.
In the
Execution server field, select
SASApp
— Logical Stored Process Server and specify the
location of the Stored Process server.
-
Set the result type to
streaming
.
In the
Stored
Process Manager window, view the Execution Options pane.
In the
SAS Result Types this Stored Process can Support are,
select
Streaming.
Run the stored process
to make sure the output file is created. It is also a best practice
that detects whether your operating system permissions are adequate.
When the stored process
is created successfully, complete the following steps to copy the
Web address that executes the stored process:
-
Open the Stored Process
Web application.
-
Click
List
Available Stored Processes.
-
Locate the stored process
that you created and click to open it.
-
Right-click the stored
process image in the right pane and select
Properties.
-
In the
Properties window,
select and copy the Web address from the
Address (URL) field.
Note: In some Web browsers, you
might have to scroll down while you select the Web address in order
to copy the entire Web address.