BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi,
How can I control the output file name in proc gmap? Currently SAS is producing gmap1.gif, gmap2.gif...and etc. I would like the output name same as the file name. Below is the code that I was submitting.

proc gmap all map=maps.us data=input_data all annotate=input_data;
format upb_pct dqp.;
by dealname;
id state;
choro upb_pct / cempty=CXE9967A
coutline=black
discrete
annotate=maplabel
legend = legend;

run;
quit;
4 REPLIES 4
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Explore using the NAME="your_prefix_name_goes_here" with the procedure.

Scott Barry
SBBWorks, Inc.


GMAP - CHORO Statement
http://support.sas.com/documentation/cdl/en/graphref/61884/HTML/default/gmap-choro-statement.htm
deleted_user
Not applicable
when i add the name='xxxx' the sas outputs my .gif files as xxxx1, xxxx2, and etc. I am using by variable to create multiple maps by city. How can i make sas to output files by the variable i am using? Since the variable name changes, I want SAS to produce output files for example, atlanta.gif, charlotte.gif, and etc. Is this possible?

Thanks in advance.
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
One technique is to pass your data file and using CALL EXECUTE, generate SAS code that invokes a SAS macro containing your PROC GMAP logic, using a WHERE statement to filter the input with each macro invocation. With the WHERE processing, you can then control the NAME="&your_name_var" which would be the same value as in your WHERE statement filter.

Scott Barry
SBBWorks, Inc.
ChrisNZ
Tourmaline | Level 20
Warning: names are limited to 8 characters in 9.1.
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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1633 views
  • 0 likes
  • 3 in conversation