Hi,
It seems that the word 'week' is not translated into national language here.
Did I miss something?
*--------------------------------------------------------------------------------;
options locale='FR_FR';
data _null_;
_nldateyw = put(today(),nldateyw.);
put _nldateyw=;
run;
*--------------------------------------------------------------------------------;
options locale='EN_US';
data _null_;
_nldateyw = put(today(),nldateyw.);
put _nldateyw=;
run;
*--------------------------------------------------------------------------------;
options locale='DE_DE';
data _null_;
_nldateyw = put(today(),nldateyw.);
put _nldateyw=;
run;
This seems to be a quite recent problem, as it was reported for maintenance level 7.
The hotfix is already out, available here: https://support.sas.com/kb/68/184.html
Have your SAS admins install the hotfix in your local SAS; it should be applied on On Demand soon because of my inquiry.
Something is seriously wrong here. I tried the example code from the NLDATEYWw. Format documentation, and it did not work either.
Open a track with SAS Technical Support.
After checking this obviously faulty behavior on SAS On Demand, I sent a mail to sasoda@sas.com.
It does seem strange that it does not translate WEEK into other languages, but it does match the documentation where they show that selecting French produces Week in the results.
https://documentation.sas.com/doc/en/vdmmlcdc/1.0/nlsref/n0duq9na9vbb7gn1akaa65cdts3m.htm
This is from the Viya documentation. But here's the example log from the 9.4 documentation:
+--- NLDATEYW min=5 default=16 max=200 ---+ 16 Semaine 14 2019 5 ***** 8 S14 19 32 Semaine 14 2019 200 Semaine 14 2019
The shortcomings of Viya seem to seep back into 9.4.
This seems to be a quite recent problem, as it was reported for maintenance level 7.
The hotfix is already out, available here: https://support.sas.com/kb/68/184.html
Have your SAS admins install the hotfix in your local SAS; it should be applied on On Demand soon because of my inquiry.
The problem must be older. In our environment using 9.4m5 the problem exists, too.
@andreas_lds wrote:
The problem must be older. In our environment using 9.4m5 the problem exists, too.
Then nobody stumbled upon the issue before M7 was out. After all, it is a rarely used format.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.
Ready to level-up your skills? Choose your own adventure.