Question: how to calculate difference between two dates in rpgle?
Answer: %DIFF function is used to find difference between Two Date, Time, or Timestamp Values. %DIFF produces the difference (duration) between two date or time values. The first and second parameters must have the same or compatible types.