<?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: Formatting ! in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Formatting/m-p/62408#M13609</link>
    <description>This works for PARTY given you data but you need to show more records, and complete specs.&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
ata test;&lt;BR /&gt;
   input (Cust Typ ID Field)($) field_value &amp;amp;$16.;&lt;BR /&gt;
   cards;&lt;BR /&gt;
100 EVT 23 PARTY JOHN SMITH&lt;BR /&gt;
100 EVT 23 PARTY EMMA SMITH &lt;BR /&gt;
100 EVT 23 PARTY BBT COMPANY&lt;BR /&gt;
123 EVT 1 AggValue 61309&lt;BR /&gt;
;;;;&lt;BR /&gt;
   run;&lt;BR /&gt;
proc print;&lt;BR /&gt;
   run;&lt;BR /&gt;
&lt;BR /&gt;
data test2;&lt;BR /&gt;
   do until(last.field);&lt;BR /&gt;
      set test;&lt;BR /&gt;
      by cust typ id field;&lt;BR /&gt;
      if field eq 'PARTY' then do;&lt;BR /&gt;
         length string $64;&lt;BR /&gt;
         string = catx(cat(substr(', &amp;amp;',1+last.field,1+last.field),' '),string,field_value);&lt;BR /&gt;
         end;&lt;BR /&gt;
      else string = ' ';&lt;BR /&gt;
      end;&lt;BR /&gt;
   run;&lt;BR /&gt;
proc print;&lt;BR /&gt;
   run;&lt;BR /&gt;
[/pre]</description>
    <pubDate>Tue, 10 Aug 2010 19:31:34 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2010-08-10T19:31:34Z</dc:date>
    <item>
      <title>Formatting !</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Formatting/m-p/62403#M13604</link>
      <description>Hi all!&lt;BR /&gt;
 I need to format the input data&lt;BR /&gt;
Thanks!</description>
      <pubDate>Tue, 10 Aug 2010 16:14:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Formatting/m-p/62403#M13604</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-08-10T16:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting !</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Formatting/m-p/62404#M13605</link>
      <description>Hi:&lt;BR /&gt;
  Looks like you also need to add punctuation $$, etc to the number for EVT 1 too?? Is this data and report or data manipulation related to your previous posts showing similar data???&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 10 Aug 2010 16:54:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Formatting/m-p/62404#M13605</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-08-10T16:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting !</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Formatting/m-p/62405#M13606</link>
      <description>Yes I need to add the $ sign for all amounts as well as inset commas and ampersands for names. &lt;BR /&gt;
This is basically the previous part of teh code which is formatting of the data.&lt;BR /&gt;
Thsi formatted data will be input to my other transwrd code.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
      <pubDate>Tue, 10 Aug 2010 16:58:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Formatting/m-p/62405#M13606</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-08-10T16:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting !</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Formatting/m-p/62406#M13607</link>
      <description>Does CUST=100 with EVT=23 have any relationship at all to CUST=123 with EVT=1??? I ask because with BY group processing, all the CUST=100 would sort before CUST=123. I sense that these 4 observations may be related to one "case"...what would happen if you had 2 "cases" How do you know that the EVT=1 belongs to the observations "above" it???&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 10 Aug 2010 17:31:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Formatting/m-p/62406#M13607</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-08-10T17:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting !</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Formatting/m-p/62407#M13608</link>
      <description>They are not related to Cust=123 in this example. But yes there can be a dollar amount as well as the customer name for Cust=100 or for that matter any customer.</description>
      <pubDate>Tue, 10 Aug 2010 18:30:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Formatting/m-p/62407#M13608</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-08-10T18:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting !</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Formatting/m-p/62408#M13609</link>
      <description>This works for PARTY given you data but you need to show more records, and complete specs.&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
ata test;&lt;BR /&gt;
   input (Cust Typ ID Field)($) field_value &amp;amp;$16.;&lt;BR /&gt;
   cards;&lt;BR /&gt;
100 EVT 23 PARTY JOHN SMITH&lt;BR /&gt;
100 EVT 23 PARTY EMMA SMITH &lt;BR /&gt;
100 EVT 23 PARTY BBT COMPANY&lt;BR /&gt;
123 EVT 1 AggValue 61309&lt;BR /&gt;
;;;;&lt;BR /&gt;
   run;&lt;BR /&gt;
proc print;&lt;BR /&gt;
   run;&lt;BR /&gt;
&lt;BR /&gt;
data test2;&lt;BR /&gt;
   do until(last.field);&lt;BR /&gt;
      set test;&lt;BR /&gt;
      by cust typ id field;&lt;BR /&gt;
      if field eq 'PARTY' then do;&lt;BR /&gt;
         length string $64;&lt;BR /&gt;
         string = catx(cat(substr(', &amp;amp;',1+last.field,1+last.field),' '),string,field_value);&lt;BR /&gt;
         end;&lt;BR /&gt;
      else string = ' ';&lt;BR /&gt;
      end;&lt;BR /&gt;
   run;&lt;BR /&gt;
proc print;&lt;BR /&gt;
   run;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Tue, 10 Aug 2010 19:31:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Formatting/m-p/62408#M13609</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2010-08-10T19:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting !</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Formatting/m-p/62409#M13610</link>
      <description>Hi:&lt;BR /&gt;
There have been a lot of previous postings about the John Smith and the EVT data -- rather than posting pieces of the same problem program over and over, perhaps you could share one entire program log and a sample of your data for folks to work with.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
These previous posts all seem to be related:&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/message.jspa?messageID=40884#40884" target="_blank"&gt;http://support.sas.com/forums/message.jspa?messageID=40884#40884&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=39405駭" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=39405駭&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=39561骉" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=39561骉&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=39972鰤" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=39972鰤&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=40211鴓" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=40211鴓&lt;/A&gt;</description>
      <pubDate>Tue, 31 Aug 2010 22:07:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Formatting/m-p/62409#M13610</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-08-31T22:07:32Z</dc:date>
    </item>
  </channel>
</rss>

