Guest_imported
New member
- Jan 1, 1970
- 0
Hi all, what's wrong with this macro?? Macro 1 works, but when I do some changes, Macro2 doesn't
Macro1
------
rsubmit;
%macro cp;
endrsubmit;
filename out1 'c:\out.txt';
rsubmit;
filename in1 '/sas458/users/common/report_test1.log';
proc download infile=in1 outfile=out1; run;
%mend cp;
%cp;
Macro 2
-------
%macro cp(src);
endrsubmit;
filename out1 &src;
%put src=;
rsubmit;
filename in1 '/sas458/users/common/report_test1.log';
proc download infile=in1 outfile=out1; run;
%mend cp;
%cp ('c:\test.log');
Macro1
------
rsubmit;
%macro cp;
endrsubmit;
filename out1 'c:\out.txt';
rsubmit;
filename in1 '/sas458/users/common/report_test1.log';
proc download infile=in1 outfile=out1; run;
%mend cp;
%cp;
Macro 2
-------
%macro cp(src);
endrsubmit;
filename out1 &src;
%put src=;
rsubmit;
filename in1 '/sas458/users/common/report_test1.log';
proc download infile=in1 outfile=out1; run;
%mend cp;
%cp ('c:\test.log');