When I run the following command I get an error while using STRSQL. Is this a valid statement or am I losing my mind.
select right(gmans, 5) from f0901
(This is the error I get)
RIGHT in *LIBL type *N not found.
If I use the "Left" command it works fine.
Software/Hardware used:
ASKED:
September 15, 2005 3:53 PM
UPDATED:
June 14, 2013 3:17 PM
Losing your mind
According to the “DB2 Universal Database for iSeries SQL Reference” LEFT is a Scalar Function, listed under Built-in Functions.
There is no definition for RIGHT. So presumably RIGHT does not exist (as the error message suggests)
Don’t presume, read the docs.
this doc is available in PDF format in the ibm doc cdrom : …InfoCenterinfodb2rbafzmst.pdf
or on line
Personnaly, I have a local copy of this 2-cd-intranet-site on my PC, it is a must !