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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 1652 views
  • 0 likes
  • 4 in conversation