You are very close.  Try this, instead:
CLC MYSTRING,=A(CODE)


The contents of this e-mail are intended for the named addressee only. It 
contains information that may be confidential. Unless you are the named 
addressee or an authorized designee, you may not copy or use it, or disclose it 
to anyone else. If you received it in error please notify us immediately and 
then destroy it.

From: IBM Mainframe Assembler List [mailto:[email protected]] On 
Behalf Of Mike Lude
Sent: Monday, March 07, 2011 6:12 PM
To: [email protected]
Subject: EQUate to a character string

I'm using an IBM-supplied macro that contains something similar to

CODE  EQU C'ABCD'

I have a value returned by a system service and I want to see if it matches 
CODE, something like

CLC MYSTRING,=C(CODE)

Of course, this is invalid. I can't figure out how to use this equate. Anybody 
have an idea?

Thanks,
/Mike Ludé

Reply via email to