<?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: problem with sas code in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/problem-with-sas-code/m-p/372550#M89091</link>
    <description>&lt;P&gt;Please anyone reply fast. Refer the above attachment for dataset.&lt;/P&gt;</description>
    <pubDate>Sun, 02 Jul 2017 14:30:39 GMT</pubDate>
    <dc:creator>atulsingh</dc:creator>
    <dc:date>2017-07-02T14:30:39Z</dc:date>
    <item>
      <title>problem with sas code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/problem-with-sas-code/m-p/372544#M89085</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am facing problem with entering dates manually. Isn't there any loop kind of procedure so that dates get entered automatically.&lt;/P&gt;&lt;P&gt;for eg: I am having a dataset of 21 observations, i want to enter different date infront of each of them. Will i have to enter them manually using cards statement or there is an automated procedure?&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2017 14:12:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/problem-with-sas-code/m-p/372544#M89085</guid>
      <dc:creator>atulsingh</dc:creator>
      <dc:date>2017-07-02T14:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: problem with sas code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/problem-with-sas-code/m-p/372545#M89086</link>
      <description>&lt;P&gt;What dates do you want? What do you mean by "entered"? &amp;nbsp;Where do you want it "entered"? &amp;nbsp;How can a date be in front of an observation?&lt;/P&gt;
&lt;P&gt;Please provide a litte more detail. For example you could provide a data step to create a copy of your 21 observations and explain what dates you need added.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2017 14:19:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/problem-with-sas-code/m-p/372545#M89086</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-07-02T14:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: problem with sas code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/problem-with-sas-code/m-p/372548#M89089</link>
      <description>&lt;P&gt;I want dates from 1st july 2017 to 21st july 2017 infront of every observations. How to do it?&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/14021iE5A4FE8EF9208DC5/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="sas.png" title="sas.png" /&gt;</description>
      <pubDate>Sun, 02 Jul 2017 14:25:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/problem-with-sas-code/m-p/372548#M89089</guid>
      <dc:creator>atulsingh</dc:creator>
      <dc:date>2017-07-02T14:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: problem with sas code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/problem-with-sas-code/m-p/372550#M89091</link>
      <description>&lt;P&gt;Please anyone reply fast. Refer the above attachment for dataset.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2017 14:30:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/problem-with-sas-code/m-p/372550#M89091</guid>
      <dc:creator>atulsingh</dc:creator>
      <dc:date>2017-07-02T14:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: problem with sas code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/problem-with-sas-code/m-p/372551#M89092</link>
      <description>&lt;P&gt;You showed us what you have. What do you need as output - that's unclear.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138415"&gt;@atulsingh&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;I am facing problem with entering dates manually. Isn't there any loop kind of procedure so that dates get entered automatically.&lt;/P&gt;
&lt;P&gt;for eg: I am having a dataset of 21 observations, i want to enter different date infront of each of them. Will i have to enter them manually using cards statement or there is an automated procedure?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2017 14:48:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/problem-with-sas-code/m-p/372551#M89092</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-02T14:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: problem with sas code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/problem-with-sas-code/m-p/372558#M89099</link>
      <description>&lt;P&gt;Consider that you have the dataset with name have and you need to create a variable date in want. so you could follow as below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the date will create dates from 01jul2017 to 21jul2017 depending on the number of rows&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
do until(date ne .);
set have;
date=intnx('day','01jul2017'd,_n_);
end;
format date date9.;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 02 Jul 2017 15:01:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/problem-with-sas-code/m-p/372558#M89099</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2017-07-02T15:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: problem with sas code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/problem-with-sas-code/m-p/372584#M89105</link>
      <description>&lt;P&gt;Hi, curious ... why use a loop in this example ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;data want;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;do until(date ne .);&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;set have;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;date=intnx('day','01jul2017'd,_n_);&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;end;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;format date date9.;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why not just ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;data want;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;set have;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;date=intnx('day','01jul2017'd,_n_);&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;format date date9.;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2017 17:08:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/problem-with-sas-code/m-p/372584#M89105</guid>
      <dc:creator>MikeZdeb</dc:creator>
      <dc:date>2017-07-02T17:08:50Z</dc:date>
    </item>
  </channel>
</rss>

