No, &DISP doesn't have to be a SETC symbol and there's no need to make a copy 
of &CTR3. Of course, the code would be more readable if you chose better names 
for the variables than &CTR*.

Try putting a period at the end of the name

                    ST         R14,&CTR3.(R1)




--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3

________________________________________
From: IBM Mainframe Assembler List [[email protected]] on behalf 
of Joe Reichman [[email protected]]
Sent: Sunday, March 22, 2020 10:56 AM
To: [email protected]
Subject: Help building a parameter list

Hi



I have a macro which takes a variable   number of parameters as parameters
to a called program best I give any example



                     CALLPGM  &PGM,&PARMLST,&PARM1..&PARMC

                     LCLA       &CTR1,&CTR2,&CTR3

                     LCLC       &DISP

&CTR1         SETA        N'&SYSLIST

&CTR2         SETA        3

&CTR3         SETA       0

                     LA           R1,&PARMLST

.LOOP          ANOP

                    AIF        (&CTR2 EQ CTR1).SETEND

.*

.*   I Think the displacement has to be a SETC symbol not a SETA

.*

&DISP         SETC   '&CTR3'

                    LA         R14,&SYSLIST(&CTR3)

                    ST         R14,&DISP(R1)

&CTR1       SETA     &CTR1+1

&CTR3       SETA     &CTR3+4

                   AGO      .LOOP



I am getting the following assembler error "ST    R14,&DISP(R1)"

** ASMA108E Inconsistent dimension on SET symbol reference; default=0, null,
or Whether I was the above syntax

Or  ST   R14,&CTR3(R1)



Any  guidance appreciated









  thanks

Reply via email to