Would somebody mind posting an example of a WHILE/ENDWHILE loop in a stream job. What I am wanting to do is stream a database resizing job from my DAYCLOSE do something like this: DAYCLOSE DUMP !STREAM AUTOSIZE.USERSTR2;HIPRI !SETVAR LOOPX 2 !SETVAR LOOPING 1 !WHILE LOOPING <=!LOOPX !CONTINUE !IF HPJOBCOUNT = 2 !PAUSE 60 !ENDIF !SETVAR !LOOPX + 1 !ENDWHILE THE REST OF DAYCLOSE RUNS After the autosize job finishes, HPJOBCOUNT is no longer = to 2 so DAYCLOSE goes on. What I have above doesn't quite do it. Thank you in advance.