SELECT
  AZCOMP AS azcomp,
  "AZGL#1" AS "azgl#1",
  "AZGL#2" AS "azgl#2",
  AZBTYP AS azbtyp,
  RTRIM(AZTITL) AS aztitl,
  RTRIM(AZATYP) AS azatyp,
  RTRIM(AZGROP) AS azgrop,
  RTRIM(AZSTAT) AS azstat,
  RTRIM(AZUVER) AS azuver,
  AZGIFI AS azgifi,
  RTRIM(AZPJMN) AS azpjmn,
  RTRIM(AZCODE) AS azcode,
  RTRIM(AZFTCD) AS azftcd,
  RTRIM(AZFLG1) AS azflg1,
  RTRIM(AZFLG2) AS azflg2,
  RTRIM(AZFLG3) AS azflg3,
  RTRIM(AZFLG4) AS azflg4,
  RTRIM(AZFLG5) AS azflg5,
  RTRIM(AZFUT1) AS azfut1,
  RTRIM(AZFUT2) AS azfut2,
  RTRIM(AZFUT3) AS azfut3,
  RTRIM(AZFUT4) AS azfut4,
  RTRIM(AZFUT5) AS azfut5,
  RTRIM(AZFUT6) AS azfut6,
  RTRIM(AZFUT7) AS azfut7,
  AZFUT8 AS azfut8,
  AZFUT9 AS azfut9,
  AZFUT10 AS azfut10,
  AZFUT11 AS azfut11,
  AZFUT12 AS azfut12,
  RTRIM(AZCLSC) AS azclsc,
  AZBSLN AS azbsln,
  AZISLN AS azisln,
  RTRIM(AZTTL2) AS azttl2,
  RTRIM(AZICMA) AS azicma,
  RTRIM(AZCURC) AS azcurc,
  RTRIM(AZCATC) AS azcatc
FROM LGDAT.MAST
