20170809 business.international-business: TSX near flat as dip in resource shares offsets positive earnings