Suppose you have a data file containing dates in a format for which SAS software does not have an informat.Suppose further that you can extract the month, day, and year of each date.To make it still more gruesome,suppose that the month, day, and year information are not even in contiguous columns. Enter the MDY function.
This function,which takes as its arguments month, day, and year, will create a SAS date for you. For example, suppose you have DAY in columns 1-2, MONTH in columns 10-11,and YEAR in columns 20-23.To create a SAS date, you would code:
Output from Example - Creating a SAS Date from Month, Day, and Year
The WORDDATE format prints the month name,the day of the month, and the year as seen in the above output.
SAS Programming Related Tutorials
|SASS (Syntactically Awesome Style sheets) Tutorial||R Programming language Tutorial|
SAS Programming Related Interview Questions
|Logistics Interview Questions||SAS Programming,SQL server Interview Questions|
|Clinical SAS Interview Questions||SASS (Syntactically Awesome Style sheets) Interview Questions|
|SQL Server Analysis Services (SSAS) Interview Questions||R Programming language Interview Questions|
|SAS DI Interview Questions||Advanced SAS Interview Questions|
|Base Sas Interview Questions||SAS Macro Interview Questions|
|Clinical Data Management Interview Questions|
Sas Programming Tutorial
Input And Infile
Set, Merge, And Update
Table Lookup Tools
Proc Means And Proc Uimivariate
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.