SAS Support Site Home | Samples and SAS Notes Home
SAS Notes V6-FORMATS-E015
YYMMxw format does not display leading zeros with year value 2000


The YYMMxw. format does not display leading zeros when the SAS date yearvalue is 2000 and the YYMMN5. format is specified. If the month value contains leading zeros they are also not displayed. This occurs when "N" is used to indicate no separator and a width specification of 5.

The other separator values of C, D, P, and S only display a 1-digit yearwith the SAS date year values of 2000 through 2009, and a width specification of 5 is used. The single leading zero is omitted.

The M separator works correctly. This separator is not required in the name of the format, so specifying YYMM5. with a SAS date value of '01JAN2000'd correctly produces 00M01.

The circumvention is to use a width specification of 6 when using the N for no separator, or a width specification of 7 when using the separators of C, D, P or S.

To correct the problem for YYMMNw. on MVS apply the zap referenced by Z608E015 for Release 6.08 and Z609E015 for Release 6.09E.

THIS IS A YEAR 2000 READINESS DISCLOSURE.


Products: BASE
Component: FORMATS
Priority: HIGH
Status: Outstanding Problem
Date: Tue, 3 Mar 1998

System Release Reported Release Fixed
VM/ESA (CMS) 6.09 TS450 6.09 TS460  
OS/390 (MVS) 6.09 TS450 6.09 TS460  
OpenVMS VAX 6.09 TS450 6.09 TS460  
AIX/6000 6.12 TS020 6.12 TS050  
HP-UX Operating Systems 6.12 TS020 6.12 TS050  
IBM OS/2 6.12 TS020 6.12 TS050  
Solaris 6.12 TS020 6.12 TS050  
OpenVMS Alpha 6.12 TS020 6.12 TS050  
Windows 3.11 6.12 TS020 6.12 TS050  
Windows NT 6.12 TS020 6.12 TS050  
Windows 95 6.12 TS020 6.12 TS050  
Compaq Tru64 Unix 6.12 TS040 6.12 TS051  
Macintosh 6.12 TS040 6.12 TS051  
OS/390 (MVS) 6.08 TS404 6.09 TS460  
VM/ESA (CMS) 6.08 TS404 6.09 TS460  
IBM OS/2 6.08 TS404 6.12 TS050  
OpenVMS VAX 6.08 TS404 6.09 TS460  
VSE/ESA (VSE) 6.08 TS404 6.08 TS440  
Windows 3.11 6.08 TS404 6.12 TS050  
AIX/6000 6.09 TS027 6.12 TS050  
ConvexOS 6.09 TS027  
HP-UX Operating Systems 6.09 TS027 6.12 TS050  
Solaris 6.09 TS027 6.12 TS050  
DEC Ultrix 6.09 TS027  
OpenVMS Alpha 6.09 TS027 6.12 TS050  
Windows NT 6.09 TS027 6.12 TS050  
Intel ABI 6.10 TS018 6.11 TS051  
Silicon Graphics Unix 6.10 TS018 6.11 TS051  
Macintosh 6.10 TS037 6.12 TS051  
Compaq Tru64 Unix 6.10 TS018 6.12 TS051  
IBM OS/2 6.10 TS019 6.12 TS050  
Windows 3.11 6.10 TS019 6.12 TS050  
AIX/6000 6.11 TS020 6.12 TS050  
HP-UX Operating Systems 6.11 TS020 6.12 TS050  
IBM OS/2 6.11 TS020 6.12 TS050  
Solaris 6.11 TS020 6.12 TS050  
Windows 3.11 6.11 TS020 6.12 TS050  
Intel ABI 6.11 TS040 6.11 TS051  
Silicon Graphics Unix 6.11 TS040 6.11 TS051  
Compaq Tru64 Unix 6.11 TS040 6.12 TS051  
Windows NT 6.11 TS040 6.12 TS050  
Windows 95 6.11 TS040 6.12 TS050  
VM/ESA (CMS) 6.06 6.09 TS460  
OS/390 (MVS) 6.06 6.09 TS460  
OpenVMS VAX 6.06 6.09 TS460  
Data General AOS/VS 6.06  
Primos 6.06  
IBM OS/2 6.06 6.12 TS050  
HP - Apollo 6.07 TS101  
AIX/6000 6.07 TS101 6.12 TS050  
Data General Aviion 6.07 TS101  
HP-UX Operating Systems 6.07 TS101  
Silicon Graphics Unix 6.07 TS101  
DEC Ultrix 6.07 TS101  
BULL 6.07 TS201  
HP-UX Operating Systems 6.07 TS201 6.12 TS050  
NeXT 6.07 TS201  
Silicon Graphics - IRIX 6.07 TS201  
Siemens Unix 6.07 TS201  
SunOS 3.0 6.07 TS201  
SunOS 4.0 6.07 TS201 6.12 TS050  
VM/ESA (CMS) 6.07 TS301 6.09 TS460  
OS/390 (MVS) 6.07 TS301 6.09 TS460  
OpenVMS VAX 6.07 TS301 6.09 TS460  

Zap System  TS Level   Zap Category   First Tape   Pre-Req  
z609e015 MVS  450   RECOMMENDED      
z608e015 MVS  404   RECOMMENDED