BookmarkSubscribeRSS Feed
apoo12345
Calcite | Level 5
Need to move the binary file output for scoring from HPForest from one location to another. I am able to move codes using the statement but the binary file is somehow getting corrupted.
4 REPLIES 4
RW9
Diamond | Level 26 RW9
Diamond | Level 26

You haven't really given any information in this post.  At a guess I would say that if your transfering a binary file you would likely need to use (s)FTP, and set the option to binary.  However as I have no information its hard to say.  Corruption could mean any number of things, moving OS's for instance, bit version of the system, even the app used to open it.

apoo12345
Calcite | Level 5
Apologies for that. I am writing a binary file using proc hpforest to generate the model scoring code and then using SAS 9.4, i have to move it to a different path. I was trying to move it using file and infile statement but it is corrupting the binary file as I am not able to use the file for scoring using proc hp4score. Let me know incase you will need any further information.
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Ah, then you need to put recfm=n on the infile, etc:

data _null_;  
  infile "..." recfm=n;
  file "..." recfm=n;
  input; 
  put _infile_;
run;

Although, you could just copy the file using OS commands if you have X command enabled.  

apoo12345
Calcite | Level 5
The x command is not enabled. I tried the recfm=n option, it says the _infile_ input/put statement is inconsistent with binary mode I/O. The execution of the data step is being terminated.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1791 views
  • 0 likes
  • 2 in conversation