SAS and Lotus Notes, an ideal combination for ... - sasCommunity
SAS and Lotus Notes, an ideal combination for ... - sasCommunity
SAS and Lotus Notes, an ideal combination for ... - sasCommunity
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
3. A clickable map<br />
The last part of this paper shows <strong>an</strong> example of a clickable map. A map is created using the<br />
GMAP-procedure <strong><strong>an</strong>d</strong> hotspots are added using the <strong>an</strong>notate-facility.<br />
Example: a clickable map<br />
data hagros;<br />
retain XSys YSys '2' When 'A' Position 'E';<br />
length text $2;<br />
x=28.8; y=29.2; text='g'; HTML =<br />
'href="/hugs/sasintra.nsf/DbCode/m040/$file/mchartmain.htm?OpenElement"';<br />
output;<br />
x=29; y=28.3; text='04'; HTML='';<br />
output;<br />
x=29.4; y=29.2; text='r'; HTML = 'href="/hugs/<strong>SAS</strong>Intra.NSF/<strong>SAS</strong>report?OpenAgent&04"';<br />
output;<br />
keep XSys YSys When Position Text X Y HTML;<br />
run;<br />
ods html file='eggkaart.htm'<br />
path=odsout<br />
base="/hugs/sasintra.nsf/DbCode/egg01/$file/";<br />
proc gmap data=hulp map=hugs.ozkaart;<br />
id k_egg;<br />
choro eggnr /discrete nolegend <strong>an</strong>no=hagros coutline=black;<br />
title font=hwdmx065 h=7 c=black 'Economische Geografisch Gebieden';<br />
run;<br />
quit;<br />
ods html close;<br />
In the datastep <strong>an</strong> <strong>an</strong>notate dataset is created. This dataset contains x <strong><strong>an</strong>d</strong> y co-ordinates of<br />
hotspots. The variable text is the hotspot that is shown on the map <strong><strong>an</strong>d</strong> the HTML-variable<br />
contains the URL to go to when the user clicks on the hotspot. In this case the first hotspot<br />
(‘g’) goes to <strong>an</strong>other HTML-file in the LN-database. The other hotspot (‘r’) starts a LN-agent<br />
with 04 as a parameter.<br />
The GMAP-procedure creates the map <strong><strong>an</strong>d</strong> uses the <strong>an</strong>notate-dataset to create the hotspots.<br />
Conclusion<br />
The new Output Delivery System makes it very easy to create HTML-output. Both text<br />
(tables) <strong><strong>an</strong>d</strong> graphics c<strong>an</strong> be made by adding a few statements to your existing code. By<br />
adding some HTML-statements yourself or by using different options <strong><strong>an</strong>d</strong> devices you c<strong>an</strong><br />
add extra features <strong>for</strong> extra functionality or just to make it all look a bit nicer. By using <strong>Lotus</strong><br />
<strong>Notes</strong> to store all webcontent everything is stored in a structured way. Besides that it is<br />
possible to use <strong>an</strong> existing infrastructure including security <strong><strong>an</strong>d</strong> navigation.<br />
References<br />
Walker, Jamie (1997) Integrating <strong>Lotus</strong> <strong>Notes</strong> ® with <strong>SAS</strong> ® , <strong>SAS</strong> ®<br />
6