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.
I have a date field that i have pulled the year out of by using
year(table.field)
and this works fine. Now what I need to do is turn this into a text field and remove all the commas and decimals that are within the field. I usually do it by using ToText({Table.NumField}, 0, ""). However, this does not seem to be a syntax that db2 likes. What would be the db2 way of accomplishing what i need?
Those curly braces don't look like valid DB2 syntax. Check out scalar functions; I don't really understand what you are trying to achieve but there must be something that will help you.