> If, as stated in another response to this thread, the poster doesn't > want the record that has a null-id to be processed, then I'd probably do > something like this: > > SELECT FILENAME > LOOP WHILE READNEXT ID > IF (ID) THEN > CODE > CODE > CODE with GOSUB > CODE > CODE > END ELSE > Error handling code > END > REPEAT
Be careful with that! If there's a valid ID of "0" or "000" or "00000000000000000" it would hit the error-handling code. I suggest checking ID against an empty string, since that's the actual error condition.. Tim Snyder Consulting I/T Specialist U2 Lab Services Information Management, IBM Software Group ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
