<?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: name of day -DOWNAME9. and weekdate9. formats in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/name-of-day-DOWNAME9-and-weekdate9-formats/m-p/571651#M161277</link>
    <description>&lt;P&gt;Maxim 1: Read the Documentation. Because it's all there:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=n0mlfb88dkhbmun1x08qbh5xbs7e.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;put() function&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=leforinforref&amp;amp;docsetTarget=p16z3pt9h9fdn6n1sxv7lzei34gp.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;downame format&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=leforinforref&amp;amp;docsetTarget=p1rib2891qxd4yn18x1myfkmxeet.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;weekdate format&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 07 Jul 2019 11:12:18 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2019-07-07T11:12:18Z</dc:date>
    <item>
      <title>name of day -DOWNAME9. and weekdate9. formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/name-of-day-DOWNAME9-and-weekdate9-formats/m-p/571628#M161257</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;What is the purpose of&amp;nbsp; -l in the following code?&lt;BR /&gt;What is the difference between&amp;nbsp;DOWNAME9. and&amp;nbsp;weekdate9. formats?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data ex2;
ddate_time=datetime();/*today's datetime value for example*/
ddate=datepart(ddate_time);
day_of_week=put(ddate,DOWNAME9.);
day_of_week2=put(ddate,weekdate9. -l);
format ddate_time datetime20.  ddate date9.  ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 07 Jul 2019 05:55:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/name-of-day-DOWNAME9-and-weekdate9-formats/m-p/571628#M161257</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2019-07-07T05:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: name of day -DOWNAME9. and weekdate9. formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/name-of-day-DOWNAME9-and-weekdate9-formats/m-p/571642#M161269</link>
      <description>&lt;P&gt;As per the official documentation on PUT function (as &lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000199354.htm" target="_self"&gt;here&lt;/A&gt;), I am guessing -L is for left align, -C for centre align and -R for right align.&amp;nbsp;Since you are extracting a weekdate (which is a character), it is right aligned by default. I guess you are overriding that behaviour with -L option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can do a quick test by substituting -l with -c and -r to see if the alignment changes. If it does then probably that is it.&amp;nbsp;Please let me know the outcome of substituting -l with -c and -r.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jul 2019 10:24:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/name-of-day-DOWNAME9-and-weekdate9-formats/m-p/571642#M161269</guid>
      <dc:creator>koyelghosh</dc:creator>
      <dc:date>2019-07-07T10:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: name of day -DOWNAME9. and weekdate9. formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/name-of-day-DOWNAME9-and-weekdate9-formats/m-p/571646#M161272</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;Actually I went ahead and played with -L and -R options myself and the results are as per the documentation. Please see the image below. -L aligns to left and -R to the right.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="L and R option difference" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30808i5759E60487B764A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="SAS_L_R_Option_Difference.png" alt="L and R option difference" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;L and R option difference&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jul 2019 10:34:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/name-of-day-DOWNAME9-and-weekdate9-formats/m-p/571646#M161272</guid>
      <dc:creator>koyelghosh</dc:creator>
      <dc:date>2019-07-07T10:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: name of day -DOWNAME9. and weekdate9. formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/name-of-day-DOWNAME9-and-weekdate9-formats/m-p/571651#M161277</link>
      <description>&lt;P&gt;Maxim 1: Read the Documentation. Because it's all there:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=n0mlfb88dkhbmun1x08qbh5xbs7e.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;put() function&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=leforinforref&amp;amp;docsetTarget=p16z3pt9h9fdn6n1sxv7lzei34gp.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;downame format&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=leforinforref&amp;amp;docsetTarget=p1rib2891qxd4yn18x1myfkmxeet.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;weekdate format&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jul 2019 11:12:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/name-of-day-DOWNAME9-and-weekdate9-formats/m-p/571651#M161277</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-07-07T11:12:18Z</dc:date>
    </item>
  </channel>
</rss>

