Stocks trim losses as good economic numbers ease recession fears