<?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: Base sas in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Base-sas/m-p/440771#M110186</link>
    <description>&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt; Magellan3;&lt;/P&gt;
&lt;P&gt;set Magellan2;&lt;/P&gt;
&lt;P&gt;PastDueSince=input(PastDueSince,mmddyy16.);&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;DATA&lt;/STRONG&gt; Past_Due_Actual_Days2;&lt;/P&gt;
&lt;P&gt;/*format PastDueSince date9.;*/&lt;/P&gt;
&lt;P&gt;SET Past_Due_Actual_Days;&lt;/P&gt;
&lt;P&gt;/*PastDueSince = f20;*/&lt;/P&gt;
&lt;P&gt;PastDueSince =inputput(F20,f8.0),yymmdd.);&lt;/P&gt;
&lt;P&gt;/*PastDueSince = PastDueSince - 21916;*/&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Feb 2018 04:56:22 GMT</pubDate>
    <dc:creator>don21</dc:creator>
    <dc:date>2018-02-28T04:56:22Z</dc:date>
    <item>
      <title>Base sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Base-sas/m-p/440397#M109989</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have 4 data sets containing date variables:&lt;/P&gt;
&lt;P&gt;Table1&amp;nbsp;&lt;/P&gt;
&lt;P&gt;date is in date format (21-Mar-2017)&lt;/P&gt;
&lt;P&gt;table 2&amp;nbsp;&lt;/P&gt;
&lt;P&gt;date is in character (21 Mar 2017)&lt;/P&gt;
&lt;P&gt;table3&lt;/P&gt;
&lt;P&gt;date is in character (21 mar 2017)&lt;/P&gt;
&lt;P&gt;table4&lt;/P&gt;
&lt;P&gt;date is in date format (21-mar-2017)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;am trying to change the char to date format but it displays nil values. Please help. I need to merge the 4 tables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 07:23:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Base-sas/m-p/440397#M109989</guid>
      <dc:creator>don21</dc:creator>
      <dc:date>2018-02-27T07:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Base sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Base-sas/m-p/440401#M109991</link>
      <description>&lt;P&gt;Please supply&lt;/P&gt;
&lt;P&gt;- information about the date variables in all datasets with type, length and assigned format&lt;/P&gt;
&lt;P&gt;- the code you already tried for those variables&lt;/P&gt;
&lt;P&gt;- example values for numeric variables, raw without any format (use best.)&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 08:06:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Base-sas/m-p/440401#M109991</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-02-27T08:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Base sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Base-sas/m-p/440402#M109992</link>
      <description>Tabl 1	Date (char)&lt;BR /&gt;	17-Jun-2016&lt;BR /&gt;	&lt;BR /&gt;Table 2	Date (Date)&lt;BR /&gt;	6-Sep-17&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I need to merge table 1 and 2 but when I try to conver char to date or date to char the variable is not piking any values.&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Feb 2018 08:15:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Base-sas/m-p/440402#M109992</guid>
      <dc:creator>don21</dc:creator>
      <dc:date>2018-02-27T08:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Base sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Base-sas/m-p/440405#M109994</link>
      <description>&lt;P&gt;Please read my post again and assist me in helping you. Right now I don't know a jota more than before.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 08:56:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Base-sas/m-p/440405#M109994</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-02-27T08:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Base sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Base-sas/m-p/440423#M110003</link>
      <description>&lt;P&gt;Please refer to this post:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;On how to create test data which shows what your data looks like, both data wise, but also structurally.&amp;nbsp; Its also a good idea to post code you have written.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 10:02:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Base-sas/m-p/440423#M110003</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-02-27T10:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Base sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Base-sas/m-p/440771#M110186</link>
      <description>&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt; Magellan3;&lt;/P&gt;
&lt;P&gt;set Magellan2;&lt;/P&gt;
&lt;P&gt;PastDueSince=input(PastDueSince,mmddyy16.);&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;DATA&lt;/STRONG&gt; Past_Due_Actual_Days2;&lt;/P&gt;
&lt;P&gt;/*format PastDueSince date9.;*/&lt;/P&gt;
&lt;P&gt;SET Past_Due_Actual_Days;&lt;/P&gt;
&lt;P&gt;/*PastDueSince = f20;*/&lt;/P&gt;
&lt;P&gt;PastDueSince =inputput(F20,f8.0),yymmdd.);&lt;/P&gt;
&lt;P&gt;/*PastDueSince = PastDueSince - 21916;*/&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 04:56:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Base-sas/m-p/440771#M110186</guid>
      <dc:creator>don21</dc:creator>
      <dc:date>2018-02-28T04:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Base sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Base-sas/m-p/440772#M110187</link>
      <description />
      <pubDate>Wed, 28 Feb 2018 04:58:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Base-sas/m-p/440772#M110187</guid>
      <dc:creator>don21</dc:creator>
      <dc:date>2018-02-28T04:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Base sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Base-sas/m-p/440800#M110201</link>
      <description>&lt;P&gt;You are using wrong formats everywhere.&lt;/P&gt;&lt;P&gt;mmddyy16 is not informat for 17-Jun-2016 nor is yymmdd. You need to use date11.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data mylasr.test1;
Date1=input("15-jul-2015", date11.);
output;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Feb 2018 08:48:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Base-sas/m-p/440800#M110201</guid>
      <dc:creator>Satish_Parida</dc:creator>
      <dc:date>2018-02-28T08:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Base sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Base-sas/m-p/440805#M110202</link>
      <description>&lt;P&gt;This:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Magellan3;
set Magellan2;
PastDueSince=input(PastDueSince,mmddyy16.);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;can never work. You cannot change the type of a variable.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 08:59:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Base-sas/m-p/440805#M110202</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-02-28T08:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Base sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Base-sas/m-p/440811#M110203</link>
      <description>&lt;P&gt;Hi Have modified my previous query:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt; test1(drop = PastDueSince);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set Past_Due_Actual_Days2;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format _PastDueSince date9.;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _PastDueSince = input(trim(PastDueSince),date9.);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PastDueSince = PastDueSince;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rename _PastDueSince=PastDueSince;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Works like charm!!!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 09:32:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Base-sas/m-p/440811#M110203</guid>
      <dc:creator>don21</dc:creator>
      <dc:date>2018-02-28T09:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Base sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Base-sas/m-p/440813#M110205</link>
      <description>&lt;P&gt;For clarity's sake, I'd write it a little differently:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test1 (
  drop=_PastDueSince
);
set Past_Due_Actual_Days2 (
  rename=(PastDueSince=_PastDueSince)
);
format PastDueSince date9.;
PastDueSince = input(trim(_PastDueSince),date9.);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This makes it more readable with regards to what is converted to what.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 09:36:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Base-sas/m-p/440813#M110205</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-02-28T09:36:43Z</dc:date>
    </item>
  </channel>
</rss>

