BookmarkSubscribeRSS Feed
BMH_KH
Calcite | Level 5

The code below worked in v9.2 but, now in v9.3, the output PNG file from PROC GMPA goes to a temporary sub-directory in the SAS directory instead of the path name denoted in the FILENAME statement.  Does anyone know why this no longer works?!

FILENAME plots "C:\Maps\";

DEVICE=png transparency GSFNAME=plots GSFMODE=REPLACE NOFILEONLY;

PROC gmap data=mapproj map=mapproj anno=annoProj2;

     id state;

     choro state / nolegend coutline=black name="OutMap";

run; quit;

1 REPLY 1
MartinMincey
SAS Employee

Hello,

The problem you are running into is due to a change that was made starting with SAS 9.3 where SAS 9.3 now creates HTML output by default and disables the default listing destination.  To circumvent this problem with SAS 9.3, add the following two statements to the beginning of your SAS code:

   ods _ALL_ close;

   ods listing;

Here are links to a couple of SAS usage notes which document this change:

49388 - Graphics output might not be sent to the desired location with SAS® 9.3

42874 - Default behavior for the SAS windowing environment on Microsoft Windows, UNIX, and Linux ope...

Regards,

Martin Mincey

SAS Technical Support

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 1 reply
  • 1200 views
  • 0 likes
  • 2 in conversation