Ref: Your note of Tue, 23 Aug 2016 09:43:14 +0000
Michael Lifshitz wrote:
> Jonathan, isn't it the same as
>
> ORG *-&OFFSET,&BOUNDARY,&OFFSET
>
> ?
Yes, I'd have thought that your simpler form would have exactly
the same effect as the form in my old ALIGN macro:
ORG *+&BOUNDARY-&OFFSET,&BOUNDARY,&OFFSET-&BOUNDARY
My macro appears to date from trying out HLASM R5 (in which this
feature was introduced) about 10 years ago, and the extra
complexity seems to be aiming to avoid a negative intermediate
result, but as far as I know that should not be a problem, so
I can't see any problem with the simpler form.
To allow for the possibility of the offset being an expression,
a more robust macro would enclose it in parentheses:
ORG *-(&OFFSET),&BOUNDARY,&OFFSET
Jonathan Scott
IBM Hursley, UK