Chapter Contents

Previous

Next
EURDFMNw.

EURDFMNw.



Writes international date values as the name of the month

Category: Date and Time
Alignment: right


Syntax
Syntax Description
Details
Examples
See Also

Syntax

EURDFMNw.

Syntax Description

w
specifies the width of the output field.
Default: 9 (except for Finnish and Spanish)
Range: 1-32

Note:   If you use the Finnish (FIN) language prefix, the default w is 11. If you use the Spanish (ESP) language prefix, the default w is 10.  [cautionend]


Details

If necessary, SAS truncates the name of the month to fit the format width. The EURDFMNw. format writes SAS date values in the form month-name, where

month-name
is the name of the month.

You can set the language for the SAS session with the DFLANG= system option. (Because the SAS Installation Representative usually sets a default language for the site, you may be able to skip this step.) If you work with dates in multiple languages, you can replace the EUR prefix with a language prefix. See DFLANG= for the list of language prefixes. When you specify the language prefix in the format, SAS ignores the DFLANG= option.


Examples

The example table uses the input value 15344, which is the SAS date value that corresponds to January 4, 2002. The first PUT statement assumes the DFLANG= system option is set to Italian.

options dflang=ita;
The second PUT statement uses the Italian language prefix in the format to write the name of the month in Italian. The third PUT statement uses German language prefix in the format to write the name of the month in German. The value of the DFLANG= option, therefore, is ignored.

SAS Statements Results

----+----1
put date eurdfmn10.;
  janvier
put date itadfmn10.;
  Gennaio
put date deudfmn10.;
   Januar


See Also

Format:

MONNAMEw.

Function:

DATE

Informat:

EURDFDEw.

System Option:

DFLANG=


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.