SELECT
  RTRIM(R9DEPT) AS r9dept,
  RTRIM(R9RESC) AS r9resc,
  R9BRDR AS r9brdr,
  R9CREW AS r9crew,
  R9BRDP AS r9brdp,
  R9LABS AS r9labs,
  R9LABR AS r9labr,
  R9VBRD AS r9vbrd,
  R9BDVP AS r9bdvp,
  RTRIM(R9CDRC) AS r9cdrc,
  R9CDRF AS r9cdrf,
  R9CDRV AS r9cdrv,
  RTRIM(R9CDUM) AS r9cdum,
  RTRIM(R9USLF) AS r9uslf,
  RTRIM(R9USLV) AS r9uslv,
  RTRIM(R9PLNT) AS r9plnt,
  RTRIM(R9FUT1) AS r9fut1,
  RTRIM(R9FUT2) AS r9fut2,
  RTRIM(R9FUT3) AS r9fut3,
  RTRIM(R9FUT4) AS r9fut4,
  RTRIM(R9FUT5) AS r9fut5,
  R9FUT6 AS r9fut6,
  RTRIM(R9FUT7) AS r9fut7,
  RTRIM(R9FUT8) AS r9fut8,
  RTRIM(R9FUT9) AS r9fut9,
  RTRIM(R9FUTA) AS r9futa,
  RTRIM(R9FUTB) AS r9futb,
  RTRIM(R9FUTC) AS r9futc,
  RTRIM(R9VKTR) AS r9vktr,
  RTRIM(R9VKTY) AS r9vkty
FROM LGDAT.FRESRE
