<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: template: issues with text/label in entrytitle and reference line in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/template-issues-with-text-label-in-entrytitle-and-reference-line/m-p/161365#M6045</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the first item, try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;entrytitle halign=center "ID: " eval(colname(_subj))&amp;nbsp; "&amp;nbsp;&amp;nbsp; Treatment group: " _trt&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /&amp;nbsp; textattrs=(size=10 family="Arial");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-or-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;entrytitle halign=center "ID: " eval(collabel(_subj))&amp;nbsp; "&amp;nbsp;&amp;nbsp; Treatment group: " _trt&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /&amp;nbsp; textattrs=(size=10 family="Arial");&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Hope this helps!&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jun 2014 15:00:36 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2014-06-30T15:00:36Z</dc:date>
    <item>
      <title>template: issues with text/label in entrytitle and reference line</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/template-issues-with-text-label-in-entrytitle-and-reference-line/m-p/161363#M6043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I have two issues with my template code;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I want to have some text at the top of the plot with ID, Treatment, sex, race and age. These are variables in the dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use the variable name in my grender code (eg as per _trt) and use the entry title below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgrender data= x template=steven;&lt;/P&gt;&lt;P&gt;by subjid trta;&lt;/P&gt;&lt;P&gt; dynamic _x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 'ady'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _y&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 'aval'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _var = 'paramcd'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _trt = 'trta'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _subj = 'subjid'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _label ='test values'&lt;/P&gt;&lt;P&gt; ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;entrytitle halign=center "ID: " _subj&amp;nbsp; "&amp;nbsp;&amp;nbsp; Treatment group: " _trt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /&amp;nbsp; textattrs=(size=10 family="Arial");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all I get is the text _subjid and _trt rather than the values. Ive got round it by using by variable but this ends up being stupid with 5 of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) The second issue is that I want to have reference lines at the start (x=0) labelled start, one at the day they stopped (varies per pt) labelled stop and the same for when they died.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; referenceline x=0 / lineattrs=(pattern=1)&amp;nbsp; curvelabel="Start"&amp;nbsp; curvelabellocation=inside;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; referenceline x=died / lineattrs=(pattern=1) curvelabel="Died"&amp;nbsp; curvelabellocation=inside ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; referenceline x=stop / lineattrs=(pattern=1) curvelabel="Stop" curvelabellocation=inside ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this works fine for the x=0 line but puts the values rather than the label on the latter two.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have attached (hopefully) the program, dataset and output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adrienne M Bonwick (Adie)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 14:33:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/template-issues-with-text-label-in-entrytitle-and-reference-line/m-p/161363#M6043</guid>
      <dc:creator>Adie_efc</dc:creator>
      <dc:date>2014-06-30T14:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: template: issues with text/label in entrytitle and reference line</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/template-issues-with-text-label-in-entrytitle-and-reference-line/m-p/161364#M6044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ha! Formatting the variable so all the values are Died or Stop worked for the second issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format;&lt;BR /&gt;value died&lt;BR /&gt;&amp;nbsp; low - high ='Died';&lt;BR /&gt;value stop&lt;BR /&gt;&amp;nbsp; low - high ='Stop';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data x;&lt;BR /&gt;set x;&lt;BR /&gt;format died died. stop stop.;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 14:50:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/template-issues-with-text-label-in-entrytitle-and-reference-line/m-p/161364#M6044</guid>
      <dc:creator>Adie_efc</dc:creator>
      <dc:date>2014-06-30T14:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: template: issues with text/label in entrytitle and reference line</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/template-issues-with-text-label-in-entrytitle-and-reference-line/m-p/161365#M6045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the first item, try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;entrytitle halign=center "ID: " eval(colname(_subj))&amp;nbsp; "&amp;nbsp;&amp;nbsp; Treatment group: " _trt&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /&amp;nbsp; textattrs=(size=10 family="Arial");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-or-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;entrytitle halign=center "ID: " eval(collabel(_subj))&amp;nbsp; "&amp;nbsp;&amp;nbsp; Treatment group: " _trt&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /&amp;nbsp; textattrs=(size=10 family="Arial");&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Hope this helps!&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 15:00:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/template-issues-with-text-label-in-entrytitle-and-reference-line/m-p/161365#M6045</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2014-06-30T15:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: template: issues with text/label in entrytitle and reference line</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/template-issues-with-text-label-in-entrytitle-and-reference-line/m-p/161366#M6046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;entrytitle halign=center "Race: " eval(collabel(_race)) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /&amp;nbsp; textattrs=(size=10 family="Arial");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gives me the same thing Race: Race (the first example Colname) gives me Race: RACE. the value of Race is Caucasian.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="6743" alt="Capture.JPG" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/6743_Capture.JPG" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 15:06:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/template-issues-with-text-label-in-entrytitle-and-reference-line/m-p/161366#M6046</guid>
      <dc:creator>Adie_efc</dc:creator>
      <dc:date>2014-06-30T15:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: template: issues with text/label in entrytitle and reference line</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/template-issues-with-text-label-in-entrytitle-and-reference-line/m-p/161367#M6047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;p.s. Im using 9.3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 15:12:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/template-issues-with-text-label-in-entrytitle-and-reference-line/m-p/161367#M6047</guid>
      <dc:creator>Adie_efc</dc:creator>
      <dc:date>2014-06-30T15:12:05Z</dc:date>
    </item>
  </channel>
</rss>

