SELECT TRIM(lot.IOLOTN) AS LotNumber,
       TRIM(lot.IOMCU) AS BranchCode,
       lot.IOITM AS ShortItemNumber,
       TRIM(lot.IOLITM) AS ItemNumber,
       lot.IOVEND AS SupplierCode,
       lot.IOLOTS AS StatusCode,
       lot.IOLOT1 AS Memo1,
       lot.IOLOT2 AS Memo2,
       lot.IOLOT3 AS Memo3,
       lot.IOUPMJ AS LastUpdateDate,
	   lot.IOTDAY AS LastUpdateTime
  FROM PRODDTA.F4108 lot
 WHERE TRIM(lot.IOLOTN) IS NOT NULL AND
       TRIM(lot.IOMCU) IS NOT NULL