Originally posted by: SystemAdmin
Paul,
Thanks for your response. Let me give you the specifics of our environment and what we need to accomplish.
We have multiple ftp folders that our customers put encrypted files into. Our customers will usually deliver two files a day but there could be more. We need to either check for files at a regular interval or if possible fire a process off when a file appears in any of the FTP folders. The FTP folders are on an FTP site outside our firewall so they are not available locally. We have a table of all our customers and their FTP and local file paths so ideally we would query this table and use the results to check for files. I know I can setup a map or a series of maps to be run at regular intervals but I am not sure about real-time file processing with the FTP adapter. Is that possible and how is it done?
An important question I have related to the FTP site and files in general is what if the file is open or in the process of being written to? Will the DataStage TX product realize that a file is being written to and leave it alone instead of trying to process it and thus creating an error? This is especially important with FTP since some of our customers upload large files at slow speeds.
We need to move any existing files in the FTP folders to a local customer folder, decrypt the files using PGP, move the original encrypted files to an archive folder, process the unencrypted files to a database and then archive the unencrypted files. Your map and tree that will take an FTP folder as an argument, and transfer all the contents one file at a time to a local target folder sounds like exactly what I am looking for since I want to use a table of customers to drive the retrieval of files.
I am not sure if we have the security option pack has a PGP adapter. We just purchased the extended DataStage TX v7.5 and I need to check to see if it was included and available with this version. Even if we have this module I would still be extremely interested in any examples using the shell script/batch adapter. We do have the command line version of PGP since we were anticipating the need to use the shell adapter but I just have been unable to find any good examples or details on using the adapter. The information will also be extremely useful for any other custom type of file processing we may need to do. Examples of using the zip adapter would also be useful. I found some information on this but I am confused by the relation of the type tree and the map when it comes to file operations. Trees make sense when loading a file contents to a database but I am confused in how they relate or should be built for file operations like decrypting or zipping.
I have used the database interface designer but I have been unable to get it to see stored procedures or views. Any ideas on what would cause this? I have been able to extract data from a database but I get only one record even when the result set includes many records. I believe this has something to do with setting the map to do multiple values.
One key concept I really need to grasp is parameters and using them to control map operation. I can see from forum the posts that this is a powerful concept but the posts and the product documentation do not describe how to do this well enough for me, at a beginner level.
We have one training seat with our DataStage TX version but someone else will be going. We are trying to get the training documentation ahead of the scheduled class date. I usually have no problem taking good documentation or samples and learning a tool or programming language. In fact I prefer this method of learning. The DataStage TX product is so different from any other tools I have used and the documentation that comes with the product is not very detailed, especially when it comes to processing files (not file content) so I am struggling a bit. I am sure if I can get some whole examples (type trees and map files) or some good narrative on how to do these tasks I will eventually make sense of it and even start helping others.
I appreciate your or anyone elses help getting me up to speed using this product.
#IBM-Websphere-Transformation-Extender#DataExchange#IBMSterlingTransformationExtender