# Recuperating valid and invalid rows in a column analysis

Available in...

* Big Data Platform
* Cloud API Services Platform
* Cloud Big Data Platform
* Cloud Data Fabric
* Cloud Data Management Platform
* Data Fabric
* Data Management Platform
* Data Services Platform
* Qlik Talend Cloud Enterprise Edition
* Qlik Talend Cloud Premium Edition
* Real-Time Big Data Platform

You can generate a ready-to-use Job on the results of a column analysis. This Job recuperates the valid/invalid rows or both types of rows and writes them in output files or databases.

## Before you begin

A column analysis that uses patterns has been created and executed.

## Procedure

1. Follow the steps outlined in [Defining the columns to be analyzed](https://help.qlik.com/talend/en-US/studio-user-guide/8.0/defining-columns-to-be-analyzed) and [Adding a regular expression or an SQL pattern to a column analysis](https://help.qlik.com/talend/en-US/studio-user-guide/8.0-R2025-04/using-regular-expressions-and-sql-patterns-in-column-analysis "You can add to any column analysis one or more regular expressions or SQL patterns against which you can match the content of the column to be analyzed.") to create a column analysis that uses a pattern.
2. Execute the column analysis.
3. In the Analysis Results view, click Pattern Matching under the name of the analyzed column.

   The generated graphic for the pattern matching is displayed accompanied with a table that details the matching results.

   The generated graphic for the pattern matching is displayed accompanied with a table that details the matching results. ![Contextual menu of a label from the Pattern Matching section.](https://help.qlik.com/talend/en-US/studio-user-guide/Resources/images/view_data.png)
4. Right-click the pattern line in the Pattern Matching table and select Generate Jobs.

   The Job Selector dialog box is displayed.

   When you analyze the column using a pattern that is defined for a specific database, you will be able to generate ELT Jobs.

   When you analyze the column using a pattern that is defined for the Java or the Default language, you will be able to generate an ETL Job.
5. In the dialog box, select an option:
   | Option | Results |
   | --- | --- |
   | generate an ELT job to get only valid rows | Generate a Job that uses the Extract Load Transform process to write the<br>valid rows of the analyzed column in an output file.<br><br>This option is not<br>available for the Amazon Redshift database. |
   | generate an ELT job to get only invalid rows | Generate a Job that uses the Extract Load Transform process to write the<br>invalid rows of the analyzed column in an output file.<br><br>This option is not<br>available for the Amazon Redshift database. |
   | generate an ETL Job to handle rows | Generate a Job that uses the Extract Transform Load process to write the<br>valid/invalid rows of the analyzed column in output files. |

   In this example we select the generate an ETL job to handle rows option to generate a Job that will output in two separate output files the valid and invalid email rows.
6. In the dialog box, click Finish to proceed to the next step.

   The Integration perspective opens on the generated Job.

   ![Job using the tMysqlInput, tPatternCheck, and two tFileOutputDelimited components.](https://help.qlik.com/talend/en-US/studio-user-guide/Resources/images/Generate_Job2.png)
7. Optional: Use different output components to recuperate the valid/invalid rows in different type of files or in databases.
8. Save your Job and press F6 to execute it.

   The valid and invalid email rows of the analyzed column are written in the defined output files.

   The results in the retrieved files may depend on the ETL or ELT mode. In the ETL mode, the data is retrieved against Java regular expressions while in the ELT mode, the data is retrieved against the appropriate database regular expressions. The regular expression engines work differently in Java and in the DBMS, hence the result may differ, even more if you defined different regular expressions in the pattern editor.