OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Programming => Topic started by: arr531 on December 14, 2013, 09:01:04 pm

Title: REXX programming question
Post by: arr531 on December 14, 2013, 09:01:04 pm
Hi guys just a simple question. Is there a way in REXX to take a low order 32-bit value and a high 32-bit  and combine them? I want to combine the 2 32-bit values returned from Dos QuerySysInfo that contain the number of seconds from the system clock. I can get them separately and print them to the screen but I want to combine them into a single number even though right now the high-order word contains 0.
Title: Re: REXX programming question
Post by: Wim Brul on December 15, 2013, 10:37:34 am
I tried this:

/* use 20 digits */
say 'digits='digits()
say 65536*65536*65536*65536
numeric digits 20
say 'digits='digits()
say 65536*65536*65536*65536

Success!