To extract the error messages from the log file.
Posted: Mon Jan 09, 2006 1:22 pm
Hi,
I'm trying to extract the error messages from the log file of a job to a sequential file.I'm using the DSGetLinkInfo function available in datastage.The syntax of which is DSGetLinkInfo(DSJ.ME,'Oracle_OCI_8','DSLink9',DSJ.LINKLASTERR),where
Oracle_OCI_8 is the stage name,DSLink9 is the link name.But the result of this function is only the DBMS CODE(Error code).It doesn't return the actual error message.For example if the error is, ORA-01722: invalid number.The DSGetLinkInfo function returns only the code,ORA-01722 whereas the actual error message is ORA-01722: invalid number.It would be of great help,if someone can suggest me a solution for this.
Regards,
Vimali.
I'm trying to extract the error messages from the log file of a job to a sequential file.I'm using the DSGetLinkInfo function available in datastage.The syntax of which is DSGetLinkInfo(DSJ.ME,'Oracle_OCI_8','DSLink9',DSJ.LINKLASTERR),where
Oracle_OCI_8 is the stage name,DSLink9 is the link name.But the result of this function is only the DBMS CODE(Error code).It doesn't return the actual error message.For example if the error is, ORA-01722: invalid number.The DSGetLinkInfo function returns only the code,ORA-01722 whereas the actual error message is ORA-01722: invalid number.It would be of great help,if someone can suggest me a solution for this.
Regards,
Vimali.