On Mon, 27 Jul 2015 00:13:03 -0500, Andy Wood <[email protected]> wrote:

>On Wed, 22 Jul 2015 22:39:58 -0400, michelbutz <[email protected]> wrote:
>
>>I am getting a 047 abend running a program 
>>That runs in production 
>>The 047 abend under both TSO TEST and debug tool happens with a STC 
>>instruction which tries to 
>>Modify the 2 lengths of a AP instruction
>
>Is the EXECUTE instruction broken on your machine?
>
>With what you are doing, you could possibly cause ABEND047 (or all sorts of 
>other abends) not on the STC instruction, but on the AP instruction, if you 
>had set a breakpoint on the AP under TSO TEST. That could happen because you 
>would be changing the SVC number in the SVC instruction that replaces the 
>first two bytes of the AP for the breakpoint. That could certainly cause some 
>head-scratching.
>

But to be clear, the same thing would happen if the OP set a breakpoint on the 
AP, and then used an EXecute of the AP to override the length specification. 
He'd be EXecuting the SVC established by the breakpoint, but with a changed SVC 
number. 

Net: I agree he should probably use EXecute not STC, but if he's setting a 
breakpoint it would need to be on the EXecute, not the AP to avoid the problem 
you mentioned.

-- 
Walt

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to