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

Hello Everybody,

got stuck again on the GMAP statement.  I was wondering if there is a pattern definition that will allow a gray filled color area with black lines for a pattern.  Following is my code where I have added some patterns experimenting on the four levels I have- but I could not find anything on the internet on how to solve my problem.  I am also attaching a jpg (inserted in a word file) of what I get and what I want in a screen shot of a small area of the map.

Appreciate any help, best

Dimitrios

 

/** code starts here***/

goptions reset=all cback=white border htitle=12pt htext=10pt
display;
footnote3 height=5 angle=90' ';
pattern1 c=LIGGR ;
pattern2 c=brgr;
pattern3 v=m2n45 c=brgr ;
pattern4 v=m2n45 c=LIGGR ;
legend1 label=none shape=bar(4,2)
value=(height=2) across=3 mode=share origin=(45,0);
run;

 

proc gmap data=ma8 map=mapsgfk.world gout=gseg ;
id idname;
choro potential/ levels=4 coutline=black name='map1a' ;
run;

 

/** code ends here***/

1 ACCEPTED SOLUTION

Accepted Solutions
ChrisNZ
Tourmaline | Level 20

Like this?

 

proc catalog c=GSEG kill; run;

goptions reset=all cback=white border ;
pattern1 c=LIGGR repeat=99;

proc gmap data=MAPSGFK.EUROPE map=MAPSGFK.EUROPE gout=GSEG ;
  where IDNAME in:('Fran','Ita','Germ','Swi');
  id IDNAME;
  choro IDNAME / name='map1' ;
run;

pattern1 v=m2n45 c=brgr repeat=99;
proc gmap data=MAPSGFK.EUROPE map=MAPSGFK.EUROPE gout=GSEG ;
  where IDNAME in:('Fran','Ita','Germ','Swi');
  id IDNAME;
  choro IDNAME / name='map2' ;
run;
             
proc greplay igout   =GSEG  
             tc      =SASHELP.TEMPLT
             template=WHOLE
             nofs;
   treplay 1:map1 1:map2;
run;
quit;

Capture.PNG

 

 

 

 

View solution in original post

4 REPLIES 4
ChrisNZ
Tourmaline | Level 20

Please avoid posting MS Office files.

They carry a risk and many people will not/cannot download them.

Just add the image in the post.

ChrisNZ
Tourmaline | Level 20

Like this?

 

proc catalog c=GSEG kill; run;

goptions reset=all cback=white border ;
pattern1 c=LIGGR repeat=99;

proc gmap data=MAPSGFK.EUROPE map=MAPSGFK.EUROPE gout=GSEG ;
  where IDNAME in:('Fran','Ita','Germ','Swi');
  id IDNAME;
  choro IDNAME / name='map1' ;
run;

pattern1 v=m2n45 c=brgr repeat=99;
proc gmap data=MAPSGFK.EUROPE map=MAPSGFK.EUROPE gout=GSEG ;
  where IDNAME in:('Fran','Ita','Germ','Swi');
  id IDNAME;
  choro IDNAME / name='map2' ;
run;
             
proc greplay igout   =GSEG  
             tc      =SASHELP.TEMPLT
             template=WHOLE
             nofs;
   treplay 1:map1 1:map2;
run;
quit;

Capture.PNG

 

 

 

 

Dim13
Obsidian | Level 7

Excellent!

Thank you very much, now I got to apply it to my data,

Appreciate it,

Best

Dimitrios

Dim13
Obsidian | Level 7

Worked fine.  Thanks again.

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
  • 4 replies
  • 1271 views
  • 2 likes
  • 2 in conversation