on 10-07-2011 9:33 AM
Hi Experts,
We have some queries regarding the receiver FCC configurations .
1. We use the append option to append the data into a single file. Is it possible to add time stamp or message id to the file name?
2. The final appended file content is as follows
HDR;PRD;3.1;;;
Customer1;1234;PRD;;;;
HDR;PRD;3.1;;;
Customer2;4587;PRD;;;;
HDR;PRD;3.1;;;
Customer3;75698;PRD;;;;
HDR;PRD;3.1;;;
Customer4;14523;PRD;;;;
Since the header data is common for the entire customers, we are planning to ignore the header data from the second file onwards. i.e the output should be as below:
HDR;PRD;3.1;;;
Customer1;1234;PRD;;;;
Customer2;4587;PRD;;;;
Customer3;75698;PRD;;;;
Customer4;14523;PRD;;;;
Kindly let us know your suggestion on this.
Thanks
Suganya.
Hi Sunganya ,
By using Varible substitution you can get the message id ( var1 --> message : message_id )
File Name parameter must be %var1%.extension.
If you want the timestamp then you have to create Simple UDF in that using Calendar class get the current date and time
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Append mode will work if the file name is same - "add time stamp or message id" may not work as this will be unique for each message.
You may have to go for - something like Day or batch job or someother content from the message whihc will make the file name unique to make the append work.
On the second issue... I not sure if you have an option to make the header optional based on the 1st message and second message. You have to search for some other option.
cheers,
Sunil.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.