Not exactly sure what you mean; there is only one rail excursion in Skagway--the White Pass. You can either take the train round trip; or the train one-way and some other way back (bus, bike, etx.).
You can book it through your cruise or on your own.
If you would like more help you can ask more specific questions.