Originally posted by: SystemAdmin
Hi,
the VALID function can't help you there, it's not designed for this usage.
Depending on the sub-class for your output item, there could be different ways of doing this.
If you use a TEXT item (which seems the easiest way) then
=IF ( EITHER ( FROMDATETIME(TODATETIME(HLTHCOV_COV_EFF_DT Field:HEALTH_COV_RECORD:DETAIL:CopyBook,"{CCYYMMDDHH24MMSS}") )),\
"INVALID")="INVALID", "Incorrect datetime format")
might be close to what you want (I did NOT test this, nor did I check the rule is valid, but it should be)
#IBMSterlingTransformationExtender#DataExchange#IBM-Websphere-Transformation-Extender