<?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: Extracting Monthname and Monthnumber from a date in IMS Expression Editor in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extracting-Monthname-and-Monthnumber-from-a-date-in-IMS/m-p/70659#M7068</link>
    <description>The code snippet provided in the reply is just an example of how to use a DATETIME variable to derive the other informational values you required, all based on the OrderDate.  If you need to use additional data strings with year and/or month_name, you can derive these new variables with an expression that uses the correct SAS function, as was demonstrated in the previous reply.&lt;BR /&gt;
&lt;BR /&gt;
The SAS-hosted documentation at the SAS support  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  website is available and you can search the site using the website SEARCH facility or using something like the Google advanced search argument below:&lt;BR /&gt;
&lt;BR /&gt;
enterprise guide using sas functions site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
With this search, you will find SAS-hosted documentation and also supplemental technical and conference topic-related reference material.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Fri, 11 Sep 2009 16:59:49 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2009-09-11T16:59:49Z</dc:date>
    <item>
      <title>Extracting Monthname and Monthnumber from a date in IMS Expression Editor</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extracting-Monthname-and-Monthnumber-from-a-date-in-IMS/m-p/70656#M7065</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I have an Orderdate column with datetime as its datatype. I have to create three data items Orderyear, Ordermonthname and Ordermonthnumber in the SAS Information Map Studio.&lt;BR /&gt;
&lt;BR /&gt;
Eg.&lt;BR /&gt;
	Orderdate		        :	01JUL2001:00:00:00		&lt;BR /&gt;
&lt;BR /&gt;
	Orderyear		        :	2001&lt;BR /&gt;
	Ordermonthname	:	July&lt;BR /&gt;
	Ordermonthnumber	:	07&lt;BR /&gt;
&lt;BR /&gt;
I have created the Orderyear data item by configuring the format to DTYEAR under the Classification/Formats pane. It is working for me. I don’t know what format I have to specify for the data items Ordermonthname and Ordermonthnumber.&lt;BR /&gt;
&lt;BR /&gt;
Kindly guide me to get my desired result.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Sujeev</description>
      <pubDate>Fri, 11 Sep 2009 12:02:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extracting-Monthname-and-Monthnumber-from-a-date-in-IMS/m-p/70656#M7065</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-09-11T12:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Monthname and Monthnumber from a date in IMS Expression Editor</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extracting-Monthname-and-Monthnumber-from-a-date-in-IMS/m-p/70657#M7066</link>
      <description>Try using functions instead:&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
 a= "01JUL2001:00:00:00"dt ;&lt;BR /&gt;
 b = year(datepart(a));&lt;BR /&gt;
 c = put(month(datepart(a)),z2.);&lt;BR /&gt;
 d = put(day(datepart(a)),z2.);&lt;BR /&gt;
 put b= c= d=;&lt;BR /&gt;
run;</description>
      <pubDate>Fri, 11 Sep 2009 12:37:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extracting-Monthname-and-Monthnumber-from-a-date-in-IMS/m-p/70657#M7066</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2009-09-11T12:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Monthname and Monthnumber from a date in IMS Expression Editor</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extracting-Monthname-and-Monthnumber-from-a-date-in-IMS/m-p/70658#M7067</link>
      <description>Hi FredrikE,&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your response.&lt;BR /&gt;
&lt;BR /&gt;
I still don't understand how i have to use this query inside the SAS Information Map Studio. I have given an example with Orderdate as mentioned in my previous post. &lt;BR /&gt;
&lt;BR /&gt;
Actually, i have observation from the year 2001 to 2004. I have derived the columns Ordermonthnumber and Ordermonthname from the Orderdate column in the SAS Information Map Studio. If am using the query as mention by you, how i will pass the values for rest of the observations to the variable 'a'. I will use those columns in the SAS Web Report Studio to create reports.&lt;BR /&gt;
&lt;BR /&gt;
Sorry, i am new to the SAS. Correct me if am wrong and kindly guide me.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Sujeev</description>
      <pubDate>Fri, 11 Sep 2009 12:58:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extracting-Monthname-and-Monthnumber-from-a-date-in-IMS/m-p/70658#M7067</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-09-11T12:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Monthname and Monthnumber from a date in IMS Expression Editor</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extracting-Monthname-and-Monthnumber-from-a-date-in-IMS/m-p/70659#M7068</link>
      <description>The code snippet provided in the reply is just an example of how to use a DATETIME variable to derive the other informational values you required, all based on the OrderDate.  If you need to use additional data strings with year and/or month_name, you can derive these new variables with an expression that uses the correct SAS function, as was demonstrated in the previous reply.&lt;BR /&gt;
&lt;BR /&gt;
The SAS-hosted documentation at the SAS support  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  website is available and you can search the site using the website SEARCH facility or using something like the Google advanced search argument below:&lt;BR /&gt;
&lt;BR /&gt;
enterprise guide using sas functions site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
With this search, you will find SAS-hosted documentation and also supplemental technical and conference topic-related reference material.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Fri, 11 Sep 2009 16:59:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extracting-Monthname-and-Monthnumber-from-a-date-in-IMS/m-p/70659#M7068</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-09-11T16:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Monthname and Monthnumber from a date in IMS Expression Editor</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extracting-Monthname-and-Monthnumber-from-a-date-in-IMS/m-p/70660#M7069</link>
      <description>Hi Scott Barry,&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your guidance. I'll check and let you know.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Sujeev</description>
      <pubDate>Sat, 12 Sep 2009 05:12:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extracting-Monthname-and-Monthnumber-from-a-date-in-IMS/m-p/70660#M7069</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-09-12T05:12:55Z</dc:date>
    </item>
  </channel>
</rss>

