The SAS Output Delivery System and reporting techniques

Proc Gmap Question

Reply
N/A
Posts: 0

Proc Gmap Question

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;
Super Contributor
Super Contributor
Posts: 3,174

Re: Proc Gmap Question

Posted in reply to deleted_user
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
N/A
Posts: 0

Re: Proc Gmap Question

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.
Super Contributor
Super Contributor
Posts: 3,174

Re: Proc Gmap Question

Posted in reply to deleted_user
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.
PROC Star
Posts: 1,759

Re: Proc Gmap Question

Posted in reply to deleted_user
Warning: names are limited to 8 characters in 9.1.
Ask a Question
Discussion stats
  • 4 replies
  • 155 views
  • 0 likes
  • 3 in conversation