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