SELECT
  RTRIM(AWPART) AS awpart,
  RTRIM(AWDES1) AS awdes1,
  RTRIM(AWDES2) AS awdes2,
  RTRIM(AWDES3) AS awdes3,
  RTRIM(AWUNTI) AS awunti,
  RTRIM(AWMAJG) AS awmajg,
  RTRIM(AWMING) AS awming,
  RTRIM(AWMAJS) AS awmajs,
  RTRIM(AWMINS) AS awmins,
  RTRIM(AWGLDC) AS awgldc,
  RTRIM(AWGLED) AS awgled,
  RTRIM(AWHARM) AS awharm,
  RTRIM(AWCLSS) AS awclss,
  RTRIM(AWFUT3) AS awfut3,
  RTRIM(AWFUT4) AS awfut4,
  RTRIM(AWFUT5) AS awfut5,
  RTRIM(AWFUTC) AS awfutc,
  RTRIM(AWFUTD) AS awfutd,
  RTRIM(AWUPCC) AS awupcc,
  AWGTIN AS awgtin,
  AWNWHT AS awnwht,
  RTRIM(AWNWUN) AS awnwun,
  AWSVOL AS awsvol,
  RTRIM(AWSVUN) AS awsvun,
  RTRIM(AWTYPE) AS awtype,
  RTRIM(AWVEND) AS awvend,
  RTRIM("AWVPT#") AS "awvpt#",
  RTRIM("AWREV#") AS "awrev#",
  RTRIM(AWENGC) AS awengc,
  RTRIM(AWREVL) AS awrevl,
  CASE WHEN AWRDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWRDAT END AS awrdat,
  RTRIM(AWFUT7) AS awfut7,
  RTRIM(AWFUT8) AS awfut8,
  RTRIM(AWFUTB) AS awfutb,
  RTRIM(AWCOIL) AS awcoil,
  RTRIM(AWFUT9) AS awfut9,
  RTRIM(AWMSPC) AS awmspc,
  RTRIM(AWUVER) AS awuver,
  RTRIM(AWCATA) AS awcata,
  AWSLIF AS awslif,
  RTRIM(AWFUTK) AS awfutk,
  RTRIM(AWFUTN) AS awfutn,
  RTRIM(AWPPAP) AS awppap,
  RTRIM(AWDPLT) AS awdplt,
  RTRIM(AWGDFL) AS awgdfl,
  RTRIM(AWVDFL) AS awvdfl,
  RTRIM(AWWOQF) AS awwoqf,
  RTRIM(AWLCOIL) AS awlcoil,
  RTRIM(AWNMFC) AS awnmfc,
  RTRIM(AWSIZC) AS awsizc,
  RTRIM(AWSTLC) AS awstlc,
  RTRIM(AWCOLC) AS awcolc,
  RTRIM(AWASSC) AS awassc,
  RTRIM(AWSASC) AS awsasc,
  RTRIM(AWCUSR) AS awcusr,
  CASE WHEN AWCDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWCDAT END AS awcdat,
  AWCTME AS awctme,
  RTRIM(AWUUSR) AS awuusr,
  CASE WHEN AWUDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWUDAT END AS awudat,
  AWUTME AS awutme,
  AWFUTH AS awfuth,
  AWFUTI AS awfuti,
  AWFUT6 AS awfut6,
  RTRIM(AWFUTL) AS awfutl,
  RTRIM(AWFUTM) AS awfutm,
  RTRIM(AWFUTO) AS awfuto,
  RTRIM(AWFUTP) AS awfutp,
  CASE WHEN AWFUTQ IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWFUTQ END AS awfutq,
  CASE WHEN AWFUTR IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWFUTR END AS awfutr,
  CASE WHEN AWLDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWLDAT END AS awldat,
  RTRIM(AWLOTF) AS awlotf,
  RTRIM(AWSERF) AS awserf,
  RTRIM(AWOLDD) AS awoldd,
  RTRIM(AWBK02) AS awbk02,
  RTRIM(AWOLDD2) AS awoldd2,
  RTRIM(AWDISC) AS awdisc,
  RTRIM(AWORIG) AS aworig,
  RTRIM(AWFEDC) AS awfedc,
  RTRIM(AWTAXR) AS awtaxr,
  RTRIM(AWBK01) AS awbk01,
  RTRIM(AWBK03) AS awbk03,
  RTRIM(AWBK04) AS awbk04,
  RTRIM(AWBK05) AS awbk05,
  RTRIM(AWINVT) AS awinvt,
  AWCONV AS awconv,
  RTRIM(AWUNTO) AS awunto,
  RTRIM(AWREQC) AS awreqc,
  AWOPTR AS awoptr,
  AWLEAD AS awlead,
  RTRIM(AWCORG) AS awcorg,
  RTRIM(AWCNTR) AS awcntr,
  AWOLA AS awola,
  RTRIM(AWUNTP) AS awuntp,
  AWSHRK AS awshrk,
  AWLVL AS awlvl,
  AWMOQT AS awmoqt,
  AWPACK AS awpack,
  RTRIM(AWPACU) AS awpacu,
  AWPRPT AS awprpt,
  RTRIM(AWBUYR) AS awbuyr,
  RTRIM(AWAUTY) AS awauty,
  AWMPQT AS awmpqt,
  RTRIM(AWABCC) AS awabcc,
  RTRIM(AWSTAT) AS awstat,
  RTRIM(AWPROC) AS awproc,
  RTRIM(AWLRSP) AS awlrsp,
  AWLRSC AS awlrsc,
  RTRIM(AWLRSF) AS awlrsf,
  RTRIM(AWLRMP) AS awlrmp,
  AWLRMC AS awlrmc,
  RTRIM(AWLRMF) AS awlrmf,
  RTRIM(AWLWSP) AS awlwsp,
  AWLWSC AS awlwsc,
  RTRIM(AWLWSF) AS awlwsf,
  RTRIM(AWLCSP) AS awlcsp,
  AWLCSC AS awlcsc,
  RTRIM(AWLCSF) AS awlcsf,
  RTRIM(AWLCMP) AS awlcmp,
  AWLCMC AS awlcmc,
  RTRIM(AWLCMF) AS awlcmf,
  AWLSSC AS awlssc,
  RTRIM(AWLSSF) AS awlssf,
  RTRIM(AWLSMP) AS awlsmp,
  AWLSMC AS awlsmc,
  RTRIM(AWLSMF) AS awlsmf,
  AWMPCK AS awmpck,
  RTRIM(AWMPKU) AS awmpku,
  RTRIM(AWFUTJ) AS awfutj,
  AWFUTG AS awfutg,
  RTRIM(AWDBUY) AS awdbuy,
  AWPERC AS awperc,
  RTRIM(AWREAS) AS awreas,
  RTRIM(AWFUT1) AS awfut1,
  RTRIM(AWFUT2) AS awfut2,
  AWALTF AS awaltf,
  AWFTMF AS awftmf,
  RTRIM(AWRECU) AS awrecu,
  RTRIM(AWRECC) AS awrecc,
  RTRIM(AWPSOR) AS awpsor,
  RTRIM(AWFUTA) AS awfuta,
  RTRIM(AWSCDT) AS awscdt,
  RTRIM(AWDRWS) AS awdrws,
  RTRIM(AWDRWL) AS awdrwl,
  RTRIM(AWDENC) AS awdenc,
  RTRIM(AWDREL) AS awdrel,
  CASE WHEN AWDDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWDDAT END AS awddat,
  RTRIM(AWDRWS2) AS awdrws2,
  RTRIM(AWDRWL2) AS awdrwl2,
  RTRIM(AWDENC2) AS awdenc2,
  RTRIM(AWDREL2) AS awdrel2,
  CASE WHEN AWDDAT2 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWDDAT2 END AS awddat2,
  RTRIM(AWFUTE) AS awfute,
  RTRIM(AWFUTF) AS awfutf,
  RTRIM(AWSTCL) AS awstcl,
  RTRIM(AWVLCD) AS awvlcd,
  AWSPPP AS awsppp,
  RTRIM(AWSPPC) AS awsppc,
  AWMPPP AS awmppp,
  RTRIM(AWMPPC) AS awmppc,
  RTRIM(AWFLG01) AS awflg01,
  RTRIM(AWFLG02) AS awflg02,
  RTRIM(AWFLG03) AS awflg03,
  RTRIM(AWFLG04) AS awflg04,
  RTRIM(AWFLG05) AS awflg05,
  RTRIM(AWFLG06) AS awflg06,
  RTRIM(AWFLG07) AS awflg07,
  RTRIM(AWFLG08) AS awflg08,
  RTRIM(AWFLG09) AS awflg09,
  RTRIM(AWFLG10) AS awflg10,
  RTRIM(AWFUT01) AS awfut01,
  RTRIM(AWFUT02) AS awfut02,
  RTRIM(AWFUT03) AS awfut03,
  RTRIM(AWFUT04) AS awfut04,
  RTRIM(AWFUT05) AS awfut05,
  RTRIM(AWFUT06) AS awfut06,
  RTRIM(AWFUT07) AS awfut07,
  RTRIM(AWFUT08) AS awfut08,
  RTRIM(AWFUT09) AS awfut09,
  RTRIM(AWFUT10) AS awfut10,
  RTRIM(AWFUT11) AS awfut11,
  RTRIM(AWFUT12) AS awfut12,
  RTRIM(AWFUT13) AS awfut13,
  RTRIM(AWFUT14) AS awfut14,
  RTRIM(AWFUT15) AS awfut15,
  RTRIM(AWFUT16) AS awfut16,
  RTRIM(AWFUT17) AS awfut17,
  RTRIM(AWFUT18) AS awfut18,
  RTRIM(AWFUT19) AS awfut19,
  RTRIM(AWFUT20) AS awfut20,
  RTRIM(AWFUT21) AS awfut21,
  RTRIM(AWFUT22) AS awfut22,
  RTRIM(AWFUT23) AS awfut23,
  RTRIM(AWFUT24) AS awfut24,
  RTRIM(AWFUT25) AS awfut25,
  AWFUT26 AS awfut26,
  AWFUT27 AS awfut27,
  AWFUT28 AS awfut28,
  AWFUT29 AS awfut29,
  AWFUT30 AS awfut30,
  AWFUT31 AS awfut31,
  AWFUT32 AS awfut32,
  AWFUT33 AS awfut33,
  AWFUT34 AS awfut34,
  AWFUT35 AS awfut35,
  CASE WHEN AWFUT36 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWFUT36 END AS awfut36,
  CASE WHEN AWFUT37 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWFUT37 END AS awfut37,
  CASE WHEN AWFUT38 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWFUT38 END AS awfut38,
  CASE WHEN AWFUT39 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWFUT39 END AS awfut39,
  CASE WHEN AWFUT40 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWFUT40 END AS awfut40,
  AWFUT41 AS awfut41,
  AWFUT42 AS awfut42,
  AWFUT43 AS awfut43,
  AWFUT44 AS awfut44,
  AWFUT45 AS awfut45,
  RTRIM(AWUDFT) AS awudft,
  RTRIM(AWFRML) AS awfrml,
  RTRIM(AWHAZA) AS awhaza,
  AWLLED AS awlled,
  RTRIM(AWDBAC) AS awdbac,
  RTRIM(AWSCDPT) AS awscdpt,
  RTRIM(AWFIFO) AS awfifo,
  RTRIM(AWANTID) AS awantid,
  RTRIM(AWSUBT) AS awsubt,
  RTRIM(AWPRCL) AS awprcl,
  RTRIM(AWOTP) AS awotp,
  RTRIM(AWCBYL) AS awcbyl,
  RTRIM(AWSRVC) AS awsrvc,
  RTRIM(AWSPAL) AS awspal,
  RTRIM(AWPGRP) AS awpgrp,
  RTRIM(AWUPN) AS awupn,
  RTRIM(AWUEQG) AS awueqg,
  RTRIM(AWMROT) AS awmrot,
  RTRIM(AWFUT54) AS awfut54,
  RTRIM(AWFUT55) AS awfut55,
  RTRIM(AWFUT56) AS awfut56,
  RTRIM(AWFUT57) AS awfut57,
  RTRIM(AWFUT58) AS awfut58,
  RTRIM(AWFUT59) AS awfut59,
  RTRIM(AWMFRC) AS awmfrc,
  RTRIM(AWATFR) AS awatfr,
  RTRIM(AWBBKRQ) AS awbbkrq,
  RTRIM(AWMLBLC) AS awmlblc,
  RTRIM(AWROHSCT) AS awrohsct,
  RTRIM(AWROHSCF) AS awrohscf,
  RTRIM(AWBBKINT) AS awbbkint,
  RTRIM(AWMFCOR) AS awmfcor,
  RTRIM(AWMFPOR) AS awmfpor,
  RTRIM(AWMFRMC) AS awmfrmc,
  RTRIM(AWMFRMS) AS awmfrms
FROM LGDAT.STKMP
