ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

real date system

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

  • real date system

    HI;
    i have a program running in batch that take the date with the oper code DATE; but when the day change and the program continue runing, this take the same date (yesterday) and i have to down an up the program to take the correct date.

    How can i take the correct date of system??
    J.Aguilera

  • #2
    Re: real date system

    PHP Code:
    d isodate         s               d        
     
    isodate  
    = %date(); 
    All my answers were extracted from the "Big Dummy's Guide to the As400"
    and I take no responsibility for any of them.

    www.code400.com

    Comment


    • #3
      Re: real date system

      Date and UDate are both the job date, i.e. the date where the job was started.

      %Date() or Time return the system date.

      Birgitta

      Comment

      Working...
      X