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 2025: Call for Content

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!

Submit your idea!

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
  • 685 views
  • 0 likes
  • 4 in conversation