<?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 Insert a plus sign before a computed variable in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Insert-a-plus-sign-before-a-computed-variable/m-p/38032#M4641</link>
    <description>Hi all,&lt;BR /&gt;
&lt;BR /&gt;
I put together a program to display Progression Free Survival (PFS) and Overall Survival (OS) for a listing, i.e. it displays these results as a number of days, 25, 110, etc. One of the requests from a reviewer (and common in these types of listings) is to display a + before the results if the subject is still alive, e.g. Subj 001 PFS = +99 (still alive) vs. Subj 002 PFS = 99 (died). I'm at a loss as to how to do this other than I know I'll have to check whether my Date of Death is either null or present. Any ideas?&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
&lt;BR /&gt;
John</description>
    <pubDate>Thu, 07 Jan 2010 18:57:29 GMT</pubDate>
    <dc:creator>psusudzi92</dc:creator>
    <dc:date>2010-01-07T18:57:29Z</dc:date>
    <item>
      <title>Insert a plus sign before a computed variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Insert-a-plus-sign-before-a-computed-variable/m-p/38032#M4641</link>
      <description>Hi all,&lt;BR /&gt;
&lt;BR /&gt;
I put together a program to display Progression Free Survival (PFS) and Overall Survival (OS) for a listing, i.e. it displays these results as a number of days, 25, 110, etc. One of the requests from a reviewer (and common in these types of listings) is to display a + before the results if the subject is still alive, e.g. Subj 001 PFS = +99 (still alive) vs. Subj 002 PFS = 99 (died). I'm at a loss as to how to do this other than I know I'll have to check whether my Date of Death is either null or present. Any ideas?&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
&lt;BR /&gt;
John</description>
      <pubDate>Thu, 07 Jan 2010 18:57:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Insert-a-plus-sign-before-a-computed-variable/m-p/38032#M4641</guid>
      <dc:creator>psusudzi92</dc:creator>
      <dc:date>2010-01-07T18:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Insert a plus sign before a computed variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Insert-a-plus-sign-before-a-computed-variable/m-p/38033#M4642</link>
      <description>You could create a format for your death indicator that assigns a value of + for alive and blank otherwise and then just print the two columns side-by-side.&lt;BR /&gt;
&lt;BR /&gt;
If the people receiving the listing are picky and insist on numbers like you displayed, you could create a display field that is text and a combination of the indicator and the number, something like&lt;BR /&gt;
length OSdisp $ 5;&lt;BR /&gt;
FORMAT osdisp $char5.;&lt;BR /&gt;
OSdisp=RIGHT(AliveAsPlus||LEFT(PUT(os,3.)));</description>
      <pubDate>Thu, 07 Jan 2010 19:28:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Insert-a-plus-sign-before-a-computed-variable/m-p/38033#M4642</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2010-01-07T19:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Insert a plus sign before a computed variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Insert-a-plus-sign-before-a-computed-variable/m-p/38034#M4643</link>
      <description>Thanks Doc!&lt;BR /&gt;
&lt;BR /&gt;
I'll give it a shot.&lt;BR /&gt;
&lt;BR /&gt;
John</description>
      <pubDate>Tue, 12 Jan 2010 19:10:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Insert-a-plus-sign-before-a-computed-variable/m-p/38034#M4643</guid>
      <dc:creator>psusudzi92</dc:creator>
      <dc:date>2010-01-12T19:10:18Z</dc:date>
    </item>
  </channel>
</rss>

