SUPPORT / SAMPLES & SAS NOTES
 

Support

Usage Note 34978: WEEK informat and format removed

DetailsCodeOutputAboutRate It

For many years SAS did not have a format called WEEK. Customers often created user-defined formats with PROC FORMAT and used the format name of WEEK.

Beginning in SAS 9.1, a SAS WEEKw. format and informat were implemented but mistakenly not documented. If a customer had created a user-defined format called WEEK and attempted to use it in a program, SAS used its format called WEEK rather than the user-defined format by the same name.

Because the WEEK format and informat weren't documented, the decision was made to remove them from the software beginning in SAS 9.2. This decision allows legacy code, that includes a user-defined format called WEEK, to run as expected. Now, when customers create their own format called WEEK, they will use it when they reference the WEEK format in code.

A sample of how to create a format to produce the week number from a SAS date is in the Full Code tab.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASOpenVMS on HP Integrity9.2 TS1M0
Linux9.2 TS1M0
Linux for x649.2 TS1M0
HP-UX IPF9.2 TS1M0
64-bit Enabled Solaris9.2 TS1M0
64-bit Enabled HP-UX9.2 TS1M0
64-bit Enabled AIX9.2 TS1M0
Windows Vista9.2 TS1M0
Microsoft Windows XP Professional9.2 TS1M0
Microsoft Windows Server 2003 Standard Edition9.2 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.2 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.2 TS1M0
Microsoft® Windows® for x649.2 TS1M0
Microsoft Windows XP 64-bit Edition9.2 TS1M0
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.2 TS1M0
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.2 TS1M0
Microsoft® Windows® for 64-Bit Itanium-based Systems9.2 TS1M0
z/OS9.2 TS1M0
Solaris for x649.2 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.