adventurous1
Programmer
Ok... I am crying uncle and asking for help after doing my best to find this in any documentation or reference material.
I am concatenating the following ZIP||SUBSTR(UPPER(LNAME),5)||SUBSTR(ADDR1,6).
ZIP=60543, LNAME=JOHNSON, ADDR1=1 MAIN STREET
The result = 60543JOHNS1 MAIN
What I need it to look like = 60543JOHNS1MAIN (with one blank space after main so the total length = 16 bytes)
Since the address portion can have spaces (and they arent removed by rtrim or ltrim) the resulting record has spaces in it.
I couldnt find a function that would do this... Can anyone help?
Thanks!
I am concatenating the following ZIP||SUBSTR(UPPER(LNAME),5)||SUBSTR(ADDR1,6).
ZIP=60543, LNAME=JOHNSON, ADDR1=1 MAIN STREET
The result = 60543JOHNS1 MAIN
What I need it to look like = 60543JOHNS1MAIN (with one blank space after main so the total length = 16 bytes)
Since the address portion can have spaces (and they arent removed by rtrim or ltrim) the resulting record has spaces in it.
I couldnt find a function that would do this... Can anyone help?
Thanks!