SAS 不同平台文件读写

来源:互联网 发布:nokia5320软件下载 编辑:程序博客网 时间:2024/06/05 11:15

可以在infile与file命令中使用termstr参数,指定换行符。

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


TERMSTR=


controls the end of line or record delimiters in PC- and UNIX-formatted files. This option enables the sharing of UNIX- and PC-formatted files between the two hosts. The following are values for the TERMSTR= option:


CR
Carriage return. Use TERMSTR=CR to read files formatted by Apple Macintosh.


CRLF
Carriage Return Line Feed. Use TERMSTR=CRLF to read files formatted by a PC.


LF
LineFeed. This parameter is used to read files formatted by UNIX. LF is the default.


Use TERMSTR=CRLF to read a file that was created on a PC. If the PC-formatted file was created using TERMSTR=LF, then the TERMSTR= option is unnecessary.

0 0
原创粉丝点击