THANK YOU @Tom ; here i do a further describtion and hope to get your Valuable advice ; HERE IS WHAT I HAVE I have three macros ,macro3 refers to macro2 and macro2 refers to macro1, and They share the same input parameters (name1=,name2=,name3=,name4=,name5=); %macro macro1(name1=,name2=,name3=,name4=,name5=); *codes......; %mend; %macro macro2(x1=,x2=,name1=,name2=,name3=,name4=,name5=); *other codes.......; %macro1(name1=&name1.,name2=&name2.,name3=&name3.,name4=&name4.,name5=&name5.); *other codes.......; %mend; %macro macro3(y1=,y2=,x1=,x2=,name1=,name2=,name3=,name4=,name5=); *other codes.......; %macro2(x1=&x1.,x2=&x2.,name1=&name1.,name2=&name2.,name3=&name3.,name4=&name4.,name5=&name5.); *other codes.......; %mend; HERE IS WHAT I WANT CONTROL THE INPUT parameters OF EVERY MACRO BY MACRO VARIABLE ; the number of input parameters of macro1 may be changed to (name1=,name2=,name3=,name4=,name5=,name6=,name7=) or more,just like %macro macro1(name1=,name2=,name3=,name4=,name5=,name6=,name7=); *codes......; %mend; and i wish macro2 could be changed as %macro macro2 (x1=,x2=,name1=,name2=,name3=,name4=,name5=,name6=,name7=); *other codes.......; %macro1(name1=&name1.,name2=&name2.,name3=&name3.,name4=&name4.,name5=&name5.,name6=&name6.,name7=&name7); *other codes.......; %mend; and i wish macro3 could be changed as %macro macro3(y1=,y2=,x1=,x2=,name1=,name2=,name3=,name4=,name5=,name6=,name7=); *other codes.......; %macro2(x1=&x1.,x2=x2.,name1=&name1.,name2=&name2.,name3=&name3.,name4=&name4.,name5=&name5.,name6=&name6.,name7=&name7); *other codes.......; %mend;
... View more