Previous Page | Next Page

SAS System Options

DATESTYLE= System Option



Specifies the sequence of month, day, and year when ANYDTDTE, ANYDTDTM, or ANYDTTME informat data is ambiguous.
Valid in: configuration file, SAS invocation, OPTIONS statement, SAS System Options window
Category: Environment control: Language control
Input control: Data Processing
PROC OPTIONS GROUP= INPUTCONTROL
LANGUAGECONTROL

Syntax
Syntax Description
Details
See Also

Syntax

DATESTYLE= MDY | MYD | YMD | YDM | DMY | DYM | LOCALE


Syntax Description

MDY

specifies that SAS set the order as month, day, year.

MYD

specifies that SAS set the order as month, year, day.

YMD

specifies that SAS set the order as year, month, day.

YDM

specifies that SAS set the order as year, day, month.

DMY

specifies that SAS set the order as day, month, year.

DYM

specifies that SAS set the order as day, year, month.

LOCALE

specifies that SAS set the order based on the value that corresponds to the LOCALE= system option value and is one of the following: MDY | MYD | YMD | YDM | DMY | DYM.


Details

System option DATESTYLE= identifies the order of month, day, and year. The default value is LOCALE. The default LOCALE system option value is English, therefore, the default DATESTYLE order is MDY.

Operating Environment Information:   See Locale Values in SAS National Language Support (NLS): Reference Guide to get the default settings for each locale option value.  [cautionend]


See Also

System Option:

LOCALE System Option: UNIX, Windows, OpenVMS, and z/OS in SAS National Language Support (NLS): Reference Guide

Informats:

ANYDTDTEw. Informat

ANYDTDTMw. Informat

ANYDTTMEw. Informat

Previous Page | Next Page | Top of Page