Data visualization with SAS programming

FILENAME statement for PROC GMAP PNG files not working in 9.3

Reply
New Contributor
Posts: 3

FILENAME statement for PROC GMAP PNG files not working in 9.3

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;

SAS Employee
Posts: 3

Re: FILENAME statement for PROC GMAP PNG files not working in 9.3

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

Ask a Question
Discussion stats
  • 1 reply
  • 447 views
  • 0 likes
  • 2 in conversation