On 2021-12-10 10:02, Joe Monk wrote:
Hi,

Would this work?

Definitely not. It's the same problem as before.
TM requires the mask as part of its instruction.
As others have suggested, the B operand can be supplied
by using  EX.

An alternative would be to use NC to test for the single bit.

        MVI   B,X'08'
        MVI   A,X'1C'
        TM    A,B
        BO    LABEL

A      DS  X
B      DS  X

Joe

On Thu, Dec 9, 2021 at 3:11 PM Ituriel do Neto <
[email protected]> wrote:

Hi all,
I would like advice because i have a situation where i need to check a bit
of a storage area, usinganother storage area as a pattern and not an
immediate.

I have something like this :
A       DC    X'1C'B       DC    X'08'
         TM    A,x'08'         JO    X
But instead of using x'08', i need to use the variable B in the
comparison, because the content of B may change.So, i would need something
like this:
         TM  A,B
How can i do that ?
Thanks in advance.
Best Regards

Ituriel do Nascimento Neto z/OS System Programmer

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

Reply via email to