System dates not displaying correct behaviour in Visual LANSA

Date:Archived
Product/Release:Visual LANSA
Abstract:System dates in Visual LANSA are inconsistent with both the documentation and the LANSA for iSeries behaviour.
Submitted By:LANSA Technical Support

In the LANSA Online Documentation the system variable *DATETIME is described as not dynamic and *TIMEDATE is dynamic. This behaviour is correct for the iSeries. But the same system variables display the opposite behaviour when used in Visual LANSA.

ie. The system variable *DATETIME is dynamic and *TIMEDATE is not dynamic.

The following code will demonstrate the platform inconsistencies when run on Windows and on iSeries.

FUNCTION OPTIONS(*DIRECT)
DEFINE FIELD(#D6S) TYPE(*DEC) LENGTH(6) DECIMALS(0)
DEFINE FIELD(#DT14D) TYPE(*DEC) LENGTH(14) DECIMALS(0)
DEFINE FIELD(#TD12D) TYPE(*DEC) LENGTH(12) DECIMALS(0)
*
BEGIN_LOOP
CHANGE FIELD(#D6S) TO(*DATE)
CHANGE FIELD(#DT14D) TO(*DATETIME)
CHANGE FIELD(#TD12D) TO(*TIMEDATE)
*
DISPLAY FIELDS(#D6S #DT14D #TD12D)
END_LOOP

The Visual LANSA behaviour is not correct and will be fixed in a future version. The LANSA for iSeries behaviour is correct.