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.
The SAS-hosted documentation at the SAS support
http://support.sas.com/ website is available and you can search the site using the website SEARCH facility or using something like the Google advanced search argument below:
enterprise guide using sas functions site:sas.com
With this search, you will find SAS-hosted documentation and also supplemental technical and conference topic-related reference material.
Scott Barry
SBBWorks, Inc.