05-26-2014 10:55 AM
As a part of project,I got the data in CSV file at a certain path.Now,I want to read this file dynamically into SAS DI Studio to process further.How should I design a job which runs periodically reading this file from the respective location and registers the file in SAS DI with full data initially and then incremental in later runs.
I have an idea of External file Wizard,ODBC connectivity and User written code for complex external files.But,what I want here to completely automate the process of reading file from FTP path into SAS DI by scheduling a job.
05-26-2014 01:07 PM
Thought this is more relevant to data management and posted here.It is the same.I agree that the physical path may not be hardcoded but I wanted an approach on how to automate the process of reading the external csv file.
When I searched for it,I could only get the process through external file wizard which has to be done manually as in below links.
May be if I'm successful in bringing the file from the location into DI through automated process,I can use the below process using file reader to get my job done to populate the data into target table.
Please let me know if my requirement is not clear and in case of additional information.
05-26-2014 01:31 PM
You did not touch this one: SAS(R) Data Integration Studio 4.21: User's Guide (Accessing an External File with an FTP Server or an HTTP Server)
SAS is having FTP/SFTP support using their filename. It is limited by not supporting the most (+3 yeras old) options with identification/authentication/encryption. When you need those and needing them by an external program is requiring xcmd access. The filename and physical name could be placed in the autoexec_usermods of the related app-server. Having the definitions defined it is scheduling as usual.
When you need a trigger for processing the file. Think about segregation of the file-transfer (being send to you) and the processing.
Most schedulers can trigger a job on existence of a file on the local system. Seeing something happening on a system you have no access is not possible.