BookmarkSubscribeRSS Feed
kiranv_
Rhodochrosite | Level 12

 

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

7 REPLIES 7
ballardw
Super User

Depending on options FTP may translate things. Did you do a text transfer or a binary transfer?

kiranv_
Rhodochrosite | Level 12

I did both and got same results

Reeza
Super User

@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?

kiranv_
Rhodochrosite | Level 12

file is transferring succefully but the the file is in ascii format

instead of utf-8

Ksharp
Super User
Can you transport that file via command line . Try to add BINARY command or not add BINARY .
kiranv_
Rhodochrosite | Level 12

Thanks for reply. Did not try by command line. But the idea is to make an automated process and run the job everydat

Reeza
Super User

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

 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to connect to databases in SAS Viya

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.

Discussion stats
  • 7 replies
  • 1689 views
  • 0 likes
  • 4 in conversation