# tNamedPipeOutput

Writes data into an existing open named-pipe.

tNamedPipeOutput writes data into a named-pipe opened with tNamedPipeOpen.

## tNamedPipeOutput Standard properties

These properties are used to configure tNamedPipeOutput running in the Standard Job framework.

The Standard tNamedPipeOutput component belongs to the File family.

The component in this framework is available in all Talend products.

## Basic settings

| Properties | Description |
| --- | --- |
| Use existing pipe<br>connection | Select this check box to use an existing named-pipe in the Pipe component list, or clear this check box to<br>specify a named-pipe in Pipe name<br>field. |
| Pipe component | Select an existing named-pipe component from the list.<br><br>Information noteNote: This check box will display only when you select Use<br>existing pipe connection. |
| Pipe name | Fill in the field with the name of an existing named-pipe.<br><br>Information noteNote: This check box will display only when you clear Use existing pipe connection. |
| Row separator | String (ex: "\n"on Unix) to distinguish rows in the output file. |
| Field separator | Character, string, or regular expression to separate fields of the output<br>file. |
| CSV options | Select this check box to take into account all parameters specific<br>to CSV files, in particular Escape<br>char and Text<br>enclosure parameters. |
| Schema and Edit Schema | <ul> <li> <p>A schema is a row description, it defines the number of fields to be processed and								passed on to the next component. The schema is either <span>Built-in</span> or stored remotely in the									<span>Repository</span>.</p> <p>Click <span>Edit        schema</span> to make changes to the schema. If the current schema is of the <span>Repository</span> type, three options are available:</p> <ul> <li> <p> <span>View schema</span>: choose this                option to view the schema only.</p> </li> <li> <p> <span>Change to built-in property</span>:                choose this option to change the schema to <span>Built-in</span> for local changes.</p> </li> <li> <p> <span>Update repository connection</span>:                choose this option to change the schema stored in the repository and decide whether                to propagate the changes to all the Jobs upon completion.</p> <p>If you just want to                propagate the changes to the current Job, you can select <span>No</span> upon completion and choose this schema metadata                again in the <span>Repository Content</span>                window.</p> </li> </ul> <p>Click <span>Sync columns</span> to retrieve								the schema from the previous component connected in the Job.</p> </li> <li> <p> <span>Built-in</span>: The schema will be								created and stored locally for this component only. For more information about a component schema in its <span>Basic settings</span> tab, see <a href="https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/basic-settings-tab" target="_blank">Basic settings tab</a>.</p> </li> <li> <p> <span>Repository</span>: The schema already								exists and is stored in the Repository, hence can be reused in								various projects and Job flowcharts. For more information about a component schema in its <span>Basic settings</span> tab, see <a href="https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/basic-settings-tab" target="_blank">Basic settings tab</a>.</p> </li> </ul> |
| Delete pipe if it exists | Select this check box to avoid duplicate named-pipe. |

## Advanced settings

| Properties | Description |
| --- | --- |
| Boolean type | Select a boolean type from the list. |
| tStatCatcher Statistics | Select this check box to gather the Job processing metadata at a Job level<br>as well as at each component level. |

## Global Variables

| Variables | Description |
| --- | --- |
| Global Variables | NB\_LINE: the number of rows read by an input component<br>or transferred to an output component. This is a Flow variable and it returns an<br>integer.<br><br><br>PIPE\_NAME: the name of the named-pipe. This is a Flow<br>variable and it returns a string.<br><br><br>PIPE\_NATIVE\_NAME: the native name of the<br>named-pipe. This is a Flow variable and it returns a string.<br><br><br>PIPE\_OUTPUTSTREAM: the output stream of the named-pipe. This is a Flow<br>variable and it returns an object.<br><br><br>ERROR\_MESSAGE: the error message generated by the<br>component when an error occurs. This is an After variable and it returns a string. This<br>variable functions only if the Die on error checkbox is<br>cleared, if the component has this checkbox.<br><br>A Flow variable functions during the execution of a component<br>while an After variable functions after the execution of the component.<br><br>To fill up a field or expression with a variable, press Ctrl+Space to access the variable list and choose the variable to use from<br>it.<br><br>For more information about variables, see [Using contexts and variables](https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/contexts-and-variables). |

## Usage

| Usage guidance | Description |
| --- | --- |
| **Usage rule** | This component is usually connected to another component in a subJob that<br>reads data from a source. |
| Dynamic settings | Click the [+] button to add a row in<br>the table and fill the Code field with a<br>context variable to choose your pipe connection dynamically from multiple<br>connections planned in your Job.<br><br>The Dynamic settings table is available only when the Use existing pipe connection check box is<br>selected in the Basic settings view.<br>When a dynamic parameter is defined, the Pipe<br>component list box in the Basic<br>settings view becomes unusable.<br><br>For examples on using dynamic parameters, see [Reading data from databases through<br>context-based dynamic connections](https://help.qlik.com/talend/r/en-US/8.0/components/defining-context-groups/reading-data-from-databases-through-context-based-dynamic-connections) and [Reading data from different MySQL databases<br>using dynamically loaded connection parameters](https://help.qlik.com/talend/r/en-US/8.0/components/context/reading-data-from-different-mysql-databases-using-dynamically-loaded-connection-parameters). For more information on<br>Dynamic settings and context variables, see<br>[Dynamic schema](https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/dynamic-schema) and [Creating a context group and define context<br>variables in it](https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/creating-context-group-and-define-context-variables-in-it). |
| Limitation | Due to license incompatibility, one or more JARs required to use this component<br>are not provided. You can install the missing JARs for this particular component by<br>clicking the Install button on the Component tab view. You can also find out and add all missing<br>JARs easily on the Modules tab in the Integration perspective of Talend Studio. For<br>details, see [Installing external modules](https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/installing-external-modules).<br><br>This component is not supported on macOS.<br><br>Prerequisite for Windows users:<br><br>To avoid errors when running Jobs that use NamedPipe components on Windows,<br>complete the following steps:<br><br><ol> <li>Download <span>namedpipe_jni_64bit-6.0.0.dll</span> from <a href="https://talend-update.talend.com/nexus/content/repositories/libraries/org/talend/libraries/namedpipe_jni_64bit/6.0.0/" target="_blank">the Talend update                           repository</a>.</li> <li>Rename the file to <span>namedpipe_jni.dll</span>.</li> <li>Copy the renamed file to the root of the                              <span>C:\Windows\System32</span> directory.</li> </ol> |

**Related concepts**

* [Writing and loading data through a named-pipe](https://help.qlik.com/talend/en-US/components/8.0/namedpipe/tnamedpipeopen-tnamedpipeclose-tlogrow-writing-and-loading-data-through-named-pipe-standard-component-the)