Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Bill Zega — — source: Informix-list mailing list archive (1991-1998)
Thanks for repsponding but... I need the function to be generic for variable
length strings (MAX char(100)). Example:
define g_8 char(8),
g_50 char(50)
let g_8 = rightshift("123456 ")
# Will return " 1234" (four spaces,"1234")
# I need it to return " 123456" (two spaces,"123456")
let g_50 = rightshift("123456 ")
# Will also return " 1234" (four spaces,"1234")
# I need it to return " 123456" (forty-four spaces,"123456")
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.