The EGL freeSQL statement frees any resources associated with a dynamically prepared SQL statement, closing any open cursor associated with that SQL statement.

After you issue a freeSQL statement, you cannot run the execute, open, or get statement for the prepared SQL statement without reissuing the prepare statement.
No error occurs if the prepared code you reference in the freeSQL statement did not run previously.