Catch Error sub-code

Hi,

How can I catch in on error block the sub-code (if there of course) for an error ocurred?
Does anyone encounter an error 3028, somehow from nowhere? and the second time it works fine (batch mode).

With Regards,
Hezi

I have not tried this, but it appears that USR0610N will return the subcode. Invoke it from within an ON ERROR and then display DB_SUBCODE.

USR0610N is correct, but there is a newer version (which allows for 2-byte dbids), namely USR2010N.

Hi,

Thank you, I used usr2010n & it’s workes fine.

:slight_smile: :slight_smile: