BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
sasone
Quartz | Level 8

いつも大変お世話になっております。
以下のようにテキストファイルを保存したいのですが、encoding="utf-8"と書くと
UTF-8(BOM付き)で保存されてしまいますし、encoding="utf-8n"と書いてもERRORが
出て実行できません。
SASでUTF-8N(BOMなし)のファイルを保存することは可能でしょうか?

TeraPadなどのエディタを使えばUTF-8Nに変換できることは判っております。

filename def ".\define.xml" encoding="utf-8n";
proc stream outfile=def resetdelim="br"; begin
<?xml version="1.0" encoding="UTF-8"?> br newline;
<?xml-stylesheet type="text/xsl" href="define2-0-0.xsl"?> br newline;
<MetaDataVersion Description="第Ⅰ相臨床試験"> br newline;
</MetaDataVersion>
;;;;

以上、ご教示のほど何卒よろしくお願いいたします。

1 ACCEPTED SOLUTION

Accepted Solutions
japelin
Rhodochrosite | Level 12

 

filename def ".\define.xml" encoding="utf-8" nobom;

 

 

でできると思います

View solution in original post

2 REPLIES 2
japelin
Rhodochrosite | Level 12

 

filename def ".\define.xml" encoding="utf-8" nobom;

 

 

でできると思います

sasone
Quartz | Level 8

kawakamiさま

 

早速のご回答、誠に有難うございました。
nobomオプションの追加で、define.xmlを問題なくUTF-8(BOMなし)で保存できました。

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Discussion stats
  • 2 replies
  • 2069 views
  • 2 likes
  • 2 in conversation