SAS Data Integration Studio, DataFlux Data Management Studio, SAS/ACCESS, SAS Data Loader for Hadoop and others

SAS Unix with UTF-8 encoding

Reply
PROC Star
Posts: 325

SAS Unix with UTF-8 encoding

 

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

Super User
Posts: 11,343

Re: SAS Unix with UTF-8 encoding

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

PROC Star
Posts: 325

Re: SAS Unix with UTF-8 encoding

I did both and got same results

Super User
Posts: 19,772

Re: SAS Unix with UTF-8 encoding


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?

PROC Star
Posts: 325

Re: SAS Unix with UTF-8 encoding

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

instead of utf-8

Super User
Posts: 10,023

Re: SAS Unix with UTF-8 encoding

Can you transport that file via command line . Try to add BINARY command or not add BINARY .
PROC Star
Posts: 325

Re: SAS Unix with UTF-8 encoding

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

Super User
Posts: 19,772

Re: SAS Unix with UTF-8 encoding

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

 

Ask a Question
Discussion stats
  • 7 replies
  • 458 views
  • 0 likes
  • 4 in conversation