SELECT TRIM(oh.IWMCUW) AS ProfitCenterCode,
       TRIM(oh.IWMCU) AS WorkCenterCode,
       TRIM(oh.IWMMCU) AS BranchCode,
       oh.IWUPMJ AS LastUpdateDate,
	   oh.IWTDAY AS LastUpdateTime
  FROM PRODDTA.F30006 oh
 WHERE TRIM(oh.IWMCU) IS NOT NULL AND
       TRIM(oh.IWMMCU) IS NOT NULL