generate credit card using trowgenerater

Four Stars

generate credit card using trowgenerater

Hi ,
I want to generate customer sample data using tRowGenerater.
How to generate credit card number with 16 digits using tRowGenerater ?
Regards,
R.Bharath
Five Stars

Re: generate credit card using trowgenerater

The approach that I usually take it to create a Talend 'Routine' for data generation and add the methods that you need.
Use tRowGenerator to generate the number of rows that you need, and map your fields using tMap.
Here's a method (and helper methods) for phone numbers. You could do something similar for Credit Card numbers.
static java.util.Random random = new java.util.Random();
public static int getRandom(int max) { return random.nextInt(max + 1); }
public static int getRandom(int min, int max) {
return random.nextInt(max) + min;
}
public static String makePhoneNumber() {
return String.format("0%d %d", getRandom(1231, 1881), getRandom(123456, 654321));
}
Alternatively, you may find that there is an open source Java package that generates this type of data.
Employee

Re: generate credit card using trowgenerater

Hi,
This can be done using tDataMasking which was released in Talend 6.0, as part of Enterprise Data Quality components.
Regards,
Cyril.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Download