BookmarkSubscribeRSS Feed
darrylovia
Quartz | Level 8
All

I receive through out the day raw externals files that go to drive "X" and once the SAS project finishes processing that file, it needs to be moved to drive "Y".
I would normally use the x command to do that. I know that the xcmd option is turned off by default on EG and our IT department will not turn it on due to security reasons.

There must be a way around this.
Any ideas?

-Darryl
2 REPLIES 2
deleted_user
Not applicable
Simple. Many solutions. Here's two.

[pre]
filename x_in "X:\input_file.dat";
filename y_out "Y:\output_file.dat";

data process_stuff;
infile x_in;
file y_out;

input stuff;

/* process stuff */

put stuff;
run;
[/pre]

OR

[pre]
filename x_in "X:\..." ;
libname y_out "Y:\output_directory";

data y_out.processed_stuff;
infile x_in;
input stuff;

/* process stuff */

run;
quit;
[/pre]

Within EG, to do the second one, you simply add an "Assign library" task to the project that is done first, that creates the "y_out" library. Then within the appropriate processing task/node, you specify the output to go to that library.
deleted_user
Not applicable
I am sure there are ways to perform it, but as one of the resident noobs, I wonder if its more resource efficient to perform it as a cron tab script that checks the file for some criteria before it scps it over. Message was edited by: Joshua

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 2 replies
  • 1157 views
  • 0 likes
  • 2 in conversation