One PL1 program is failing due to infinite looping. It seems like the max range is not set properly. What will happen if x has junk values in the below code? program will abend (S0C7) when value moved to x or infinite loop?
x = <value returned from another module>;
Do i = 1 to x WHILE(a = b);
...
end;