If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
CREATE FUNCTION rpad(
arg VARCHAR(4000),
pad VARCHAR(1),
len INTEGER) RETURNS VARCHAR(40)
SPECIFIC rpad
CONTAINS SQL
DETERMINISTIC
NO EXTERNAL ACTION
RETURN arg || REPEAT(pad, len - LENGTH(arg))
;
Hope it helps...
__________________
Norberto Gasparotto Filho
IBM Cert. DB2 v9 DBA
IBM Cert. DB2 v9 App. Developer
SCJP 5