Hello ...
I'm looking for some advice on how to handle the following task.
I’m trying to get a value to display if the original value is NULL. Here is my SQL:
Here is the value for this 27-byte field:
I’ve also tried
However neither option seems to work successfully for me.
I would appreciate any feedback.
Thanks in advance!
I'm looking for some advice on how to handle the following task.
I’m trying to get a value to display if the original value is NULL. Here is my SQL:
Code:
CASE (B.USR_R_NM)
WHEN X'60'
THEN '***USER ' || RTRIM(A.USER_ADD_ID) || ' DELETED***'
ELSE B.USR_R_NM
END AS USER_NM,
Here is the value for this 27-byte field:
Code:
-
644444444444444444444444444
000000000000000000000000000
I’ve also tried
Code:
CASE (B.USR_R_NM)
WHEN NULL
THEN '***USER ' || RTRIM(A.USER_ADD_ID) || ' DELETED***'
ELSE B.USR_R_NM
END AS USER_NM,
However neither option seems to work successfully for me.
I would appreciate any feedback.
Thanks in advance!