Railways help TSX make slight gains; resources weigh

People walk past an electronic board displaying the midday TSX index in TorontoBy Alastair Sharp TORONTO (Reuters) – Canada's main stock index eked out a small gain in morning trade on Wednesday as strong results from the country's two biggest railways offset losses in energy and mining companies. Canadian Pacific Railway Ltd , Canada's No. 2 rail operator, surged 6.2 percent to C$143.20 after reporting a 45 percent jump in profit as freight revenue rose and operating costs fell. Canadian National Railway Co , the No. 1 operator and focus of scrutiny after one of its trains derailed and caught fire last weekend, jumped 2.7 percent to C$112. …