Import .csv file from Unix SAS server

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

sfawver
Posts: 29
Joined: Wed Aug 25, 2010 9:15 am

Import .csv file from Unix SAS server

Postby sfawver » Fri Apr 22, 2011 11:07 am

Does someone have the syntax for read that will import an .xls file from a Unix SAS server?

How do I change the path to read from a SAS server?

Thanks.

desktop example
allmsa.read(t=xls, a1, s=All436areas) "C:\Documents and Settings\Desktop\All436areas.xls"

SAS path
\\Sac-psas-01\Scott

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Import .csv file from Unix SAS server

Postby EViews Gareth » Fri Apr 22, 2011 12:31 pm

What is the full Windows (UNC) path to the file?

sfawver
Posts: 29
Joined: Wed Aug 25, 2010 9:15 am

Re: Import .csv file from Unix SAS server

Postby sfawver » Fri Apr 22, 2011 1:36 pm

My co-worker figured it out. You can setup a network drive alias, i.e. W and it works. You can't use the whole path.

works
allmsa.read(t=txt) "W:\riskindex\RI_V3.1\code\main\All384areas.csv"

doesn't work
allmsa.read(t=txt) "\\Sac-psas-01\riskindex\RI_V3.1\code\main\All384areas.csv"

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Import .csv file from Unix SAS server

Postby EViews Gareth » Fri Apr 22, 2011 1:39 pm

That might be true for the read command. If you're using EViews 7, you're probably better off using wfopen or import instead.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests