IEC501A is issued by Open when Allocation has not issued a mount message (that is, when no IEF233A or IEF233D has been issued -- for example, mounts with DEFER coded) and the volume is needed immediately.
IEC501A is issued by EOV when the end of a volume has been reached and the next volume to be processed is needed immediately.
IEC501E is issued by Open or EOV when the volume to be mounted is not needed immediately (this is referred to as a "look-ahead" mount). The volume indicated by ser is the next volume to be processed after the system finishes processing the current volume.
If the message ID is IEC501A, the job step waits for the volume to be mounted or until the task reaches time-out. This is independent of whether the original allocation was batch (JCL) or dynamic.
If the message ID is IEC501E, the job step does not wait for the volume to be mounted. If the data set is multi-volume and more than one unit is allocated, but fewer units are allocated than volumes, then all volumes after the first may be requested by EOV via message IEC501E. For example, if a data set consists of three volumes, and two tape drives are requested by UNIT=(TAPE,2), then as soon as End of Volume is reached on volume 1, message IEC502E is issued for volume 1, message IEC501E is issued for volume 3 on that same drive, and the job then starts processing volume 2 immediately, without waiting for the mount for volume 3 to be satisfied. This is independent of whether the original allocation was batch (that is, JCL) or dynamic.
If ser is SCRTCH or PRIVAT and the device is a tape unit, make sure that the file protection ring has been inserted in the volume.
Mount the volume on the device. If ser is SCRTCH or PRIVAT and a scratch volume is already on the device, mount another scratch volume. Then ready the device.
DFSMSdfp
IFG0193D, IFG0193E, IFG0194A, IFG0194F, IFG0194K, IFG0195H, IFG0196N, IFG0196T, IFG0196U, IFG0552B, IFG0552F