ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

subdur

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

  • subdur

    Hello

    i am trying to use subdur to calculate the differance between two dates (8 0) but i have some problems

    date1 subdur date2 mon:*m

  • #2
    i found the problem
    thank's any way

    Comment


    • #3
      If you are on V5R2 or higher

      Use the %diff

      Code:
           D FromISO         S               D
           D ToISO           S               D
      
      DiffDays = %Diff(ToISO:FromISO:*DAYS)  ;
      Jamie
      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

      Working...
      X