(Reuters) - U.S. stocks opened higher on the last day of July, with the Dow hitting a record high, as investors remained optimistic about second-quarter corporate earnings and ahead of economic data.