SELECT
  RTRIM(JBPLVL) AS jbplvl,
  RTRIM(JBPLCD) AS jbplcd,
  CASE WHEN JBFDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE JBFDAT END AS jbfdat,
  CASE WHEN JBTDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE JBTDAT END AS jbtdat,
  JBDISC AS jbdisc,
  CASE WHEN JBMDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE JBMDAT END AS jbmdat,
  RTRIM(JBMUSR) AS jbmusr
FROM "CMS.CUSLG".IPRCBHC
