TM A,B as you have written it below is not valid and would not assemble without error. TM takes an immediate 8-bit "mask," not the name (address) of a variable. That is the OP's plaint: he wants a variable mask.
The best (not only) answer is an executed TM, as several have posted. Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Joe Monk Sent: Thursday, December 9, 2021 3:02 PM To: [email protected] Subject: Re: Replacement for TM instruction Hi, Would this work? 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 > ---------------------------------------------------------------------- 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
