When you use the IFN function in queries similar to the one below in SAS 9.4M4, an incorrect value is returned:
This problem is specific to this version of SAS and to Linux operating systems.
To circumvent the issue, upgrade to a newer version of SAS such as SAS 9.4M5 (TS1M5) or later.