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.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.
Early bird rate extended! Save $200 when you sign up by March 31.
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.