Unconfigured Ad Widget

Collapse

Announcement

Collapse
No announcement yet.

How to get milliseconds in RPG program

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Guest's Avatar
    Guest replied
    How to get milliseconds in RPG program

    Use the QWCCVTDT API. It will return the mil sec.

    Leave a comment:


  • Guest's Avatar
    Guest replied
    How to get milliseconds in RPG program

    Hi everyone, I need to extract the milliseconds from the system time, to generate random records, so is there an RPG command which allows me to do it . Regards Mamadou

    Leave a comment:


  • B.Morris
    started a topic How to get milliseconds in RPG program

    How to get milliseconds in RPG program

    Milliseconds isn't a good way to get random numbers any more (maybe it never was). You can frequently get successive values, even sometimes the same value. 123, 123, 124, 125, 125 etc. If you search the forum archives for random, you'll see a few discussions about ways to get random numbers. There was even one discussion about getting random records. (To answer your RPG question, in RPG IV you can get milliseconds by doing the TIME opcode with a timestamp in the result field.)
Working...
X