Patent ID: 8896948

Claim:
A computer program product for establishing a range of maximum expansion and maximum contraction for acceptable write conditions on tape of a tape cartridge, the computer program product comprising a non-transitory computer readable storage medium having program code embodied therewith, the program code executable by a processor to: determine if said tape has expanded or contracted in a lateral direction; if said tape has expanded in said lateral direction, then: determine an amount of expansion; determine if a sum of said amount of expansion and a maximum acceptable amount of contraction is less than a predetermined threshold value; store said amount of expansion as said maximum acceptable amount of expansion if said sum of said amount of expansion and said maximum acceptable amount of contraction is less than said predetermined threshold value; and if said tape has contracted in said lateral direction, then: determine an amount of contraction; determine if a sum of said amount of contraction and a maximum acceptable amount of expansion is less than said predetermined threshold value; and store said amount of contraction as said maximum acceptable amount of contraction if said sum of said amount of contraction and a maximum acceptable amount of expansion is less than said predetermined threshold value.