BookmarkSubscribeRSS Feed
Jibyjacob7
Calcite | Level 5

Hi there,

 

we have a SAS program that moves files from windows to unix and create some outputs. however, it started producing error when we try transferring files.

 

ERROR: The task tasksystem produced an error

following is the code and it used to work fine. IT customer support has no clue about this error and they are asking to SFTP account.

I had to replace the folder names with *** due to security issues.

 

%let DataDrop_Report_FileName = *************..xls;

 

%TransferFile(filename=&DataDrop_Report_FileName,

from=\\*********\Business Intelligence\_Management Information\Reports\*****,

to=/sasdev/*******,

record=yes);

 

Please help..

 

 

can you guys help me set up a sftp libname to move files from Windows?

 

I do have the host name, user name and password for the SFTP account

2 REPLIES 2
tomrvincent
Rhodochrosite | Level 12
I use the 'copy files' task (under data) with these params and it works fine between win and linux with wildcards:

Source file specification: &download_from.
Destination path: &download_to.
Overwrite existing files: Yes
Resolve macro references in file paths: Yes
Convert line endings for text files: Yes
Jibyjacob7
Calcite | Level 5

Thanks for responding to my question. should be add this under a datastep? Can you please elaborate

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

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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