I meant "receive the error msg that follows":
ASMA186E AMODE/RMODE already set for this ESD item

I know what RMODE does do.
But I have a program that can or not call TPUT.
If it calls, so I'd like to set RMODE 24, otherwise 31.
But 31 was already set in the beginning of the CSECT.
It could simply cancel the previous RMODE and set the new one.
Just a suggestion.
Have a nice weekend


-----Mensagem original-----
De: IBM Mainframe Assembler List <[email protected]> Em nome de 
Jon Perryman
Enviada em: sexta-feira, 1 de dezembro de 2023 16:27
Para: [email protected]
Assunto: Re: Reseting RMODE

On Fri, 1 Dec 2023 11:06:16 -0300, João Reginato <[email protected]> wrote:

>How can I reset RMODE without receive 
>ASMA186E AMODE/RMODE already set for this ESD item

What do you mean by "receive"?

RMODE is not a machine instruction (e.g. MVC). Instead, the linkage editor 
verifies where you want this CSECT to reside in storage. Only 1 RMODE is 
allowed per CSECT because the CSECT cannot be moved once it is in storage. 

Are you thinking that RMODE must be changed? Set the RMODE to the highest RMODE 
that your code supports and the linkage editor / loader will handle it 
correctly. For instance, you code RMODE 31, then it can be linked into a load 
module that is either RMODE 31 or RMODE 24 without any program changes.

Reply via email to