<?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 read the address and write it in different column in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/read-the-address-and-write-it-in-different-column/m-p/30930#M4642</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your data always lays like this, and there is no missing rows, switching rows etc, you can try this array approach:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;input var $20.;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;shri&lt;/P&gt;&lt;P&gt;bengal&lt;/P&gt;&lt;P&gt;india&lt;/P&gt;&lt;P&gt;shety&lt;/P&gt;&lt;P&gt;Ka&lt;/P&gt;&lt;P&gt;India&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want (drop=var);&lt;/P&gt;&lt;P&gt;array v $ name state country;&lt;/P&gt;&lt;P&gt;do _n_=1 to 3;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;v(_n_)=var;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Mar 2012 12:16:15 GMT</pubDate>
    <dc:creator>Haikuo</dc:creator>
    <dc:date>2012-03-14T12:16:15Z</dc:date>
    <item>
      <title>read the address and write it in different column</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/read-the-address-and-write-it-in-different-column/m-p/30929#M4641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the data is,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;shri&lt;/P&gt;&lt;P&gt;bengal&lt;/P&gt;&lt;P&gt;india&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;shety&lt;/P&gt;&lt;P&gt;Ka&lt;/P&gt;&lt;P&gt;India&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i want o/p as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;name&amp;nbsp;&amp;nbsp; state&amp;nbsp;&amp;nbsp; country&lt;/P&gt;&lt;P&gt;shri&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bengal&amp;nbsp;&amp;nbsp; india&lt;/P&gt;&lt;P&gt;shety&amp;nbsp; Ka&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; india&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i achieve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 03:43:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/read-the-address-and-write-it-in-different-column/m-p/30929#M4641</guid>
      <dc:creator>shru</dc:creator>
      <dc:date>2012-03-14T03:43:23Z</dc:date>
    </item>
    <item>
      <title>read the address and write it in different column</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/read-the-address-and-write-it-in-different-column/m-p/30930#M4642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your data always lays like this, and there is no missing rows, switching rows etc, you can try this array approach:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;input var $20.;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;shri&lt;/P&gt;&lt;P&gt;bengal&lt;/P&gt;&lt;P&gt;india&lt;/P&gt;&lt;P&gt;shety&lt;/P&gt;&lt;P&gt;Ka&lt;/P&gt;&lt;P&gt;India&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want (drop=var);&lt;/P&gt;&lt;P&gt;array v $ name state country;&lt;/P&gt;&lt;P&gt;do _n_=1 to 3;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;v(_n_)=var;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 12:16:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/read-the-address-and-write-it-in-different-column/m-p/30930#M4642</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2012-03-14T12:16:15Z</dc:date>
    </item>
    <item>
      <title>read the address and write it in different column</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/read-the-address-and-write-it-in-different-column/m-p/30931#M4643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or simply:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;length name country state $ 20;&lt;/P&gt;&lt;P&gt;input name &amp;amp; country &amp;amp; state &amp;amp;;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;shri&lt;/P&gt;&lt;P&gt;bengal&lt;/P&gt;&lt;P&gt;india&lt;/P&gt;&lt;P&gt;shety&lt;/P&gt;&lt;P&gt;Ka&lt;/P&gt;&lt;P&gt;India&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &amp;amp;s just allow an embedded blank to be part of the variable.&amp;nbsp; They are not necessary when you have no embedded blanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 12:26:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/read-the-address-and-write-it-in-different-column/m-p/30931#M4643</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2012-03-14T12:26:31Z</dc:date>
    </item>
    <item>
      <title>read the address and write it in different column</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/read-the-address-and-write-it-in-different-column/m-p/30932#M4644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;length name country state $ 20;&lt;/P&gt;&lt;P&gt;infile &amp;lt;your input filename or ref&amp;gt;;&lt;/P&gt;&lt;P&gt;input #1 name #2 country #3 state;&lt;/P&gt;&lt;P&gt;input; /* to skip blank line&amp;nbsp; assuming the pattern is consistent*/&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 15:16:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/read-the-address-and-write-it-in-different-column/m-p/30932#M4644</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-03-14T15:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: read the address and write it in different column</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/read-the-address-and-write-it-in-different-column/m-p/30933#M4645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;It workrd fine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 16:46:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/read-the-address-and-write-it-in-different-column/m-p/30933#M4645</guid>
      <dc:creator>shru</dc:creator>
      <dc:date>2012-03-15T16:46:36Z</dc:date>
    </item>
  </channel>
</rss>

