BookmarkSubscribeRSS Feed
ernie86
Calcite | Level 5

I used the import function (File->Import Data)  in EG to import my data. It will generate the importing code. In the the code, it shows the infile path is my C drive even the file is not imported from C drive. Is there a way to edit the code? cz when i tried to edit the code it pops a message saying the code is read only. 

 

INFILE 'C:\Users\pe07645\AppData\Local\Temp\1\SEG11628\Program Survey Extract-69406f261ab647e6a290cede2a9a0447.txt'
LRECL=20126
ENCODING="WLATIN1"
TERMSTR=CRLF
DLM='7F'x
MISSOVER
DSD ;

1 REPLY 1
Kurt_Bremser
Super User

The import wizard in EG works in two steps:

  1. the external file is converted to a standardized internal text format and sent to the WORK location of the SAS process (or to temporary space on your desktop if the SAS process runs there and not on a remote server)
  2. code is created that reads this temporary file and executed by the SAS process

Code that is created automatically by EG for any task node cannot be edited in place; you need to copy/paste it to a new program node and edit it there. Note that in most cases you won't be able to apply the automatically created code on your original file without changes, as step 1 will be missing from the process.

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
  • 1609 views
  • 0 likes
  • 2 in conversation