Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wrong Macro - Apparent Symbolic Error

Status
Not open for further replies.

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');
 
Module79,
How about changing a
%put src=;

line to
%put &src=;

hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top