CSV split Archives - My Blog My WordPress Blog Fri, 18 Aug 2023 21:48:25 +0000 en-US hourly 1 CSV Splitting In Informatica cloud platform (IICS) https://new.infofiscus.in/java-transformation/easily-split-your-csv-in-informatica-cloud/ Mon, 18 Feb 2019 09:08:03 +0000 http://www.infometryinc.com/?p=854 Problem Description

Customers/Users face issues in splitting a CSV file into multiple CSV based upon some specific column and its specific value of that column.

Challenges to User/Developer

In IICS, above mentioned problem can be solved through Java Transformation.
The CSV file needs to be split into multiple CSV files.
Move the original CSV file to other location.

The post CSV Splitting In Informatica cloud platform (IICS) appeared first on My Blog.

]]>
Problem Description of CSV Splitting In Informatica cloud

Easily split your CSV In Informatica cloud: Customers/Users face issues in splitting a CSV file into multiple CSV based upon some specific column and its specific value of that column.

Challenges to User/Developer

Easily split your CSV files in IICS

  1. In IICS, the above-mentioned problem can be solved through Java Transformation.
  2. The CSV file needs to be split into multiple CSV files.
  3. Move the original CSV file to another location.

Solution

CSV Splitting In Informatica Intelligent Cloud Services (IICS)

Approach

Easily split your CSV Using Java Transformation, we can achieve the solution for the above-mentioned challenges.

Java transformation is used to add custom integration logic into mappings using a built-in developer-friendly editor or by plugging in custom JAR files.

Technical Solution –

  • Develop Java code that performs CSV split based upon some specific column and specific value of that column using IDE(ex. Eclipse)
  • Create an Executable jar file for the above-developed java code.
  • Place the above-created jar file at any directory at the local machine (where the security agent is installed).
  • Copy the above directory path including the jar name with extension.
  • Create the CLASSPATH Environment variable if not available.
  • Paste the above-copied directory to the CLASSPATH Environmental variable.
Easily split your CSV
  • Restart the secure agent.
  • Create the mapping using source and target with java transformation in between them.
Easily split your CSV
  • Edit java transformation to make a call to the specific method of the class available in a jar which is responsible for splitting the CSV file into multiple CSV files based upon some specific column and column value.
Easily split your CSV

splitting the CSV file into multiple CSV file

  • Compile the above java code, validate the mapping and run.

Advantage –

The CSV file will get split into multiple CSV files based upon some specific column and specific value of that column.

Issues –

None

Conclusion –

So, the CSV file will be split based on the column provided by the user.

 

The post CSV Splitting In Informatica cloud platform (IICS) appeared first on My Blog.

]]>