The S&P 500 inched nearer to a record high, lifted by Amazon, Alphabet and Microsoft, and a strong second-quarter earnings season that fuelled optimism about the US economy's strength.

The S&P 500 inched nearer to a record high, lifted by Amazon, Alphabet and Microsoft, and a strong second-quarter earnings season that fuelled optimism about the US economy's strength.