Generating the current date and time only once in MapForce

Date:29 May 2009
Product/Release:LANSA Composer - V2.0
Abstract:Generating the current date and time only once in MapForce
Submitted By:LANSA Technical Support

I would like to know if it is possible to use the Now() function (or equivalent) in MapForce to generate the current date and time only once.

We are trying to insert multiple records with the same date and time, but the function is being called for every record, and brings back a slightly different time for each call.

In LANSA Composer version 2.0, you can use the *now_local and *now_utc built-in variables to yield the current date and time. You could use this as a parameter to the mapping.