<?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 Proc format to be used in UPCASE in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-format-to-be-used-in-UPCASE/m-p/632861#M187682</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;I have a stored format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc format library=RECEIVE.DSTERM_DSDECOD ;&lt;BR /&gt;value DSTERM 1='Adverse Event'&lt;BR /&gt;2='Protocol Nonompliance'&lt;BR /&gt;3='Lost to followup'&lt;BR /&gt;4='Investigator decision'&lt;BR /&gt;5='patient Withdrawn consent'&lt;BR /&gt;6='Death'&lt;BR /&gt;7='Ineligible'&lt;BR /&gt;8='Other';&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i would like to assign the character parts of this format to a new variable name DSDECOD but with UPPERCASE.&lt;/P&gt;
&lt;P&gt;I was thinking bout using upcase(), but don't know how to assign the character values to the DSDECOD variable.&lt;/P&gt;
&lt;P&gt;Is there any other efficient way out. Kindly help.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Mar 2020 11:08:45 GMT</pubDate>
    <dc:creator>sahoositaram555</dc:creator>
    <dc:date>2020-03-18T11:08:45Z</dc:date>
    <item>
      <title>Proc format to be used in UPCASE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-format-to-be-used-in-UPCASE/m-p/632861#M187682</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;I have a stored format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc format library=RECEIVE.DSTERM_DSDECOD ;&lt;BR /&gt;value DSTERM 1='Adverse Event'&lt;BR /&gt;2='Protocol Nonompliance'&lt;BR /&gt;3='Lost to followup'&lt;BR /&gt;4='Investigator decision'&lt;BR /&gt;5='patient Withdrawn consent'&lt;BR /&gt;6='Death'&lt;BR /&gt;7='Ineligible'&lt;BR /&gt;8='Other';&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i would like to assign the character parts of this format to a new variable name DSDECOD but with UPPERCASE.&lt;/P&gt;
&lt;P&gt;I was thinking bout using upcase(), but don't know how to assign the character values to the DSDECOD variable.&lt;/P&gt;
&lt;P&gt;Is there any other efficient way out. Kindly help.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2020 11:08:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-format-to-be-used-in-UPCASE/m-p/632861#M187682</guid>
      <dc:creator>sahoositaram555</dc:creator>
      <dc:date>2020-03-18T11:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Porc format to be used in UPCASE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-format-to-be-used-in-UPCASE/m-p/632864#M187684</link>
      <description>&lt;P&gt;Try&lt;STRONG&gt;&amp;nbsp;DSDECOD&amp;nbsp; = upcase(put(var,&amp;nbsp;DSTERM.);&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2020 06:21:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-format-to-be-used-in-UPCASE/m-p/632864#M187684</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-03-18T06:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Proc format to be used in UPCASE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-format-to-be-used-in-UPCASE/m-p/632984#M187736</link>
      <description>&lt;P&gt;If you are going to do this frequently you might consider building another format and use the one you need depending on the specific situation:&lt;/P&gt;
&lt;PRE&gt;proc format library=RECEIVE.DSTERM_DSDECOD ;
value DSTERMUP 1='ADVERSE EVENT'
2='PROTOCOL NONOMPLIANCE'
3='LOST TO FOLLOWUP'
4='INVESTIGATOR DECISION'
5='PATIENT WITHDRAWN CONSENT'
6='DEATH'
7='INELIGIBLE'
8='OTHER';

run;
&lt;/PRE&gt;
&lt;P&gt;Notice the name of the format ends in UP to differentiate the values.&lt;/P&gt;
&lt;P&gt;Some of my variables I have multiple formats for different uses. Such as having acronym,&amp;nbsp;short and long text versions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW is "Nonompliance" supposed to be "Noncompliance"?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2020 15:17:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-format-to-be-used-in-UPCASE/m-p/632984#M187736</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-03-18T15:17:10Z</dc:date>
    </item>
  </channel>
</rss>

