BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
bheinsius
Lapis Lazuli | Level 10

Hi,

the DATE system option causes the SAS session start date and time to be printed on SAS output.

Is it possible to display this date in another language?

-Bart

1 ACCEPTED SOLUTION

Accepted Solutions
FriedEgg
SAS Employee

try using local=dutch_netherlands (alias: nl_nl, dutch, nl) or duth_belguim (alias: nl_be) with dflang=dutch or locale, if using locale make sure it is set after the local is set or it will use the original locale instead of the updated.  This would probably be why you are experiencing trouble as far as I know.

options local=nl dflang=dutch /*option 1*/;

*options dflang=locale; /*option 2*/

setting local also alters your definitions for encoding and papersize, so be aware of possible consequences.

View solution in original post

6 REPLIES 6
art297
Opal | Level 21

One way to change it is by changing the format used in the template for the proc.  Is the language you want one of the ones shown in the date formats shown at: http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a003168458.htm

?

bheinsius
Lapis Lazuli | Level 10

thanks but too complicated.

a colleague got it working with options options locale=dutch and options dflang=locale.

it works in our test environment but not in production, don't know why yet.

FriedEgg
SAS Employee

try using local=dutch_netherlands (alias: nl_nl, dutch, nl) or duth_belguim (alias: nl_be) with dflang=dutch or locale, if using locale make sure it is set after the local is set or it will use the original locale instead of the updated.  This would probably be why you are experiencing trouble as far as I know.

options local=nl dflang=dutch /*option 1*/;

*options dflang=locale; /*option 2*/

setting local also alters your definitions for encoding and papersize, so be aware of possible consequences.

Ksharp
Super User

I perfer to the way mentioned by Art.

The format is used like other normal format , if the sas is dutch version .

Ksharp

bheinsius
Lapis Lazuli | Level 10

downside of this is that you have to do it for every proc that you use, and that it involves proc template, which I find utterly complicated.

bheinsius
Lapis Lazuli | Level 10

thanks, this works.

my code:

options locale=nl dflang=locale;

proc print data=sashelp.class;

run;

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 6 replies
  • 1286 views
  • 0 likes
  • 4 in conversation