SELECT
  RTRIM(AXSTKL) AS axstkl,
  RTRIM(AXLOCN) AS axlocn,
  CASE WHEN AXLDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AXLDAT END AS axldat,
  RTRIM(AXPLNT) AS axplnt,
  RTRIM(AXSTTP) AS axsttp,
  RTRIM(AXBK01) AS axbk01,
  RTRIM(AXADR1) AS axadr1,
  RTRIM(AXADR2) AS axadr2,
  RTRIM(AXADR3) AS axadr3,
  RTRIM(AXADR4) AS axadr4,
  RTRIM(AXADR5) AS axadr5,
  RTRIM(AXADR6) AS axadr6,
  RTRIM(AXADR7) AS axadr7,
  RTRIM(AXADR8) AS axadr8,
  RTRIM(AXADR9) AS axadr9,
  RTRIM(AXADR10) AS axadr10,
  RTRIM(AXPOST) AS axpost,
  RTRIM(AXCITY) AS axcity,
  RTRIM(AXPROV) AS axprov,
  RTRIM(AXCTRY) AS axctry,
  AXTEL AS axtel,
  RTRIM(AXHLD) AS axhld,
  RTRIM(AXMRP) AS axmrp,
  RTRIM(AXQCSK) AS axqcsk,
  RTRIM(AXBINC) AS axbinc,
  RTRIM(AXFLG1) AS axflg1,
  RTRIM(AXFLG2) AS axflg2,
  RTRIM(AXFLG3) AS axflg3,
  RTRIM(AXFLG4) AS axflg4,
  RTRIM(AXTXT1) AS axtxt1,
  RTRIM(AXTXT2) AS axtxt2,
  RTRIM(AXTXT3) AS axtxt3,
  RTRIM(AXTXT4) AS axtxt4,
  RTRIM(AXVLOC) AS axvloc,
  RTRIM(AXSTTY) AS axstty,
  RTRIM(AXXDSL) AS axxdsl,
  RTRIM(AXOLOC) AS axoloc,
  RTRIM(AXFUT1) AS axfut1,
  RTRIM(AXFUT2) AS axfut2,
  RTRIM(AXFUT3) AS axfut3,
  RTRIM(AXFUT4) AS axfut4,
  RTRIM(AXFUT5) AS axfut5,
  RTRIM(AXFUT6) AS axfut6,
  RTRIM(AXFUT7) AS axfut7,
  RTRIM(AXFUT8) AS axfut8,
  RTRIM(AXFUT9) AS axfut9,
  RTRIM(AXFUT10) AS axfut10,
  RTRIM(AXBHLC) AS axbhlc,
  RTRIM(AXINUS) AS axinus,
  RTRIM(AXIUSR) AS axiusr,
  RTRIM(AXPGRP) AS axpgrp,
  RTRIM(AXCNSN) AS axcnsn,
  RTRIM(AXTMZN) AS axtmzn,
  RTRIM(AXFAX) AS axfax,
  RTRIM(AXEMAL) AS axemal,
  RTRIM(AXTPLT) AS axtplt,
  RTRIM(AXTSTK) AS axtstk,
  AXLEAD AS axlead,
  RTRIM(AXLTUN) AS axltun,
  AXTTME AS axttme,
  RTRIM(AXSVIA) AS axsvia,
  RTRIM(AXCWTR) AS axcwtr,
  RTRIM(AXCBOL) AS axcbol,
  RTRIM(AXRBOL) AS axrbol,
  RTRIM(AXPBOL) AS axpbol,
  RTRIM(AXFEED) AS axfeed,
  RTRIM(AXHIN) AS axhin
FROM LGDAT.STKR
