I just want to know with the code below is there a way to to get the line number.
I do use Toad while debugging, if there is a way to get just for that, then that will do.
EXCEPTION
WHEN OTHERS
THEN
err_msg := substr(SQLERRM, 1, 200);
fileHandler := UTL_FILE.FOPEN ('c:\temp', 'sqlerr.txt', 'a');
UTL_FILE.PUT_LINE (fileHandler, SYSDATE);
UTL_FILE.PUT_LINE (fileHandler, 'ParseReceivedFiles');
UTL_FILE.PUT_LINE(filehandler, 'File Name: ' || inFILENAME);
-- UTL_FILE.PUT_LINE(filehandler, 'Line number :' || $$plsql_line);
UTL_FILE.PUT_LINE (fileHandler, err_msg);
UTL_FILE.FCLOSE (fileHandler);
om_interface.send_email ('Error in procedure ParseReceivedFiles ',
err_msg || '. --- File Name:' || inFILENAME,
'LIMSAdmin@transnetyx.com');
Louie