<?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/477300#M122906</link>
    <description>thank you</description>
    <pubDate>Thu, 12 Jul 2018 02:00:56 GMT</pubDate>
    <dc:creator>kmnagasree</dc:creator>
    <dc:date>2018-07-12T02:00:56Z</dc:date>
    <item>
      <title>base sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/base-sas/m-p/477295#M122903</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data ds1; 
Input pid drug$ visit_date date9.; 
Format visit_date date9.; 
Cards; 
101 asp-05mg 12jan2005  
102 asp-10mg 14jan2005  
101 asp-05mg 18jan2005 
102 asp-10mg 12jan2005 
101 asp-05mg 21jan2005 
103 asp-15mg 12jan2005 
101 asp-05mg 30jan2005 
102 asp-10mg 12jan2005 
101 asp-05mg 23jan2005 
102 asp-10mg 12jan2005 
101 asp-05mg 11jan2005 
103 asp-15mg 12jan2005 
101 asp-05mg 15jan2005 
104 asp-20mg 12jan2005 
101 asp-05mg 16jan2005 
102 asp-10mg 12jan2005 
103 asp-15mg 12jan2005 
103 asp-15mg 12jan2005 
101 asp-05mg 15jan2005 
; 
Run; 

data f;
set ds1;
visit_date=date ;
informat date date10.;
format date date10.;
run;&lt;BR /&gt;&lt;BR /&gt;i am unable to get the values in date variable.&lt;BR /&gt;&lt;BR /&gt;please guide me.&lt;BR /&gt;thank you.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Jul 2018 01:38:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/base-sas/m-p/477295#M122903</guid>
      <dc:creator>kmnagasree</dc:creator>
      <dc:date>2018-07-12T01:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: base sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/base-sas/m-p/477297#M122904</link>
      <description>&lt;P&gt;What is the purpose of the second data step?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data f;
  set ds1;
  visit_date=date ;
  informat date date10.;
  format date date10.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It looks like you are creating a new (and hence totally missing) variable and then using it to overwrite the variable VISIT_DATE that you read from the DS1 dataset.&lt;/P&gt;
&lt;P&gt;Perhaps you meant to do this?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data f;
  set ds1;
  date = visit_date ;
  format date date9.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Not sure what value using a width of 10 does for the DATE format.&amp;nbsp; DATE9 will print with four digit years.&amp;nbsp; DATE11 will add hyphens around the month.&lt;/P&gt;
&lt;P&gt;Also not sure what value is added by assigning an INFORMAT to a variable that is not being used to read from raw data.&amp;nbsp; It doesn't hurt, but why bother?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 01:53:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/base-sas/m-p/477297#M122904</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-07-12T01:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: base sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/base-sas/m-p/477300#M122906</link>
      <description>thank you</description>
      <pubDate>Thu, 12 Jul 2018 02:00:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/base-sas/m-p/477300#M122906</guid>
      <dc:creator>kmnagasree</dc:creator>
      <dc:date>2018-07-12T02:00:56Z</dc:date>
    </item>
  </channel>
</rss>

