Java Archives - My Blog My WordPress Blog Fri, 18 Aug 2023 21:48:25 +0000 en-US hourly 1 Randomization In Informatica Cloud (IDMC) https://new.infofiscus.in/idmc-connector/randomization-in-informatica-cloud/ Mon, 18 Feb 2019 09:14:26 +0000 http://www.infometryinc.com/?p=864 Problem Description
Customers/Users face issues in picking multiple CSV files with having the same base name from a directory and generates multiple Excel file for each CSV file. The Excel files need to be generated based upon either percentage of available filtered records or exact number of records and maximum records allowed in a single excel file. The filtration of records is based upon the specific column and its specific value.

The post Randomization In Informatica Cloud (IDMC) appeared first on My Blog.

]]>
Problem Description

Randomization In Informatica Cloud: Customers/Users face issues in picking multiple CSV files with having the same base name from a directory and generates multiple Excel files for each CSV file. The Excel files need to be generated based upon either percentage of available filtered records or an exact number of records and maximum records allowed in a single excel file. The filtration of records is based upon the specific column and its specific value.

Challenges to User/Developer

Randomization In Informatica Cloud :

  • In IDMC (Formerly known as IICS), the above-mentioned problem can be solved through Java Transformation.
  • The Excel files need to be generated based upon either percentage of available filtered records or an exact number of records and maximum records allowed in a single excel file. The filtration of records is based upon the specific column and its specific value.
  • Move the original CSV file to another location.

 

Solution

Randomization In Informatica Cloud (IDMC)

Approach –

Randomization In Informatica Cloud: 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 to Excel split upon either percentage of available filtered records or an exact number of records and maximum records allowed in a single excel file. The filtration of records is based upon the specific column and its specific value 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.
Randomization In Informatica Cloud
  • Restart the secure agent.
  • Create the mapping using source and target with java transformation in between them.
Randomization In Informatica Cloud
  • 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 to Excel split upon either percentage of available filtered records or an exact number of records and maximum records allowed in a single excel file. The filtration of records is based upon the specific column and its specific value.
Randomization In Informatica Cloud
  • Compile the above java code, validate the mapping and run.

 

Advantage –

The CSV file will get split into Excel based upon either percentage of available filtered records or an exact number of records and maximum records allowed in a single excel file. The filtration of records is based upon the specific column and its specific value

Issues –

None

Conclusion

The CSV file will split into excel based on certain conditions.

 

The post Randomization In Informatica Cloud (IDMC) appeared first on My Blog.

]]>
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.

]]>
Excel to CSV using SFTP In IICS https://new.infofiscus.in/blog/excel-to-csv-using-sftp/ Mon, 18 Feb 2019 08:58:43 +0000 http://www.infometryinc.com/?p=851 Problem Description

Customers/Users face issues with loading Excel files from SFTP remote server to local machine and convert the excel file to CSV file in mapping on IICS.

Challenges to User/Developer

In IICS, above-mentioned problem can be solved through Java Transformation.
The Excel file needs to be transferred to the local machine (where the secure agent is installed).
The locally available Excel file needs to be converted to CSV file.
Move the original Excel file which we got from SFTP remote server to other location.

The post Excel to CSV using SFTP In IICS appeared first on My Blog.

]]>
Problem Description

Convert Excel to CSV  Customers/Users face issues with loading Excel files from SFTP remote server to local machine and convert the excel file to CSV file in mapping on IICS.

Challenges to User/Developer

  • In IICS, the above-mentioned problem can be solved through Java Transformation.
  • The Excel file needs to be transferred to the local machine (where the security agent is installed).
  • The locally available Excel file needs to be converted to a CSV file.
  • Move the original Excel file which we got from SFTP remote server to another location.

Solution: 

Approach –

Excel to CSV using SFTP In Informatica Intelligent Cloud Services (IICS)

Convert 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 Excel files transfer from SFTP to Local machine and converts Excel file to CSV file 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.
Convert Excel to CSV
  • Restart the secure agent.
  • Create the mapping using source and target with java transformation in between them.
Convert Excel to CSV
  • Edit java transformation to make a call to the specific method of the class available in a jar which is responsible for transferring the file through SFTP to Local machine and converts Excel file to CSV file.
Convert Excel to CSV
  • Compile the above java code, validate the mapping and run.

 

Advantage –

The file will get a transfer from the SFTP directory to the Local machine directory and convert from an Excel file to a CSV file.

Issues –

None

Conclusion

The excel file will now be transferred to the local machine and will be converted accordingly.

 

The post Excel to CSV using SFTP In IICS appeared first on My Blog.

]]>