SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 15716: Possible incorrect DATETIME/TIME values returned when leap seconds defined

DetailsHotfixAboutRate It

SAS® will incorrectly calculate time or datetime values when leap seconds are defined on a z/OS system. This can cause for time to be off by a factor of 2 the value set for leap seconds on the system. Therefore, if leap seconds is 22 seconds then the SAS time portion returned by SAS can be off by approximately 44 seconds. This does not effect SAS SMF record processing. Also, time reflected by JES for a JOB or user are correct. Only the SAS time value may be off.

There are a couple of ways to determine if you are affected.

  1. If you know you are not using ETR (External Time Reference)
  2. Run a simple SAS job and see:
    // EXEC SAS //SYSIN DD * DATA _NULL_; dt=datetime(); put dt= datetime22.3; RUN;

If the time portion for DT in the SAS Log is outside the start and end times for the JOB in the JES JOBLOG then you are seeing this behavior.

This is being corrected in a SAS 8.2 HOTFIX and will be included in SAS 9.1.3 SP4.

Select the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASz/OS9.1 TS1M39.1 TS1M3 SP4
* 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.