1

The saved dates in dataset are in German language: 12Mai2022 02Okt2020 06Dez2022

How convert/read such dates in sas with format and informat?

  • Are you asking how to attach a different format to date variables? Use the FORMAT statement. – Tom Sep 26 '22 at 19:57

1 Answers1

1

Set your locale to German_Germany and use the nldate. informat.

options locale=German_Germany;

data want;
    date = input('12Mai2022', nldate.);

    format date date9.;
run;

Output:

date
12MAY2022
Stu Sztukowski
  • 10,597
  • 1
  • 12
  • 21