IBM Support

In the Transformer stage, using the IsValid function throws a warning in DataStage.

Troubleshooting


Problem

Using the IsValid function to check for a valid date. However, the function throws a warning if there is an actual bad date. In DataStage v7 and v8.1, there is no warning but in v8.5 and above, a warning appears. Some examples: Scenario 1: StageVar=20141231 If IsValidDate( "2014-12-31" ) Then "Valid" Else "InValid" Returns= Valid No Log Warnings Scenario 2: StageVar=20143112 If IsValidDate(" 2014-31-12" ) Then "Valid" Else "InValid" Returns= InValid Log Warnings= Conversion error calling conversion routine date_from_ustring data may have been lost Scenario 3: StageVar=20143112 If IsValidDate(StringToDate( "2014-31-12" ,"%yyyy-%mm-%dd")) Then "Valid" Else "InValid" Returns= InValid Log Warnings= APT_CombinedOperatorController,1: Conversion error calling conversion routine date_from_string data may have been lost

[{"Product":{"code":"SSZJPZ","label":"IBM InfoSphere Information Server"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"--","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"8.5;8.7;9.1;9.1.2.0","Edition":"","Line of Business":{"code":"LOB76","label":"Data Platform"}},{"Type":"MASTER","Line of Business":{"code":"LOB76","label":"Data Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSY5C5J","label":"IBM DataStage"},"ARM Category":[{"code":"a8m50000000L0t8AAC","label":"DataStage"}],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":""},{"Type":"MASTER","Line of Business":{"code":"LOB76","label":"Data Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSVSEF","label":"IBM InfoSphere DataStage"},"ARM Category":[{"code":"a8m50000000L0t8AAC","label":"DataStage"}],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.5.0;11.7.0;11.7.1"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
20 May 2026

UID

swg21672650