SELECT
  RTRIM(TAPLCD) AS taplcd,
  RTRIM(TAPART) AS tapart,
  RTRIM(TAUNIT) AS taunit,
  CASE WHEN TADATE IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE TADATE END AS tadate,
  TATIME AS tatime,
  RTRIM(TAUSER) AS tauser,
  RTRIM(TAPROG) AS taprog
FROM LGDAT.IPRCCT
WHERE TADATE >= '{iprcct_wm}'
