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

-----------------------------------------------

※この質問はサンプルです。

-----------------------------------------------

 

タブ区切りの外部ファイルを読み込むにはどうすればいいですか。

1 ACCEPTED SOLUTION

Accepted Solutions
fujiyama
SAS Employee

INFILEステートメントの DLM (DeLiMiter) オプションに「 '09'x 」を指定します。
 「 'XX'x 」は16進コードの「 'XX'」を表し、「 '09'x 」はタブのコードです。

 

プログラム例:
DATA sample;
   INFILE 'C:\temp\class.dat' dlm='09'x;
   INPUT name $ sex $ ;
RUN;

View solution in original post

1 REPLY 1
fujiyama
SAS Employee

INFILEステートメントの DLM (DeLiMiter) オプションに「 '09'x 」を指定します。
 「 'XX'x 」は16進コードの「 'XX'」を表し、「 '09'x 」はタブのコードです。

 

プログラム例:
DATA sample;
   INFILE 'C:\temp\class.dat' dlm='09'x;
   INPUT name $ sex $ ;
RUN;

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!

Discussion stats
  • 1 reply
  • 1723 views
  • 0 likes
  • 2 in conversation