01-20-2012 01:09 AM
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?
01-24-2012 12:28 AM
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.
01-24-2012 05:33 AM
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?
01-24-2012 07:53 AM
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.
01-24-2012 08:47 AM
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.
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.
01-24-2012 09:27 AM
I tried writing to FTP in code itself, but faced these errors.
PASS="guest" HOST='ftp.domain.com' rcmd=binary;
proc cport library= abc_xyz file=resultSet;
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.