Patent ID: 8655892

Claim:
A computer program product comprising a non-transitory computer readable storage medium storing computer readable program code executable by processors on a host and a storage device for improved data reorganization on the storage device, the computer program product configured to: search for one or more control interval (CI) vertical pointers that are not in sequential order and one or more control area (CA) horizontal pointers that are not in sequential order in a virtual storage access method (VSAM) data set, wherein each CA comprises a CA index of CI indexes and a data component with CI data and the VSAM data set is stored at a source location of the storage device; create a mapping between the source location and a target location of the storage device for the VSAM data set, wherein the mapping reorders the VSAM data set such that each CI vertical pointer and each CA horizontal pointer of the VSAM data set is in sequential order in response to the VSAM data set being moved to the target location in accordance with the mapping; and move the VSAM data set to the target location in accordance with the mapping by moving, using a host copy by the host, first CI vertical pointers, first CI horizontal pointers, and first CI data that are not in sequential order from the source location to the host, the host reordering the first CI vertical pointers, the first CI horizontal pointers, and the first CI data according to the mapping and moving the reordered the first CI vertical pointers, first CI horizontal pointers, and first CI data to the target location, and moving, using a storage device copy by the storage device, second CI vertical pointers, second CI horizontal pointers, and second CI data that are in sequential order directly from the source location to the target location according to the mapping.