I have the following WS setup:
01 SYSTEMTIME.
05 WS-YEAR PIC 9(4) USAGE IS COMP-N.
05 WS-MONTH PIC 9(4) USAGE IS COMP-N.
05 WS-DOW PIC 9(4) USAGE IS COMP-N.
05 WS-DAY PIC 9(4) USAGE IS COMP-N.
05 WS-HOUR PIC 9(4) USAGE IS COMP-N.
05 WS-MINUTE PIC 9(4) USAGE IS COMP-N.
05 WS-SECOND PIC 9(4) USAGE IS COMP-N.
05 WS-MILLISECOND PIC 9(4) USAGE IS COMP-N.
and the following Code:
SET-REFRESH-TIME.
INITIALIZE SYSTEMTIME.
SET ENVIRONMENT "DLL-CONVENTION" TO 1.
CALL "@[DISPLAY]:kernel32.dll".
CALL "@[DISPLAY]:GetLocalTime" USING
BY REFERENCE SYSTEMTIME.
CANCEL "@[DISPLAY]:GetLocalTime".
CANCEL "@[DISPLAY]:kernel32.dll".
The above logic works perfect in getting me the local machine time when run locally (without @[DISPLAY}:) logic. Once I add that and compile to the server and run the logic via Thin-Client I get incorrect/strange values.
Does anyone have a clue why the above logic will not work when called using Thin-Client?




