The main Australian S&P/ASX200 index has surged to within 10 points of record highs, although an inflation surprise has sparked volatility.