<?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: in data i have product code of different type i need in separate line in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/in-data-i-have-product-code-of-different-type-i-need-in-separate/m-p/805460#M317296</link>
    <description>&lt;P&gt;Thanks a ton&lt;/P&gt;</description>
    <pubDate>Fri, 01 Apr 2022 08:48:53 GMT</pubDate>
    <dc:creator>aanan1417</dc:creator>
    <dc:date>2022-04-01T08:48:53Z</dc:date>
    <item>
      <title>in data i have product code of different type i need in separate line</title>
      <link>https://communities.sas.com/t5/SAS-Programming/in-data-i-have-product-code-of-different-type-i-need-in-separate/m-p/805433#M317281</link>
      <description>&lt;P&gt;data have;&lt;/P&gt;
&lt;P&gt;input product_code product_1 product_id;&lt;/P&gt;
&lt;P&gt;datalines;&lt;/P&gt;
&lt;P&gt;1011/1234&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; abc&amp;nbsp; 99&lt;/P&gt;
&lt;P&gt;1011&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; def&amp;nbsp; &amp;nbsp; 88&lt;/P&gt;
&lt;P&gt;1023/4098/7778/8989&amp;nbsp; &amp;nbsp; &amp;nbsp; gcj&amp;nbsp; &amp;nbsp; &amp;nbsp; 76&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;input product_code product_1 product_id;&lt;/P&gt;
&lt;P&gt;datalines;&lt;/P&gt;
&lt;P&gt;1011&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; abc&amp;nbsp; 99&lt;/P&gt;
&lt;P&gt;1234&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;abc&amp;nbsp; 99&lt;/P&gt;
&lt;P&gt;1011&amp;nbsp; &amp;nbsp; &amp;nbsp; def&amp;nbsp; &amp;nbsp; 88&lt;/P&gt;
&lt;P&gt;1023&amp;nbsp; &amp;nbsp; &amp;nbsp; gcj&amp;nbsp; &amp;nbsp; &amp;nbsp; 76&lt;/P&gt;
&lt;P&gt;4098&amp;nbsp; &amp;nbsp; &amp;nbsp; gcj&amp;nbsp; &amp;nbsp; &amp;nbsp; 76&lt;/P&gt;
&lt;P&gt;7778&amp;nbsp; &amp;nbsp; &amp;nbsp; gcj&amp;nbsp; &amp;nbsp; &amp;nbsp; 76&lt;/P&gt;
&lt;P&gt;8989&amp;nbsp; &amp;nbsp; &amp;nbsp; gcj&amp;nbsp; &amp;nbsp; &amp;nbsp; 76&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 05:46:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/in-data-i-have-product-code-of-different-type-i-need-in-separate/m-p/805433#M317281</guid>
      <dc:creator>aanan1417</dc:creator>
      <dc:date>2022-04-01T05:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: in data i have product code of different type i need in separate line</title>
      <link>https://communities.sas.com/t5/SAS-Programming/in-data-i-have-product-code-of-different-type-i-need-in-separate/m-p/805435#M317282</link>
      <description>&lt;PRE&gt; 69         data have;
 70         input product_code product_1 product_id;
 71         datalines;
 
 NOTE: Invalid data for product_code in line 72 1-9.
 NOTE: Invalid data for product_1 in line 72 34-36.
 REGEL:     ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0                     
 72         1011/1234                        abc  99
 product_code=. product_1=. product_id=99 _ERROR_=1 _N_=1
 NOTE: Invalid data for product_1 in line 73 39-41.
 73         1011                                  def    88
 product_code=1011 product_1=. product_id=88 _ERROR_=1 _N_=2
 NOTE: Invalid data for product_code in line 74 1-19.
 NOTE: Invalid data for product_1 in line 74 26-28.
 74         1023/4098/7778/8989      gcj      76
 product_code=. product_1=. product_id=76 _ERROR_=1 _N_=3
&lt;/PRE&gt;
&lt;P&gt;As a very important learning experience, fix this first.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 06:43:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/in-data-i-have-product-code-of-different-type-i-need-in-separate/m-p/805435#M317282</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-04-01T06:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: in data i have product code of different type i need in separate line</title>
      <link>https://communities.sas.com/t5/SAS-Programming/in-data-i-have-product-code-of-different-type-i-need-in-separate/m-p/805459#M317295</link>
      <description>&lt;P&gt;You need&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;function countw to get the number of "words" / product_codes&lt;/LI&gt;
&lt;LI&gt;a loop&lt;/LI&gt;
&lt;LI&gt;function scan to extract the codes from the list&lt;/LI&gt;
&lt;LI&gt;output-statement&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Fri, 01 Apr 2022 08:47:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/in-data-i-have-product-code-of-different-type-i-need-in-separate/m-p/805459#M317295</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-04-01T08:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: in data i have product code of different type i need in separate line</title>
      <link>https://communities.sas.com/t5/SAS-Programming/in-data-i-have-product-code-of-different-type-i-need-in-separate/m-p/805460#M317296</link>
      <description>&lt;P&gt;Thanks a ton&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 08:48:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/in-data-i-have-product-code-of-different-type-i-need-in-separate/m-p/805460#M317296</guid>
      <dc:creator>aanan1417</dc:creator>
      <dc:date>2022-04-01T08:48:53Z</dc:date>
    </item>
  </channel>
</rss>

