Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
SAS では、マクロ言語を定義した後、たとえば、
%macro source(x); ...... %mend source;
x を 17 から 63 に置き換えたいのですが、キー入力の代わりにこれを行う簡単な方法はありますか?
%source(16); %source(17); ... %source(63);
You could create a new macro with a do-statement to run you macro a select number of times:
%MACRO RunMacro(from, to); %DO i = &from. %TO &to.; %source(&i.); %END; %MEND RunMacro; %RunMacro(16, 63);