<?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 Creating a new variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-new-variable/m-p/435833#M282091</link>
    <description>&lt;P&gt;On the attached file is a assessment that I have to complete but i'm having trouble with questions part 1a and 1b. I'm not to sure how I can approach this problem so I was hoping so one can lead me in the right direction. As of now I have the data imported:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*printing out import*/&lt;/P&gt;&lt;P&gt;proc print data = uchi (obs = 10);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sort data = uchi;&lt;BR /&gt;by person_id;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc print data = uchi (obs = 100);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*creating numeric dates*/&lt;/P&gt;&lt;P&gt;data case;&lt;BR /&gt;set uchi;&lt;BR /&gt;informat arrest_date yymmdd10. dispos_date yymmdd10.;&lt;BR /&gt;if arrest_date &amp;lt; dispos_date then re_arrest = 1;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc print data = case (obs = 10);&lt;BR /&gt;format arrest_date yymmdd10.;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Feb 2018 20:41:42 GMT</pubDate>
    <dc:creator>ogarduno</dc:creator>
    <dc:date>2018-02-09T20:41:42Z</dc:date>
    <item>
      <title>Creating a new variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-new-variable/m-p/435833#M282091</link>
      <description>&lt;P&gt;On the attached file is a assessment that I have to complete but i'm having trouble with questions part 1a and 1b. I'm not to sure how I can approach this problem so I was hoping so one can lead me in the right direction. As of now I have the data imported:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*printing out import*/&lt;/P&gt;&lt;P&gt;proc print data = uchi (obs = 10);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sort data = uchi;&lt;BR /&gt;by person_id;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc print data = uchi (obs = 100);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*creating numeric dates*/&lt;/P&gt;&lt;P&gt;data case;&lt;BR /&gt;set uchi;&lt;BR /&gt;informat arrest_date yymmdd10. dispos_date yymmdd10.;&lt;BR /&gt;if arrest_date &amp;lt; dispos_date then re_arrest = 1;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc print data = case (obs = 10);&lt;BR /&gt;format arrest_date yymmdd10.;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 20:41:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-new-variable/m-p/435833#M282091</guid>
      <dc:creator>ogarduno</dc:creator>
      <dc:date>2018-02-09T20:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-new-variable/m-p/435839#M282092</link>
      <description>&lt;P&gt;Looks like you're trying to calculate a moving cumulative total. Do you have SAS ETS? If so, try PROC EXPAND. If not, if you search moving statistics you'll find a ton of examples on here or online on how to calculate moving statistics in SAS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know that uploading your actual assignment is the best idea though....&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/153898"&gt;@ogarduno&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;On the attached file is a assessment that I have to complete but i'm having trouble with questions part 1a and 1b. I'm not to sure how I can approach this problem so I was hoping so one can lead me in the right direction. As of now I have the data imported:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/*printing out import*/&lt;/P&gt;
&lt;P&gt;proc print data = uchi (obs = 10);&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sort data = uchi;&lt;BR /&gt;by person_id;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc print data = uchi (obs = 100);&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/*creating numeric dates*/&lt;/P&gt;
&lt;P&gt;data case;&lt;BR /&gt;set uchi;&lt;BR /&gt;informat arrest_date yymmdd10. dispos_date yymmdd10.;&lt;BR /&gt;if arrest_date &amp;lt; dispos_date then re_arrest = 1;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc print data = case (obs = 10);&lt;BR /&gt;format arrest_date yymmdd10.;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 20:36:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-new-variable/m-p/435839#M282092</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-09T20:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-new-variable/m-p/435886#M282093</link>
      <description>&lt;P&gt;"questions part 1a and 1b" are what exactly? If there was an attempt to attach something it apparently did not get attached.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the questions are plain text no need to "attach" anything. Open a code box using the {I} menu icon, copy the text from your document and paste into the box.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 21:54:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-new-variable/m-p/435886#M282093</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-02-09T21:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-new-variable/m-p/435887#M282094</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;He attached his full assignment which I suggested he remove, it had personal information.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 21:55:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-new-variable/m-p/435887#M282094</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-09T21:55:17Z</dc:date>
    </item>
  </channel>
</rss>

