# Input tab

![Input tab, Copybook Input step](https://3411831820-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAYwCj9fPr1B2pjC11IOQ%2Fuploads%2Fgit-blob-6387f9dd068aeed6d10b70375a8ec89c991a94fe%2FPDI_CopybookInput_InputTab.png?alt=media)

The **Input** tab has the following sections.

## **Source**

These options specify the location of the binary data

.

| Option                                    | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Predefined file**                       | Select this option to specify a path to a binary data file that contains the data you want to read into the PDI stream. You can type any VFS path directly into the **File** field, including any variables, or you can click the **Browse** button to locate the binary data file.                                                                                                                                                                                                                                                                                                                                                                                                   |
| **File defined in a field**               | Select this option to read the names of the binary files from a field name in the previous step. Select the name of the field from the drop-down list.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| **Data already loaded in a binary field** | Select this option if the binary data is passed into the step from a binary field on the PDI stream. Select the step generating the binary field from the drop-down list. You can use this option to prepare the output of records by another Copybook Input step. Using this method, you can selectively process fields and avoid conversion errors in definition files that include **REDEFINES**. See the **Store record as a binary field** option in the [**Options**](https://docs.pentaho.com/pdia-data-integration/9.3-data-integration/pdi-transformation-steps-reference-overview/copybook-input-pdi-step/options-copybook-input-step/options-tab-copybook-input-step) tab. |

## **Schema**

These options define the location of the copybook definition file and include mapping options for the binary data files.

| Option                            | Description                                                                                                                                                                                                                                                                                                                                                                                                |
| --------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **COBOL Copybook file path**      | Specify the file path to the copybook definition file. You can enter any VFS or SFTP file path or click **Browse** to open the system file browser. After selecting a file, click **Validate** to verify that the definition file can be accessed and parsed.                                                                                                                                              |
| **COBOL Copybook line structure** | <p>Specify the line structure of the definition file.- <strong>Standard columns (6 to 72)</strong></p><p>Select this option when the definition file contains line numbers. The first 6 columns of text from each line are ignored. Any data beyond column 72 is ignored.</p><ul><li><strong>Full line</strong></li></ul><p>Select this option when the definition file does not contain line numbers.</p> |

\## \*\*Binary Format\*\*

Use these options to describe the binary format of the selected file.

<table data-header-hidden><thead><tr><th></th><th></th></tr></thead><tbody><tr><td>Option</td><td>Description</td></tr><tr><td><strong>Source architecture</strong></td><td><p>Select the machine architecture of the binary data source files. The values are:- <strong>Big endian (mainframe)</strong></p><p>The most significant byte first and the least significant byte last.</p><ul><li><strong>Little endian</strong></li></ul><p>The least significant byte first and the most significant byte last.</p></td></tr><tr><td><strong>Source charset name</strong></td><td><p>Select the character encoding set of the binary data file. Mainframe EBCDIC is typically encoded using IBM037 or cp1047 character sets.</p><p>For more information about character sets and their aliases, see <a href="https://docs.oracle.com/javase/8/docs/technotes/guides/intl/encoding.doc.html">Supported Encodings</a> in the Oracle® documentation.</p></td></tr><tr><td><strong>Packed decimal (COMP-3) sign convention</strong></td><td><p>Select how COMP-3 Packed decimals are parsed from the binary data as it relates to sign convention. For a given field, if validation occurs and fails, a conversion error will occur at runtime. See <a href="../use-error-handling-copybook-input-step">Use Error Handling</a> for details.- <strong>Strict</strong></p><p>Must follow the IBM S370FPD specification to avoid validation errors. Validation is performed to verify that all nibbles (half-bytes), except the sign nibble, are decimal digits (0-9). This is the default value.</p><pre><code>-   For signed packed decimals, the sign nibble must be C \(positive\) or D \(negative\).
-   For unsigned packed decimals, the sign nibble must be F.
</code></pre><ul><li><strong>Lenient</strong></li></ul><p>Validation is performed to verify that all nibbles contain decimal digits and the sign nibble contains a hexadecimal value of A-F. The sign nibble is only used to interpret a negative number if the value is D.</p><ul><li><strong>Lenient - unchecked</strong></li></ul><p>No validation is performed on the source bytes. The sign nibble may contain any hexadecimal value 0-F, and the last nibble is not included in the result. The sign nibble is only used to interpret a negative number if the value is D.</p></td></tr></tbody></table>
