White Heat from 1949. James Cagney and his gang rob an SP mail train in the beginning of the movie.
Also, Tough guys from 1986. Kirk Douglas and Burt Lancaster rob the special train pulled by the 4449. I haven't seen that movie in a long time but, if I'm not mistaken, Doyle McCormick makes a cameo as the engineer.