For a test of a single bit you can do a logical and on a copy of the byte or 
use NRK. For testing multiple bits you can execute a TM.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3

________________________________________
From: IBM Mainframe Discussion List [[email protected]] on behalf of 
Ituriel do Neto [[email protected]]
Sent: Thursday, December 9, 2021 4:10 PM
To: [email protected]
Subject: Replacement for TM instruction

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

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

Reply via email to