The lobLib.updateClobToFile() system function copies the data referenced by a CLOB variable into a specified file. If the file exists, the function first erases the content of the file; otherwise, the function creates the file.
lobLib.updateClobToFile( clobVariable CLOB inOut, fileName STRING in)