John Wayne's penultimate Western was The Shootist (1976).
Note: Cahill U.S. Marshal (1973) was released earlier the same year as The Train Robbers (1973), making The Shootist his final Western, with The Train Robbers or Cahill as second-to-last depending on release order.