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.;
choro upb_pct / cempty=CXE9967A
legend = legend;
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?
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.