SELECT
  [CLOSED] AS [closed],
  [SERIES] AS [series],
  RTRIM([ODESCTN]) AS [odesctn],
  [FORIGIN] AS [forigin],
  [PERIODID] AS [periodid],
  [PERIODDT] AS [perioddt],
  RTRIM([PERNAME]) AS [pername],
  [PSERIES_1] AS [pseries_1],
  [PSERIES_2] AS [pseries_2],
  [PSERIES_3] AS [pseries_3],
  [PSERIES_4] AS [pseries_4],
  [PSERIES_5] AS [pseries_5],
  [PSERIES_6] AS [pseries_6],
  [YEAR1] AS [year1],
  [PERDENDT] AS [perdendt],
  [DEX_ROW_TS] AS [dex_row_ts],
  [DEX_ROW_ID] AS [dex_row_id]
FROM [GPSERVER].[CHG].[dbo].[SY40100]
