As I understand it, the DECODE function or procedure is available in XPS 8.3 and IDS 2000 9.2 or above. Is it available in 7.2x? If not, is there any similar function available?
It came in 7.30 IDS. The only workaround is to use a join to pull back the data you need. You could also write a stored procedure to do the same thing, using a CASE statement.