Jointed rail was normally made in 39 foot lengths so it would fit in a 40 foot gondola, but shorter lengths can be found in use. Prototype railroads used whatever lengths they had. If you're modeling jointed rail, include a few shorter pieces near the foreground for extra detail.