A computer-readable storage medium which stores a program to cause an image recording apparatus which can connect with a sheet processing apparatus having plural storage units capable of storing sheets, to execute:
- a reception step of receiving data including image data from a remote data processing apparatus;
- an image recording step of recording an image based on the received image data, on a sheet;
- and
- a control step of performing control, according to first data instructing to distribute the sheets to the storage unit belonging to which of plural groups of the grouped storage units is included in the data received from the remote data processing apparatus, to distribute the sheets on which the image data from the remote data processing apparatus has been recorded to the storage unit belonging to the group according to the first data;
- a step of causing the image recording apparatus to execute more than once the recording of the same page of image data of a second-type job and causing the image recording apparatus to distribute a record result obtained by the recording to plural storage units of said sheet processing apparatus, in a case where said second-type job is accepted by said image recording apparatus from a first-type job in which the first data is not set and said second-type job in which the first data is set,
- wherein the first data is group-name information commonly utilized by the plural storage units,
- wherein said control step causes said image recording apparatus to execute the recording of the same page of the image data of the second-type job by the number of times corresponding to the number of members specified by the group-name information included in the second-type job, and causes to distribute the same recording result obtained by the recording to the plural storage units allocated to the plural members specified by the group-name information included in the second-type job, and
- wherein an arbitrary character string based on an operator's manual input using a user interface unit can previously be registered as the group-name information.