Re: Macro variable attributes

2023-12-19 Thread Ngan, Robert (DXC Luxoft)
We're only at 2022-04, I'll have to get our level of HLASM updated. Thanks, Robert Ngan DXC Luxoft -Original Message- From: IBM Mainframe Assembler List On Behalf Of Jonathan Scott Sent: Tuesday, December 19, 2023 12:42 To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Re: Macro variable

Re: Macro variable attributes

2023-12-19 Thread Jonathan Scott
Robert Ngan writes: > The ability to do the SETA inside the macro really simplifies our code, but > it's implementation seem to be somewhat flaky. Sometimes it work, other > times it get errors. It doesn't fail with the latest level, and I suspect this might be a symptom of the problem fixed by

Re: Macro variable attributes

2023-12-19 Thread Ngan, Robert (DXC Luxoft)
-Original Message- From: IBM Mainframe Assembler List On Behalf Of Jonathan Scott Sent: Friday, November 17, 2023 16:22 To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Re: Macro variable attributes > Is there a way to know the real value of the LEN below when I use a > variable instead of a

RES: RES: RES: RES: RES: RES: Macro variable attributes

2023-11-22 Thread João Reginato
Ok, thank you -Mensagem original- De: IBM Mainframe Assembler List Em nome de Jonathan Scott Enviada em: quarta-feira, 22 de novembro de 2023 18:05 Para: ASSEMBLER-LIST@LISTSERV.UGA.EDU Assunto: Re: RES: RES: RES: RES: RES: Macro variable attributes > My compiler says the len

Re: RES: RES: RES: RES: RES: Macro variable attributes

2023-11-22 Thread Jonathan Scott
> My compiler says the length of the EQU must be an absolute > value when I use wklen+8 on it. We probably need to clarify some of the terminology in the books and the message explanations. The word "defined" normally simply means that the definition of a symbol has already been seen, but does

RES: RES: RES: RES: RES: Macro variable attributes

2023-11-22 Thread João Reginato
: RES: Macro variable attributes On Tue, 21 Nov 2023 17:39:02 -0300, João Reginato wrote: >Have you read from the beginning of this thread? Yes, I'm familiar with the thread. As I said before, we're making assumptions because you didn't state your intent. Instead, you gave a specific exam

RES: RES: RES: RES: RES: Macro variable attributes

2023-11-22 Thread João Reginato
: terça-feira, 21 de novembro de 2023 19:03 Para: ASSEMBLER-LIST@LISTSERV.UGA.EDU Assunto: Re: RES: RES: RES: RES: Macro variable attributes On Tue, 21 Nov 2023 17:39:02 -0300, João Reginato wrote: >Have you read from the beginning of this thread? Yes, I'm familiar with the thread. As I said bef

Re: RES: RES: RES: RES: Macro variable attributes

2023-11-21 Thread Jon Perryman
On Tue, 21 Nov 2023 17:39:02 -0300, João Reginato wrote: >Have you read from the beginning of this thread? Yes, I'm familiar with the thread. As I said before, we're making assumptions because you didn't state your intent. Instead, you gave a specific example >As I said in the first e-mail

RES: RES: RES: RES: Macro variable attributes

2023-11-21 Thread João Reginato
Jon Perryman Enviada em: terça-feira, 21 de novembro de 2023 17:21 Para: ASSEMBLER-LIST@LISTSERV.UGA.EDU Assunto: Re: RES: RES: RES: Macro variable attributes Is the EQU something you can't change? If you need it as the value then code it as both value and length so it can be accessed as a value

Re: RES: RES: RES: Macro variable attributes

2023-11-21 Thread Jon Perryman
Is the EQU something you can't change? If you need it as the value then code it as both value and length so it can be accessed as a value and length. In your case, the value will always resolve to a number so it is always a valid length. EQU_LABEL EQU 30,30 EQU_LABEL EQU

RES: RES: RES: Macro variable attributes

2023-11-21 Thread João Reginato
@LISTSERV.UGA.EDU Assunto: Re: RES: RES: Macro variable attributes Joao, In your case, the value is always a number that is used to specify the length of a variable. Why can't you specify this length number as the second EQU arg instead of the first arg which is the value that can be extracted using L

Re: RES: RES: Macro variable attributes

2023-11-21 Thread Jon Perryman
Joao, In your case, the value is always a number that is used to specify the length of a variable. Why can't you specify this length number as the second EQU arg instead of the first arg which is the value that can be extracted using L'?   On Tue, 21 Nov 2023 16:00:31 -0300, João Reginato

RES: RES: Macro variable attributes

2023-11-21 Thread João Reginato
I don't care about its length but the actual value -Mensagem original- De: IBM Mainframe Assembler List 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

Re: RES: Macro variable attributes

2023-11-21 Thread Jon Perryman
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 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

RES: Macro variable attributes

2023-11-20 Thread João Reginato
Thank you Jonathan but it seems I don't have these APARs installed. -Mensagem original- De: IBM Mainframe Assembler List Em nome de Jonathan Scott Enviada em: sexta-feira, 17 de novembro de 2023 19:22 Para: ASSEMBLER-LIST@LISTSERV.UGA.EDU Assunto: Re: Macro variable attributes

Re: Macro variable attributes

2023-11-17 Thread Jonathan Scott
> Is there a way to know the real value of the LEN below when > I use a variable instead of a value? > > MACRO > WORK =0 > DS XL() > MNOTE *,.LEN= > MEND If you have a recent maintenance level of HLASM, including APAR PH34116 from February 2021, you can use SETA to obtain the

Macro variable attributes

2023-11-17 Thread João Reginato
Hi Is there a way to know the real value of the LEN below when I use a variable instead of a value? MACRO WORK =0 DS XL() MNOTE *,’LEN=’ MEND WORK LEN=wklen Wklen equ 32 In the sample above the mnote says LEN=WKLEN but I preferred LEN=32 instead. How to