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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 7 replies
  • 2830 views
  • 0 likes
  • 4 in conversation