R56 – The LOOP may not have a valid LEAVE statement (and may not exit validly) (WMB)

The LOOP may not have a valid LEAVE statement (and may not exit validly) (WMB)

The following loop may not end (infinite loop):

  DETAILS_LOOP : LOOP
    SET details = Environment.Variables.Details;
    IF COALESCE(details,”) = ” THEN
      – use in testing
      – LEAVE DETAILS_LOOP;
    END IF;

    END LOOP DETAILS_LOOP;