Desktop productivity for business analysts and programmers

PROC IMPORT SAS EG 7.1

Reply
Contributor
Posts: 27

PROC IMPORT SAS EG 7.1

Hi Team

We have recently migrated from SAS EG 4.1 to SAS EG 7.1.

Have an issue with PROC IMPORT, the below code is able to import data onto xls sheet.

We are using 32-bit MSOFFICE 2010.

PROC IMPORT OUT= WORK.PathParameter

            DATAFILE= "C:\TEST\XXX03.xls"

            DBMS=xls REPLACE;

     GETNAMES=YES;

     MIXED=YES;

     USEDATE=YES;

     SCANTIME=YES;

     SHEET="Path Parameter";

RUN;

However, the code generates below error :

26              GETNAMES=YES;

27              MIXED=YES;

28              USEDATE=YES;

                _______

                180

29              SCANTIME=YES;

                ________

                180

ERROR 180-322: Statement is not valid or it is used out of proper order.

30              SHEET="Path Parameter";

31         RUN;

I tried browsing for different for a resolution on blogs/communities.But could not get a resolution for this.

Could you please help me on this ?

Thanks

Rajesh

Community Manager
Posts: 2,697

Re: PROC IMPORT SAS EG 7.1

I'm not sure that SCANTIME is supported with DBMS=XLS.  It might be strictly for DMBS=EXCEL or EXCELCS.  If using 64-bit SAS with 32-bit Office, try DBMS=EXCELCS -- this will use the SAS PC Files Server component, which should autostart on your Windows 64-bit SAS.  If your SAS is not on Windows (for example, on Linux now), then more setup is required.

If you can get your data into XLSX format, then DBMS=XLSX might also work without additional setup.

Chris

Ask a Question
Discussion stats
  • 1 reply
  • 1647 views
  • 0 likes
  • 2 in conversation