将Excel转换为SAS数据集
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了将Excel转换为SAS数据集相关的知识,希望对你有一定的参考价值。
PROC IMPORT DATAFILE="C:folderprojectfile.xls" OUT=mydata DBMS=excel2002 REPLACE; SHEET="MySheetName"; GETNAMES=yes; * variable names are in row 1 ; RANGE="MySheetName$A1:P2582"; * omit if you want to read the entire worksheet; MIXED=YES; * V. 9: converts numerical values mixed in with character data into a variable with all character values; SCANTEXT=yes; * V. 9 only; USEDATE=no; * V. 9 only - read with date format only (note date-time); SCANTIME=no; * V. 9 only; DBSASLABEL= none; * V. 9 only; RUN;
以上是关于将Excel转换为SAS数据集的主要内容,如果未能解决你的问题,请参考以下文章