I don't really know but this seems similar to a thread here a little while ago. 
There are different parsers for different things in the assembler.

=X'0000010002000003' will work but that is probably not what you want. You 
might be able to make a macro that constructed this for you.

=AD((1*X'1000000000')+(2*X'1000000')+3) might be an approach, but you may run 
into 31-bit arithmetic issues. 

Charles


-----Original Message-----
From: IBM Mainframe Assembler List [mailto:[email protected]] On 
Behalf Of David Eisenberg
Sent: Friday, May 4, 2018 12:13 PM
To: [email protected]
Subject: Literals: are terms with different length attributes permitted?

Hi everyone,

I have a question regarding the syntax of literals; I'm not sure if what I'm 
trying to do is valid. Please consider this DC statement:

MYCONST  DC    AL3(1),AL2(2),AL3(3)

Note that the length attributes differ amongst the terms above. Is it possible 
to code that entire expression as a literal? I.e., instead of coding this:

         MVC   0(8,R1),MYCONST

I'm wondering if I can avoid coding the DC statement, and do something like 
this instead (I know this syntax is wrong):

         MVC   0(8,R1),=(AL3(1),AL2(2),AL3(3))

Any help would be greatly appreciated; thank you!

David

Reply via email to