Hello,
with 'proc import datafile' after reading .xls file i want to save or archiv it to another folder.
How it is possible in Enterprsie guide?
Thanks in advance
Dani
one way is with file --> export.
you can create a SAS (or excel) dataset in another directory as a one-off or as a repeatable task.
I did it with %sysExec copy command and working fine.
Now the problem is i want to move Only subfolder / subdirectorires to another target folder. I tried it with move command (%SysExec move) but it is working for complete folder and not for only subfolder.
Here is file structure.
Source Path: c:\folder/subfolder
Target Path: c:tgtfolder
%sysExec move "c:\folder" "c:\tgtfolder"
This command moving complete folder in tgtfolder and looks like c:\tgtfolder\folder\subfolder. What i want to achieve is c:\tgtfolder\subfolder
I tried different possiblities but still not found any solution, any idea?
I've never used %sysexec; sorry.
Maybe the MOVE command has some switches to move subfolders?
try something like :%sysExec move c:\folder\xyz.xlsx c:\tgtfolder
or you can also try
X 'move c:\folder\xyz.xlsx c:\tgtfolder';
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.