The Nasdaq Composite and S&P 500 stock indexes rounded out the first week of August trading with some gains after the release of the better-than-expected jobs report.