The invention relates to a rolling mill (1) for producing rolled rolling stock (G), a machine-readable program code (9), a storage medium (10), a control and/or regulation device (8) for a rolling mill (1) for producing rolled rolling stock (G), and a method for producing rolling stock (G) which was rolled in a rolling train (2) of a rolling mill (1), in particular a continuous casting and rolling mill, wherein the rolling mill (1) is operated in a continuous manner by means of integrally forming the rolling stock during scheduled operation from a supply device (6, 6') which supplies the rolling stock to the rolling mill (1), in particular a casting device (6) and/or a winding device (6') for rolling stock, to at least one finishing rolling train (2) that is arranged downstream of the rolling stock supply device (6, 6'), as viewed in a mass flow direction, by means of guiding the rolling stock (G) into the finishing rolling train (2) in a continuous manner and rolling it to form a first outflow product (A) in the finishing rolling train (2) in a continuous manner. The operation of the rolling mill (1) is monitored for the occurrence of a deviation from the scheduled operation of the rolling mill (2) that influences the rolling process, wherein in case of a deviation measures are taken to examine (100, 101) whether a second outflow product (A*), which is different from the first outflow product, can still be produced (102) considering the deviation. If the second outflow product cannot be produced, the operation of the rolling mill (1) is altered from a continuous operation to a discontinuous operation (106), whereby means can be provided for reducing production failures caused by undesired process deviations in a rolling mill.