BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
nbasnet
Fluorite | Level 6

I've defined 7 titles to be displayed with the map.

Title1.....title7;

But when the map is generated , the title are not justified.

Below is the code to generate the map:

goptions dev=png gunit=in hsoze=7 vsize=10;

ods listing close;

%stpbegin;

proc gmap data=zip map-map;

...code.....;

run;

quit;

title;

%stpbegin;

ods listing;

This is a web server application. so the output is directly generated to the url.

Additional parameters used are:

_odsoptions=%str(body=_webput(no_top_matter no_bottom_matter));

_odsoptions=rs=none;

_result=streamfragment;

_gopt_device=javaaimg;

_odsstyle=sasweb;

_goptions=accessible border;

odsdest=;


1 ACCEPTED SOLUTION

Accepted Solutions
GraphGuy
Meteorite | Level 14

When running a sas/graph program as a stored process, you can't just say "goptions device=png", therefore that is probably being ignored, and your gmap is being drawn with the default (which appears to be device=javaimg). And with dev=java or javaimg, gtitles are not supported, and therefore the titles are being written out separate from the image...

Try running it like this, and let us know how it comes out...

%let _GOPT_DEVICE=png;

%let _ODSOPTIONS=gtitle gfootnote style=sasweb;

%stpbegin;

View solution in original post

3 REPLIES 3
GraphGuy
Meteorite | Level 14

When running a sas/graph program as a stored process, you can't just say "goptions device=png", therefore that is probably being ignored, and your gmap is being drawn with the default (which appears to be device=javaimg). And with dev=java or javaimg, gtitles are not supported, and therefore the titles are being written out separate from the image...

Try running it like this, and let us know how it comes out...

%let _GOPT_DEVICE=png;

%let _ODSOPTIONS=gtitle gfootnote style=sasweb;

%stpbegin;

nbasnet
Fluorite | Level 6

Thank you Robert, that solved the title problem.

But with "_gopt_device=png" , title statement works but legend doesn't. Legend is not displayed in the output.

nbasnet
Fluorite | Level 6

Never mind. I figured out the legend issue.

Thank you for your help, Robert.

Regards

Nitesh

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
  • 3 replies
  • 1008 views
  • 1 like
  • 2 in conversation