Hi i am running this code
* Your source file;
filename _bcin "F:\Report_&todaysDate._kl%scan(%sysfunc(time(),time8.0),1,:).xlsx";
* Your destination file;
filename _bcout "\\hh\Report_&todaysDate._kl%scan(%sysfunc(time(),time8.0),1,:).xlsx";
%binaryFileCopy()
But it doesnt work - it should copy a file into another folder? It says that the macro is not use in proper order
Please post the complete log as text using using "insert code" function.
The macro named %binaryFileCopy has not been defined, so SAS cannot use it. You must first define the macro by that name using any one of a number of methods, which you have not done.
How can I define the macro
@mmea wrote:
How can I define the macro
You run the code that contains the macro definition.
You probably need to get that particular code from the place where you found the use of the macro.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.