<?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: data logic in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/data-logic/m-p/544350#M150542</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
    set have;
    col1=stdy;
    output;
    col1=endy;
    output;
    keep sub col1 res;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 19 Mar 2019 19:51:59 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-03-19T19:51:59Z</dc:date>
    <item>
      <title>data logic</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-logic/m-p/544346#M150541</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i have the following data, for every on record i need to create two records with stdy and endy values populated under col1 and values in res must be populated under res1 as follows&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;any suggestions?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is what i have&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sub stdy endy res&lt;BR /&gt;111 1 7 10&lt;BR /&gt;111 8 10 20&lt;BR /&gt;111 11 13 20&lt;BR /&gt;111 15 20 40&lt;BR /&gt;222 12 17 70&lt;BR /&gt;222 18 30 70&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the final output&lt;BR /&gt;sub col1 res1&lt;BR /&gt;111 1 10&lt;BR /&gt;111 7 10&lt;BR /&gt;111 8 20&lt;BR /&gt;111 10 20&lt;BR /&gt;111 11 20&lt;BR /&gt;111 13 20 &lt;BR /&gt;111 15 40&lt;BR /&gt;111 20 40&lt;BR /&gt;222 12 70&lt;BR /&gt;222 17 70&lt;BR /&gt;222 18 70 &lt;BR /&gt;222 30 70&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 19:44:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-logic/m-p/544346#M150541</guid>
      <dc:creator>Almoha</dc:creator>
      <dc:date>2019-03-19T19:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: data logic</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-logic/m-p/544350#M150542</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
    set have;
    col1=stdy;
    output;
    col1=endy;
    output;
    keep sub col1 res;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Mar 2019 19:51:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-logic/m-p/544350#M150542</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-03-19T19:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: data logic</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-logic/m-p/544351#M150543</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input sub stdy endy res;
cards;
111 1 7 10
111 8 10 20
111 11 13 20
111 15 20 40
222 12 17 70
222 18 30 70
;

data want;
set have;
do col1=stdy,endy;
output;
end;
drop stdy endy;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Mar 2019 19:56:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-logic/m-p/544351#M150543</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-03-19T19:56:40Z</dc:date>
    </item>
  </channel>
</rss>

