Hi
When I create test1.txt file in SAS Unix with UTF-8 encoding and when I tried to FTP the same file using FILENAME encoding=’UTF-8’ , its not FTP’ing the file in UTF-8 format. Please help.
Thanks
Kiran
Depending on options FTP may translate things. Did you do a text transfer or a binary transfer?
I did both and got same results
@kiranv_ wrote:
Hi
When I create test1.txt file in SAS Unix with UTF-8 encoding and when I tried to FTP the same file using FILENAME encoding=’UTF-8’ , its not FTP’ing the file in UTF-8 format. Please help.
Thanks
Kiran
So what is happening instead?
What does your code look like and your log?
file is transferring succefully but the the file is in ascii format
instead of utf-8
Thanks for reply. Did not try by command line. But the idea is to make an automated process and run the job everydat
If you have the authorization, SAS can execute command line statements.
X command
%sysexec
http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#a000171045.htm
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.
Find more tutorials on the SAS Users YouTube channel.