BookmarkSubscribeRSS Feed
SullivanC
Calcite | Level 5

When I import external(local) file in SAS server, the code in the import node shows that infile become like #LN000001. The import node works. However when I copy the code from the node with physical path instead. It fails. Howe the amend the code for infile path?

3 REPLIES 3
Kurt_Bremser
Super User

When you use the import wizard in EG, the following happens:

- EG converts the input to a standardized textual format; in case of Excel files, a MS-supplied module is used for that

- the resulting text file is copied to the WORK location on the server with a #LNxxxxx name

- EG writes a fitting data step and executes it on the server; this is what you see in the log

 

This means that the code you see in the log can't be run on its own, ir needs to be run as part of the import task that was created with the wizard. Depending on the type of infile, you will have to write a data/import step on your own or you can copy the code from the import task, but you will have to take care of the "copy to the server" part.

 

So the next questions are

- what type of file are you importing?

- what infrastructure is available for making the file "visible" to the SAS server process? (shared directories, sftp, ...)

SullivanC
Calcite | Level 5

Thanks.

I imported csv from network disk.

I'm not sure whether it is the problem of metadata.  If I have not registered the file to the metadata, I cannot use the path directly?

 

 

Kurt_Bremser
Super User

@SullivanC wrote:

Thanks.

I imported csv from network disk.

I'm not sure whether it is the problem of metadata.  If I have not registered the file to the metadata, I cannot use the path directly?

 

 


Very often network paths for data sharing/storing from desktops are not mounted on application servers. Check that with your network/system admins.

Also please post the log from the failed step, using the {i} button.

sas-innovate-2024.png

Today is the last day to save with the early bird rate! Register today for just $695 - $100 off the standard rate.

 

Plus, pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 3 replies
  • 706 views
  • 1 like
  • 2 in conversation