<?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: create dynamic char Formats in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/create-dynamic-char-Formats/m-p/11499#M1366</link>
    <description>hey Thanks Geniz</description>
    <pubDate>Fri, 27 Mar 2009 07:24:24 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-03-27T07:24:24Z</dc:date>
    <item>
      <title>create dynamic char Formats</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/create-dynamic-char-Formats/m-p/11497#M1364</link>
      <description>Hi friends&lt;BR /&gt;
&lt;BR /&gt;
I have a problem may be some one could help me out&lt;BR /&gt;
i have a Char Column and it has value like C090304,  C090305 , H090304 , I090306&lt;BR /&gt;
but I have to display&lt;BR /&gt;
 H090304 - Hold From 04/03&lt;BR /&gt;
 C090304 - Cancel on 04/03&lt;BR /&gt;
I090306 - Issued on 06/03&lt;BR /&gt;
&lt;BR /&gt;
Can i do it using proc format. or how can i achieve. I know i can do it easyly using data step and string functions ... but i don't want to create new column.&lt;BR /&gt;
&lt;BR /&gt;
Regards&lt;BR /&gt;
Avi</description>
      <pubDate>Thu, 26 Mar 2009 10:28:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/create-dynamic-char-Formats/m-p/11497#M1364</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-03-26T10:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: create dynamic char Formats</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/create-dynamic-char-Formats/m-p/11498#M1365</link>
      <description>This is one way of doing it....[pre]&lt;BR /&gt;
&lt;BR /&gt;
data input(keep=CharColumn);&lt;BR /&gt;
input CharColumn $;&lt;BR /&gt;
datalines;&lt;BR /&gt;
H090304&lt;BR /&gt;
C090304&lt;BR /&gt;
I090306&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
 &lt;BR /&gt;
proc format;&lt;BR /&gt;
  value $type&lt;BR /&gt;
  'H' = 'Hold from'&lt;BR /&gt;
  'C' = 'Cancel on'&lt;BR /&gt;
  'I' = 'Issued on';&lt;BR /&gt;
run;&lt;BR /&gt;
 &lt;BR /&gt;
data _format(keep=fmtname start end label);&lt;BR /&gt;
  retain fmtname '$Display';&lt;BR /&gt;
  set input(rename=(CharColumn=start));&lt;BR /&gt;
  end=start;&lt;BR /&gt;
  label=put(substr(start,1,1),type.)!!' '!!substr(start,6,2)!!'/'!!substr(start,4,2);&lt;BR /&gt;
run;&lt;BR /&gt;
 &lt;BR /&gt;
proc format cntlin=_format; run;&lt;BR /&gt;
 &lt;BR /&gt;
proc print data=input;&lt;BR /&gt;
  format CharColumn $display.;&lt;BR /&gt;
run;[/pre]</description>
      <pubDate>Thu, 26 Mar 2009 12:17:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/create-dynamic-char-Formats/m-p/11498#M1365</guid>
      <dc:creator>GertNissen</dc:creator>
      <dc:date>2009-03-26T12:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: create dynamic char Formats</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/create-dynamic-char-Formats/m-p/11499#M1366</link>
      <description>hey Thanks Geniz</description>
      <pubDate>Fri, 27 Mar 2009 07:24:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/create-dynamic-char-Formats/m-p/11499#M1366</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-03-27T07:24:24Z</dc:date>
    </item>
  </channel>
</rss>

