The error saying wrong ELF class is because /usr/local/nz/lib is still present, so it's finding the 32 bit drivers which are the wrong ELF class. The main issue here is you have two sets of Kerberos libraries, one in /lib64 and one in /usr/local/nz/lib64, and they are not compatible. Depending on which function you are using, the appropriate path would need to be first in LD_LIBRARY_PATH so it can find it's associated libraries and not the ones from the incompatible location. If LD_LIBRARY_PATH contains /lib64 before /usr/local/nz/lib64, the OS functions will work. If LD_LIBRARY_PATH contains /usr/local/nz/lib64 before /lib64 (or /lib64 is omitted and implicit), then Netezza connectivity will work. So if your sasenv_local contains an LD_LIBRARY_PATH that includes /usr/local/nz/lib64 (which would be needed to get Netezza working) you would probably need to add an options statement to modify the LD_LIBRARY_PATH environment variable prior to running your OS functions. e.g. options set=LD_LIBRARY_PATH="/lib64/:%sysget(LD_LIBRARY_PATH)";
... View more