on 08-23-2016 8:25 AM
Hi,
I have a requirement as follows,
PI needs to pick up xml file from source directory and split file for every 10K records and generate a xml files then place it in target directory.
I have gone through some forums but did not help me,can you please provide me some inputs on the same.
Please also let me if there is a way to split xml file based on size and place xml files in the target directory.
Cheers,
Giri
Hi Giri,
Where do you want to write the files after split? to NFS or FTP or SFTP location.
Regards
Anupam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Venkat.
You can try the split approach mentioned by Venkat using the UDF in the below link
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try with multi-mapping and an udf to split records after 10k records it should work.
and also splitting on size is possible but it wont work in your case as this is xml file and will result in invalid xml by splitting based on filesize.
br,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.