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.
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: