on 09-18-2007 1:18 PM
Hi experts,
I have a requirement of creating an emtpy file along with the result file onto the same target directory. I believe since the protocol is FTP , I can not use the option of Run operating system command after message processing and use a command like "touch" to generate an empty file.
So in case I make use of another receiver channel, how can I create an empty file with that?
Regards,
Amol
Amol,
If u are on SP 15 and above, I think you can use multimapping for the scneario.
One message for the actual file and the other for empty file.
I hope u can use content conversion to create empty file.
say u have a ouput MT like
RecordSet
-
Data
If you populate empty string (Constant with no value) to Data and do content conversion with params.
RecordSet.fieldseparator - '0'
RecordSet.endSeparator - '0'
I hope that you will get an empty file.
Try this option.
Regards,
Sudharshan N A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
may be you can create another target structure (1 field) to which you are passing only "SPACESS" then put this empty strucutre in the FTP Directory using the other Communication channel.
this should work
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amol,
call a batch program in your XI server by using the run operating system command after processing which will do
1) creation of empty file
2)FTP that file to the location
For FTP upload script, this might be help ful http://www.ericphelps.com/scripting/samples/FtpFileUpload/index.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Why don't you use a File Comm. Channel, and write a batch program to run after the message processing? Write the message to a temporary directory. The batch program can then handle the FTP logon, the transfer of the data file and creation of the empty file for you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
9 | |
9 | |
8 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.