From Newsgroup: comp.sys.ibm.as400.misc
On Monday, January 9, 2023 at 1:24:55 AM UTC-5,
sharad...@gmail.com wrote:
Hi All,
I'm trying to get current date using *date in RPGLE but when program called via job it takes job date some time jobs is not restarted same day it shows old date not the current date.
Can you please suggest how to get current date from Job and integrative program run
Thanks!
Sharad
You are probably using *DATE which is the wrong choice if you want to be certain of getting the current date. *DATE retrieves the _JOB_ date (i.e. the date the job entered the system). What you probably need is to use the BIF %Date() which will retrieve the current date.
--- Synchronet 3.21d-Linux NewsLink 1.2