I guess the other code is related to Sybase ASE and not Sybase IQ. 
Refer http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc38151.1540/doc/html/san1278453534056.html