Dennis wrote:
> Chen Hai Jing ([log in to unmask]) wrote:
> : :RUN SPN010E.NEWPROG
> : **** INTERNAL TRAP
> : Data PAGE Fault
> : [VSM] Invalid Pointer Error
> : ABORT: SPN010E.NEWPROG.SPN
> : NM PROG 129c.0000812c szspn01+$4fc
>
> Fire up the debugger and see if you can find any STMT entries need that
> address. ^^^^near?
I believe he's suggesting that you do something like:
:RUN SPN010E.NEWPROG.SPN;DEBUG
nmdebug > won
nmdebug > pj szspn01+4fc
then use the 'pf' and 'pb' (p window forward and back) commands to look
for "instructions" that disassemble as "*** STMT <some number>" which
tells you the original statement number (from a compiler listing) that
the code you are looking at is from. This (plus a compiler listing
with statement numbers of course) will let you map the abort address
back to the line of code it occurred it.
> Or compile with $CONTROL BOUNDS and see if it detects any errors.
Always a good suggestion with COBOL problems of this sort.
G.