I don't care about its length but the actual value

-----Mensagem original-----
De: IBM Mainframe Assembler List <ASSEMBLER-LIST@LISTSERV.UGA.EDU> Em nome de 
Jon Perryman
Enviada em: terça-feira, 21 de novembro de 2023 14:09
Para: ASSEMBLER-LIST@LISTSERV.UGA.EDU
Assunto: Re: RES: Macro variable attributes

Like DC & DS, you can fully define a variable using EQU. The second EQU parm 
allows you to define a length that can be queried using &VAR SETA L'EQU_LABEL 
from EQU_LABEL EQU ,30.

Another possibility is to use DS 0AL4(EQU_LABEL) will display the value in the 
listing but the 0 causes the field to not be used. It's in hex but easy to 
convert.

Ask yourself if this is something that you really need to display the length 
using MNOTE. The listing field reference shows the length or You can subtract 
the offsets from the listing to get the length. You're adding unnecessary lines 
to the listing.
 
On Mon, 20 Nov 2023 18:34:20 -0300, João Reginato <jb.regin...@gmail.com> wrote:

>Thank you Jonathan but it seems I don't have these APARs installed.

>De: IBM Mainframe Assembler List <ASSEMBLER-LIST@LISTSERV.UGA.EDU> Em nome
>de Jonathan Scott
>>If you have a recent maintenance level of HLASM, including APAR
>>PH34116 from February 2021, you can use SETA to obtain the value
>>of an equated symbol which has been defined and resolved.  (Some
>parameter cases did not work and required a further fix for APAR
>PH50923).

Reply via email to