Rejecting can be a two step process.
Records in your example will get rejected when the timestamp values to not match the format tag you specify, such as when a day number or month number has too many or too few characters.
When the timestamp value matches the format tag, the record will be passed to the next stage, whether or not the timestamp is valid. If it is invalid, as in month 22 or day 33, it should get set to the default value, which is an optional property you can find and set when you double click the column.
Go with your latter format tag followed by a Transformer stage where you can do further tests, like IsValid() or IsValidTimestamp(), and reject records from there also.
Reading timestamp in sequential file
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
It appears that both (d,s) and (m,s) are checking only for a one- or two-digit number, without performing any range check.
If you think this is a bug, please contact IBM, get their take on it, and let us know.
Anyone else like to test it using other versions?
If you think this is a bug, please contact IBM, get their take on it, and let us know.
Anyone else like to test it using other versions?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.