BookmarkSubscribeRSS Feed
DaveShea
Lapis Lazuli | Level 10
Hi,

I am currently using EG 3.0 and want to build a bit of code or combination of task that let me take one or more text files stored on the UNIX server that hosts SASMain and transfer them to the local drive of my PC.

I do not have SAS installed on my local PC.

I am not allowed to initate an FTP session (either via X commands or the FTP Filename access) at this site.

The text files can be manually added to the EG Project and manually Save As'd from their to C:\Temp but there are many of these files and they change in number and name each day the job is run due to the nature of the data being processed.

How can I automate the process so that the text files can be stored on the local PC directory once the Project has finished ?

Cheers.

Down-under Dave.
Wellington
New Zealand
1 REPLY 1
ChrisHemedinger
Community Manager
I'm afraid that there isn't a built-in capability to help you here, especially since you cannot use the server-based FTP option or X command / SYSTASK.

It is possible to create a custom task to do the work. It would have to be fairly sophisticated, leveraging the SAS workspace APIs directly (particularly the FileService) to "download" the text files from the server file system to the local PC file system.

Chris
SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!

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
  • 1 reply
  • 846 views
  • 0 likes
  • 2 in conversation