I think I see your problem.
You have to identify a label variable so that the programmer can
put a label on the statement.
Then you have to put that label variable as the label for &REST.
Thusly:
1 MACRO
2 &LBL ZERO &N
3 &REST SETC 'SR &N,&N'
4 &LBL &REST
5 MEND
Steve Thompson
On 11/14/2023 5:22 PM, Willy Jensen wrote:
The way I read the error message is that the entire statement 'SR 15,15' is
read as the op-code.
-----Oprindelig meddelelse-----
Fra: IBM Mainframe Assembler List <[email protected]> På vegne af
Michael Oujesky
Sendt: 14. november 2023 23:18
Til: [email protected]
Emne: Re: ASMA057E Undefined operation code SR 15,15
Looks like it is taking 'SR' as a label and '1,15' as an op ode.
Michael
At 02:28 PM 11/14/2023, João Reginato wrote:
hi
I can't see the error on this simple code.
Can anyone help me pls?
TIA
João Reginato
(+55 61) 9911-55500
Active Usings: None
Loc Object Code Addr1 Addr2 Stmt Source Statement
HLASM R6.0 2023/11/14 16.58
1 MACRO
2 ZERO &N
3 &REST SETC 'SR &N,&N'
4 &REST
5 MEND
6 ZERO 15
7+ SR 15,15
01-00004
** ASMA057E Undefined operation code - 00004/SR 15,15
** ASMA435I Record 4 in JOAO.QWASM.JOB09574.D0000101.? on volume:
8 END