On 2015-10-29 15:23, David Cole wrote:
> Yeah Paul, Tony has it right. "&STCKEVAL.(8)" is what you want to do.
> 
> The dot separates the "(8)" from the symbol.
> 
> Without the dot, HLASM expects &STCKEVAL is an array and that you want the 
> 8th element.
> 
Is this preferable to my accidental discovery:
    &STCKEVAL+0(8)

They both work; I suppose it depends on which is documented as supported
and which is more resilient against HLASM enhancements.

In context, "+0" looks more consistent/uniform:
         UNPK  YYYY(15),&STCKEVAL+0(8)
         UNPK  YYYY+14(15),&STCKEVAL+7(8)
         UNPK  YYYY+28(15),&STCKEVAL+14(8)
         TR    YYYY(32),XTAB       Translate unpacked to hex

(or should these all be:
         UNPK  YYYY(15),&STCKEVAL.+0(8)
         UNPK  YYYY+14(15),&STCKEVAL.+7(8)
         UNPK  YYYY+28(15),&STCKEVAL.+14(8)   )

(Is there a better way to translate a string to hex?  I don't
feel I need a loop, or to learn TRL or TRG.)

Thanks,
gil

Reply via email to