All,

for literals where the assembler refuses to do the calculus for you,
you can use a SETA statement to determine the value,
then use the SETA symbol to promote the calculated value into the DC value.

The upper limit of 2G of results, including any intermediate values,
still applies.
To get around that you'll need to work out the SETA for a set of variables
holding sections of the final number. Clunky, but it can be made to work.

Success!
Abe
===


Op 19/05/2022 om 21:48 schreef Paul Gilmartin:
> On May 19, 2022, at 12:16:45, Ngan, Robert (DXC Luxoft) wrote:
>> FD is a fixed point doubleword.
>>  
> Alas, there's no way to define a doubleword constant containing the
> value of an arithmetic expression AL8(2+2)?
>
> Having only a 32-bit assembler for a 64-bit architecture is
> increasingly becoming anachronistic.
>
>> -----Original Message-----
>> From:  Schmitt, Michael
>> Sent: Thursday, May 19, 2022 13:09
>>
>> Today I learned that there isn't a fixed point DOUBLEWORD constant either.
>>
>> I never noticed that  DC D isn't fixed point, it is floating point.
>>
>>
>> -----Original Message-----
>> From: Schmitt, Michael
>> Sent: Monday, April 18, 2022 10:03 AM
>>
>> HLASM has fixed decimal constants for Halfwords, Fullwords, Doublewords, 
>> with appropriate alignment. Why is there none for Quadwords?
>>
>> The closest I see is LQ, but that appears to be intended for floating point.

Reply via email to