BookmarkSubscribeRSS Feed
davim207
Calcite | Level 5
We are currently running SAS 9.1 on a UNIX server using EG 4.1. I want to access a file not on the server, the excel file is located on a shared drive which server SAS can not seem to access directly. We do not have PC SAS, otherwise I'd have this thing nailed; however, SAS EG can access these types of files through the point and click GUI interface. I pulled the code used behind the procedure but the portion where the raw data file is accessed and converted is not made visible. You just get the following comment in the code itself:



/ Enterprise Guide creates this temporary asterisk delimited text file from the original data source /



I thank anyone for taking the time to look at this, I am stumped at this point...
1 REPLY 1
ChrisHemedinger
Community Manager
David,

If the goal is to have a SAS program that can import the Excel file directly, you will need SAS/ACCESS to PC Files (there is a version for Unix that uses a mechanism called the PC File Server) and run PROC IMPORT.

EG uses the data access features built into Windows to read the Excel file and copy its contents to the SAS session. There is no SAS code that captures that work.

In EG 4.2, you can elect to have the Import Data task include the Excel records in the generated program as DATALINES (inline records). That creates a complete SAS program to create a data set, but it does not go back to the original Excel file when you re-run the program. Without SAS/ACCESS to PC Files, it's EG that does the work of extracting the contents from Excel.

Chris
It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 598 views
  • 0 likes
  • 2 in conversation