BookmarkSubscribeRSS Feed
gnyanendra
Calcite | Level 5

Hi,

I have my output of analysis in SAS folders, however I want to export them to an external location (through ftp client) to be consumed by application. Can this be done in EG itself or do I need to do that externally. If yes, how can it be done?

Gnyanendra

7 REPLIES 7
gnyanendra
Calcite | Level 5

Hi Howles, The link that you provided directs one to Base SAS reference directory. The code there is definitely helpful, but I was thinking of getting it done from SAS EG, as I dont have Base SAS. So my question is whether it can be done from UI in SAS EG or one will have to edit the code to get it done.

thanks

Tom
Super User Tom
Super User

Obviously you do have Base SAS or else your Enterprise Guide would have no where to send the SAS code that it generates.

Are you asking if there is GUI interface in EG that you can use rather than just building a SAS program step into your EG project file?

gnyanendra
Calcite | Level 5

Tom, definitely I did not understand earlier that there has to be Base SAS to run the code. Also, indeed I was asking the same that whether it can be done from UI.

Doc_Duke
Rhodochrosite | Level 12

In short, no.  The UI does not have a direct method to use FTP.  You can follow Tom's suggestion or you can, if you EG admin permits, launch an "X" command to run FTP from the SAS server.  The discussions in this thread might be helpful.

http://communities.sas.com/thread/32788?tstart=0

Another approach, much less direct, is to deposit the output into a directory that has it's contents periodically FTP'd by a separate process.  Again, it is not using the UI, but it gets the job done.

Doc Muhlbaier

Duke

gnyanendra
Calcite | Level 5

Hi Doc,

I tried writing to FTP in code itself, but faced these errors.

filename resultSet

ftp 'C:\Users\sas\resultSet.csv'

CD='/SASUpload' USER='guest'

PASS="guest" HOST='ftp.domain.com' rcmd=binary;

run;

proc cport library= abc_xyz file=resultSet;

run;

ERROR: The connection was reset by a peer..

ERROR: Invalid logical name.

ERROR: Error in the FILENAME statement.

ERROR: "RESULTSET" is not a valid name.

Doc_Duke
Rhodochrosite | Level 12

"resultset" is too long.  shorten to 8 or fewer characters.  If still getting errors, call tech support.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

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
  • 7 replies
  • 1469 views
  • 0 likes
  • 4 in conversation