I wouldn't expect a comparison operator compared with a condition code to work. 
Use EQ on instructions that compare two operands and use Z on instructions that 
don't.

Question will this work?

         IF    (SR,R1,R3,Z)

-- 
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3
עַם יִשְׂרָאֵל חַי
נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר



________________________________________
From: IBM Mainframe Assembler List <ASSEMBLER-LIST@LISTSERV.UGA.EDU> on behalf 
of David Eisenberg <deisenbe...@optonline.net>
Sent: Thursday, January 9, 2025 12:10 PM
To: ASSEMBLER-LIST@LISTSERV.UGA.EDU
Subject: TP instruction and SPMs

External Message: Use Caution


I'm hoping someone can help me... is it possible to code the TP (Test Decimal) 
instruction within an IF macro (using IBM's Structured Programming Macros)? 
Essentially, I'd like to use the SPMs to do something like this:

 IF (TP,DUB,EQ,Z)
    <DUB contains a valid packed value; it's safe to do packed arithmetic>
 ELSE ,
    <DUB isn't valid packed; don't risk an abend>
 ENDIF ,

Of course I can get around this by not using the SPMs... but I'm wondering if 
anyone knows if it's possible to use the IF macro in this way.

Thank you so much,

David

Reply via email to