BookmarkSubscribeRSS Feed
cgtaylor22
Fluorite | Level 6

I am running a GMAP procedure in SAS EG, but it looks like the graph is being displayed in the SAS WORK location on Unix.  I see this NOTE in the SAS log:

 

NOTE: 2 records written to /saswork/SAS_workC019018701E0_vaathmr1398/SAS_workAFC6018701E0_vaathmr1398/gmap1.png.

Here is what I have for code:

proc gmap map = maps.usconty data=areax;

id state county;

choro ventiles / cdefault=yellow;

run;

quit;

Does anyone know what options/paramters to change in order to get the graph to display in EG?  Thanks.

4 REPLIES 4
ChrisHemedinger
Community Manager

Cyndy,

By default, SAS Enterprise Guide generates the ODS statements that direct all output, including graphs, back into your SAS Enterprise Guide project.  The default ODS destination is SAS Report, but you can change to another format, such as HTML.

SAS WORK is the default destination for graph content, but SAS Enterprise Guide should assemble the results and bring them into your project for viewing.  If that's not happening, there could be something else going on.  Is your program running on the SAS server that SAS Enterprise Guide is connected to?  Or is there perhaps another session (via SAS Grid Computing or SAS/CONNECT) where this segment of code might be running?

You can also specify your own ODS destinations and exert more control over where the result content is sent.  Did you do that within your program or are you relying on the SAS Enterprise Guide behavior?

Here's a blog post about doing more with ODS:

Take control of ODS results in SAS Enterprise Guide - The SAS Dummy

Chris

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
jakarman
Barite | Level 11

With more modern releases SAS is moving from the old SAS/graph procedures to the ODS graphics ones.
The ODS graphics is mostly displaying automatic in Eguide where the old SAS/Graph are creating image files in a classic way.

Some background: SAS/GRAPH(R) 9.3: Reference, Third Edition  showing the use of graphics and html.  
Html usage is needing a storage location for images, SAS/STAT(R) 9.2 User's Guide, Second Edition (Saving Graphics Image Files). This is what you are seeing is happening

---->-- ja karman --<-----
ChrisHemedinger
Community Manager

The original poster included an example of PROC GMAP, which is part of SAS/GRAPH and doesn't have an ODS Graphics equivalent.  But even the SAS/GRAPH procedures can produce PNG files (as in the provided example), which SAS Enterprise Guide should bring back into your project automatically. 

It does this by parsing the HTML (or SAS Report), finding the original location of the image in your WORK folder, and downloading the image while fixing the HTML reference to render properly in your project.  If it's not happening properly in your case, we'll need to look more closely at the ODS statements that are in place while the program is running.

Chris

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
jakarman
Barite | Level 11

Yep Chris, that should work bringing it back to Eguide in a modified setting, unless disabled.

The only thing we are seeing is the creation of the png file in a location that all makes sense in the sas-log.
We are missing all information around what is happening The ODS statements, may be an error in a next step stopping displaying the output/results.    

---->-- ja karman --<-----

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
  • 4 replies
  • 2479 views
  • 0 likes
  • 3 in conversation