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

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

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