Yeah, I forgot the C between the = and the '. Good to know it works.
I have often coded an eyecatcher compare to make sure I had found the control block I expected. Too bad there is not a CLCIN instruction. The OC of 40's that someone suggested won't work very well in this situation either (not without an intermediate work area). So here's a new pointless assembler problem. What is the best way to compare for a good eyecatcher without an in-memory constant that looks just like the eyecatcher? Charles -----Original Message----- From: IBM Mainframe Assembler List [mailto:[email protected]] On Behalf Of Paul Gilmartin Sent: Friday, October 23, 2020 4:24 PM To: [email protected] Subject: Re: Reversed string macro On 2020-10-23, at 16:32:30, Charles Mills wrote: > > Can you code an address expression with a literal? Is MVCIN TARGET,='Foo'+2 (or 2+='Foo', or some equivalent) valid? If so, you could embed your logic in an executable SETEYE macro that would take SETEYE TARGET,'EYECATCH' and generate MVCIN TARGET,='HCTACEYE'+7 > I believe it must be: MVCIN TARGET,=C'Foo'+2 What's dismaying is that Assembler prohibits for no good reason: DC S(=C'Foo'+2) ... with equivalent base-displacement resolution. > You could certainly do it generating the constant in-line, but that is a cache no-no. Of course, if it only executes once per run, who cares? > Agreed. -- gil
