TRAIN was made to work with StaMPS as an optional package see StaMPS manual 2.3.2 the configuration is explained in the TRAIN manual pages 6 pp. The package can be added to the StaMPS installation any time by running the APS_CONFIG.* file in your shell, as it is described in the TRAIN manual. Google’s MAINSAR group is the place where I found the most helpful information about the package handling, I would recommend to read some posts there for a start.