Storage area:

A        DC  X'1C'
B        DC  X'08'
TM1 TM  A,0
. . . . . 

Instruction sequence:

          IC    R15,B
          EX   R15,TM1
* HERE YOU WOULD BRANCH BASED ON TM RESULTS

HTH

Peter

-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of 
Ituriel do Neto
Sent: Thursday, December 9, 2021 4:11 PM
To: [email protected]
Subject: Replacement for TM instruction

EXTERNAL EMAIL

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

This message and any attachments are intended only for the use of the addressee 
and may contain information that is privileged and confidential. If the reader 
of the message is not the intended recipient or an authorized representative of 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please notify us immediately by e-mail and delete the message and any 
attachments from your system.


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

Reply via email to