Dick: This should work for you.
set var VTEXT = (LJS((FORMAT(321,'000000')),6)) Including the LJS function ensures that you get a left justified string that's 6 characters long. Hope that helps. Mike Ramsour AK Steel Coshocton Works Quality Department Phone: 740-829-4340 Cell: 740-502-1659 From: Dick Fey <[email protected]> To: [email protected] (RBASE-L Mailing List) Date: 06/07/2013 02:30 PM Subject: [RBASE-L] - Functions Sent by: [email protected] I love functions, but there are so darn many I sometimes cannot find what I need. I need to fill a string with leading zeros to always acheive a 6 character field. so 321 would become 000321 etc. Thanks, Dick Fey Confidentiality Notice This message is intended exclusively for the individual or entity to which it is addressed and may contain privileged, proprietary, or otherwise private information. If you are not the named addressee, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this message in error, please notify the sender immediately by e-mail and delete all copies of the message.

