BookmarkSubscribeRSS Feed
mmea
Quartz | Level 8

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

5 REPLIES 5
andreas_lds
Jade | Level 19

Please post the complete log as text using using "insert code" function.

 

mmea
Quartz | Level 8
 
PaigeMiller
Diamond | Level 26

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.

--
Paige Miller
mmea
Quartz | Level 8

How can I define the macro

Kurt_Bremser
Super User

@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.

sas-innovate-white.png

Register Today!

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.

Register now!

Mastering the WHERE Clause in PROC SQL

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.

Discussion stats
  • 5 replies
  • 964 views
  • 0 likes
  • 4 in conversation