<?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/511496#M137651</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input sub stdt :date7.  endt :date7.  quan;
format stdt date7.  endt date7. ;
cards;
111 10feb18 16feb18 10
222 10feb18 15feb18 5
;

data want;
set have(rename=(quan=_q));
call missing(_iorc_);
do stdt=stdt to endt;
endt=stdt;
_iorc_+1;
quan=ifn(mod(_iorc_,2) ne 0, _q,0);
output;
end;
drop _:;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 08 Nov 2018 19:22:14 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2018-11-08T19:22:14Z</dc:date>
    <item>
      <title>data logic</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-logic/m-p/511487#M137644</link>
      <description>&lt;P&gt;All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have the following data structure (see attachment)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Days is calculated as ENDT-STDT+1&lt;/P&gt;
&lt;P&gt;and I should be able to create the following data structure i.e. expand the STDT , ENDT interval in to 7 records(# of days ) and populate values in quan variable as follows (10 ,&amp;nbsp; 0 , 10 .. upto ENDT)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 19:05:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-logic/m-p/511487#M137644</guid>
      <dc:creator>Almoha</dc:creator>
      <dc:date>2018-11-08T19:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: data logic</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-logic/m-p/511496#M137651</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input sub stdt :date7.  endt :date7.  quan;
format stdt date7.  endt date7. ;
cards;
111 10feb18 16feb18 10
222 10feb18 15feb18 5
;

data want;
set have(rename=(quan=_q));
call missing(_iorc_);
do stdt=stdt to endt;
endt=stdt;
_iorc_+1;
quan=ifn(mod(_iorc_,2) ne 0, _q,0);
output;
end;
drop _:;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Nov 2018 19:22:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-logic/m-p/511496#M137651</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-11-08T19:22:14Z</dc:date>
    </item>
  </channel>
</rss>

