READING a TIME VAR using input format ('HH:MM:SS') reads the seconds as 00.
Minor
Closed - Fixed
Found:XS.01.10 08 OCT 2008
Fixed:XS.01.11 09 OCT 2008
DETAILS
The TIME input format incorrectly reads the seconds (SS) as 00.
In the example the file input data contains one line:
12:34:56
and the output is
12:34:00
12:34:56
EXAMPLE PROGRAM
program
time when ('hh:mm:ss')
open x dsn="input.dat" read
read (x) when(time'hh:mm:ss')
write when(time'hh:mm:ss')
reread (x) when(a8)
write when(time'hh:mm:ss')
end program
WORKAROUND
Use an input format of A8 to read the data directly and corectly into the
time'hh:mm:ss' formatted variable.