MONTREAL - Canadian National Railway Co. reported that its second-quarter profit and revenue both rose compared with a year ago, and it raised its guidance for the full year.

The railway says it earned $1.25 billion or $2.06 per diluted share for the quarter that ended June 30, up from $1.17 billion or $1.87 per diluted share a year earlier.