Skip to Content

File splitting based on 3 parameterrs

Hello experts,

my requirement: i have to split a file based on country, then number of records, and finally based on whether records or historical or inventory.

I have done till splitting using country and number of records, ie, if the user specifies number of records, 50000, it will generate files containing 50k records.
Now the new requirement states that on top country and number of records, i need to split the file bases on historical or inventory, the data will have HIS or INV prefixed for all the records.

The user should have the ability ti split only on HIS or INV, he can specify both, HIS and INV. The logic should split accordingly.

Please assist me in this,

thanks and regards


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Apr 02, 2015 at 07:22 AM

    Hi Abhishek,

    A case transform will work in your case where in you specify a match pattern for historical(HIS%%%) and Inventory(INV%%).

    You can also use a batch command script to rename the excel/txt files with HIS_%%% or INV_%% once the file has been loaded with data.


    Arun Sasi

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.