Gen errors TIRM149E and TIRM137E using function with an embedded function
search cancel

Gen errors TIRM149E and TIRM137E using function with an embedded function

book

Article ID: 52830

calendar_today

Updated On: 11-08-2024

Products

Gen Gen - Workstation Toolset

Issue/Introduction

The Timestamp function operating with an embedded function in a single statement will fail with an error message:

TIRM149E: Error occurred in CA Gen supplied function: TIRFTSC
TIRM137E: Input date was not a valid date

Resolution

When it is required to have a single action diagram statement where the Timestamp function operates on a embedded function e.g.

SET exp testws timestamp_att TO timestamp(FindReplaceString(exp text_att1 ,... ,...))

The embedded statement should be split into two separate statements as follows:

SET exp testws text_att2 TO (FindReplaceString(exp text_att1 ,... ,...)
SET exp testws timestamp_att to timestamp(exp testws text_att2)