Hi Rob! Thanks! I just wanna try the first way, like below: %macro cons1; %do j = 1 %to 3; con Mycon1&j {j in SUPPLIERS, m in RAW_MATERIALS}: SUM {q in PRICE_INTERVALS} raw_quantity&j_1[m,q] = raw_quantity_1[&j,m]; %end; %mend cons1; %cons1; With the error message: ! raw_quantity&j_1[m,q] = raw_quantity_1[&j,m]; - 22 76 WARNING: Apparent symbolic reference J_1 not resolved. ERROR 22-322: Syntax error, expecting one of the following: !!, (, *, **, +, -, .., /, <=, <>, =, ><, >=, BY, CROSS, DIFF, ELSE, INTER, SYMDIFF, TO, UNION, [, ^, ||. ERROR 76-322: Syntax error, statement will be ignored. %cons1;
... View more