Scott wrote on 03/02/2005 04:30:09 PM:

> I have a need to search through our program files for any code that 
> format a number from 1 through 99999 with leading 0's.


It's nasty, and I don't recommend it, but I've seen people do things like 
this:

LOOP
WHILE LEN(X) LT 5 DO
  X = "0" : X
REPEAT

Actually, this is generally done with some ugly GOTO logic, but I just 
couldn't make myself do that.  Of course, it could be done with a FOR-NEXT 
loop, or any variety of ways.  Good luck trying to automate a search for 
this sort of thing.


Tim Snyder
Consulting I/T Specialist , U2 Professional Services
North American Lab Services
DB2 Information Management, IBM Software Group
717-545-6403
[EMAIL PROTECTED]
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to