SELECT
  RTRIM(EDTYPE) AS edtype,
  RTRIM("EDJOB#") AS "edjob#",
  "EDSEQ#" AS "edseq#",
  "EDLIN#" AS "edlin#",
  RTRIM(EDDEPT) AS eddept,
  RTRIM(EDRESC) AS edresc,
  RTRIM(EDOPNM) AS edopnm,
  EDSETP AS edsetp,
  EDRUNS AS edruns,
  RTRIM(EDRTYP) AS edrtyp,
  EDSCRW AS edscrw,
  RTRIM(EDREPP) AS edrepp,
  EDLAGT AS edlagt,
  RTRIM(EDBK01) AS edbk01,
  EDTBTH AS edtbth,
  RTRIM(EDUNIT) AS edunit,
  RTRIM(EDBK02) AS edbk02,
  EDEFF AS edeff,
  RTRIM(EDBK03) AS edbk03,
  "ED#MEN" AS "ed#men",
  "ED#MCH" AS "ed#mch",
  EDRUNQ AS edrunq,
  EDCOMQ AS edcomq,
  EDCTME AS edctme,
  EDMULT AS edmult,
  EDSCHQ AS edschq,
  RTRIM(EDSTAT) AS edstat,
  RTRIM(EDFUT1) AS edfut1,
  RTRIM(EDFUT2) AS edfut2,
  RTRIM(EDFUT3) AS edfut3,
  RTRIM(EDFUT4) AS edfut4,
  EDFUT5 AS edfut5,
  EDFUT6 AS edfut6,
  RTRIM(EDFUT7) AS edfut7,
  RTRIM(EDFUT8) AS edfut8,
  RTRIM(EDFUT9) AS edfut9,
  RTRIM(EDFUTA) AS edfuta,
  RTRIM(EDFUTB) AS edfutb,
  EDCNOR AS edcnor,
  RTRIM(EDCONC) AS edconc,
  EDBCDR AS edbcdr,
  EDSMCH AS edsmch,
  RTRIM(EDERTB) AS edertb,
  EDTRST AS edtrst,
  EDTRRT AS edtrrt,
  RTRIM(EDFUT10) AS edfut10,
  RTRIM(EDFUT11) AS edfut11,
  RTRIM(EDFUT12) AS edfut12,
  RTRIM(EDFUT13) AS edfut13,
  EDFUT14 AS edfut14,
  EDFUT15 AS edfut15,
  EDFUT16 AS edfut16
FROM LGDAT.CJOBDR
