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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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