全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1592 0
2015-07-21
Reading a TAB delimited file



Read an external file into a SAS data set when the variables in the external file are separated with a TAB character. Note:   On ASCII systems (PC, UNIX, MAC, VMS) the hex representation of a TAB character is '09'x. On EBCDIC systems (VM, MVS, VSE) the hex representation of a TAB is '05'x.

data _null_;

  file 'c:\temp\tabdlm.txt';

  put "Samuel B. Thompson" '09'x "04/28/1995" '09'x "Raleigh";

  put "Suzy B. Thomspon" '09'x "5/1/1993" '09'x "Wake Forest";

run;



data info;

  infile 'c:\temp\tabdlm.txt' DSD dlm='09'x truncover;

  input name :$30. DOB :mmddyy8. city :$20.;

run;



proc print;

  format dob mmddyy8.; run;
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群