Originally posted by: SystemAdmin
I'm not getting the behavior I would expect when I try to use VALID to verify that a PUT to the database is successful. I want to PUT the record to the database, and if that doesn't work, return the record. I will write the record to a file for intervention later.
But the rule:
=VALID (
PUT ( "DB"
, "-DBTYPE SYBASE -SOURCE %EMVADatabase% -TABLE %EMVATable% "
+ "-USER myuser -PASSWORD mypass -CSTMT -TRACE+ %EMVADBErrorsFile%-"
+ CurrentDateTimeStamp + ".txt"
, EMVARecord_IN )
, /* RETURN IF PUT RECORD IS NOT VALID */
"INSERT RECORD FAILED." + SYMBOL(13) + SYMBOL(10))
always does the database insert successfully AND returns the error message.
Am I using the VALID function incorrectly?
#DataExchange#IBM-Websphere-Transformation-Extender#IBMSterlingTransformationExtender