Anyone know how to get the statement number within a line when an error occurs?
Obviously, ROMs which support ERLIN return the line number. It would be helpful to get the statement number as well for debugging purposes - what I'd like is for my debugging routine to return something like: REPORT #channel PRINT #channel,'AT LINE ';ERLIN;':';error_statement It's probably stored in the basic variables area somewhere, though I can't seem to find it. -- Dilwyn Jones