# Creating File Resources

To create a File Resource, go to **Setup** → **File Resources** and click the **NEW** button.&#x20;

Fill in these fields:

* **Select Actor**: select the Actor to which the File Resource will be applied.&#x20;
* **Name**: assign a unique name of the File Resource. These characters are accepted / ! \* + ? = " |\
  Blanks are not accepted.
* **Description**: enter a description for the File Resource.&#x20;
* **Reject File**: YES or NO (default). Select if a file matching the **File Processing Rule** associated with this **File Resource** will be accepted (NO, default) or not (YES).&#x20;
* **Local Settings** have two different configurable platforms where they can operate, with different properties: WINDOWS / UNIX LIKE and zOS. The **Remote Settings** configuration has the same properties and definitions as the **Local Settings**.

### **Windows / Unix Like**

| <p><strong>FILE FORMAT –</strong><br><strong>CONTENT TYPE</strong></p>          | <p>This is the mime type associated with the file; mime is used only to determine if the file is text or binary. Possible values:</p><p>APPLICATION\_EDI\_CONSENT<br>APPLICATION\_EDIFACT<br>APPLICATION\_EDI\_X12<br>APPLICATION\_GZIP<br>APPLICATION\_HTTP<br>APPLICATION\_JSON<br>APPLICATION\_MP4<br>APPLICATION\_MPEG4\_GENERIC<br>APPLICATION\_MPEG4\_IOD<br>APPLICATION\_MPEG4\_IOD\_XMT<br>APPLICATION\_PDF<br>APPLICATION\_PGP\_ENCRYPTED<br>APPLICATION\_PGP\_SIGNATURE<br>APPLICATION\_PKCS7\_MIME<br>APPLICATION\_PKCS7\_SIGNATURE<br>APPLICATION\_VND\_MS\_EXCEL<br>APPLICATION\_VND\_MS\_EXCEL\_ADDIN\_MACROENABLED\_12<br>APPLICATION\_VND\_MS\_EXCEL\_SHEET\_BINARY\_MACROENABLED\_12<br>APPLICATION\_VND\_MS\_EXCEL\_SHEET\_MACROENABLED\_12<br>APPLICATION\_VND\_MS\_EXCEL\_TEMPLATE\_MACROENABLED\_12<br>APPLICATION\_VND\_MS\_POWERPOINT<br>APPLICATION\_VND\_MS\_POWERPOINT\_SLIDE\_MACROENABLED\_12<br>APPLICATION\_VND\_MS\_POWERPOINT\_SLIDESHOW\_MACROENABLED\_12<br>APPLICATION\_VND\_MS\_POWERPOINT\_TEMPLATE\_MACROENABLED\_12<br>APPLICATION\_VND\_MS\_PROJECT<br>APPLICATION\_VND\_MS\_WORD\_DOCUMENT\_MACROENABLED\_12<br>APPLICATION\_VND\_MS\_WORD\_TEMPLATE\_MACROENABLED\_12<br>APPLICATION\_ZIP<br>APPLICATION\_OCTET\_STREAM<br>TEXT\_CSS<br>TEXT\_CSV<br>TEXT\_CSV\_SCHEMA<br>TEXT\_HTML<br>TEXT\_JAVASCRIPT<br>TEXT\_RTF<br>TEXT\_XML<br>TEXT\_PLAIN</p> |                                                                                                                        |
| ------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| <p><strong>FILE FORMAT –</strong><br><strong>RECORD FORMAT</strong></p>         | The record format:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |                                                                                                                        |
|                                                                                 | **UF – Windows/”Unix like” Fixed length**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | The file consists of fixed-length records                                                                              |
|                                                                                 | **UV – Windows/”Unix like” delimited with EOL**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | The file consists of variable-length text records delimited by a line end an end of line                               |
|                                                                                 | **UVL – Windows/”Unix like” length prefixed variable record (big-endian)**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | The file consists of records of variable length, and each record is preceded by its length (4 big-endian binary bytes) |
|                                                                                 | **NONE – Not Set (default)**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | The file does not consist of any records                                                                               |
| <p><strong>SECURITY –</strong><br><strong>SECURITY TYPE (#)</strong></p>        | <p><strong>NONE (default)</strong><br><strong>ENVELOPE</strong><br><strong>OPEN</strong><br><strong>SIGN\_AND\_ENVELOPE</strong><br><strong>SIGN</strong></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |                                                                                                                        |
| <p><strong>COMPRESSION –</strong><br><strong>COMPRESSION TYPE (#)</strong></p>  | Compression type where:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |                                                                                                                        |
|                                                                                 | **SPAZIO2\_RUN\_LENGTH**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | Spazio2 compression, only the repeated bytes are compressed                                                            |
|                                                                                 | **SPAZIO2\_ZLIB**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | zlib Spazio2 compression                                                                                               |
| <p><strong>LOCATION –</strong><br><strong>FILE POSITION</strong></p>            | Flag to set the file as internal or external:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |                                                                                                                        |
|                                                                                 | **INTERNAL (default)**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | Create the file as internal file                                                                                       |
|                                                                                 | **EXTERNAL**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | Create the file as external file                                                                                       |
|                                                                                 | **LINK**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | When applicable, the file is the one provided by the user and the Virtual File System refers directly to it            |
| <p><strong>DISPOSITION RULES –</strong><br><strong>PUT DISPOSITION</strong></p> | The disposition applicable only to the external file:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |                                                                                                                        |
|                                                                                 | **REJECT\_IF\_EXIST**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | Create a new file. This operation fails if the file already exists                                                     |
|                                                                                 | **OVERRIDE (default)**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | Replace or create a new file if it does not exist                                                                      |
|                                                                                 | **NEW\_VERSION**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | Same as OVERRIDE, it can reuse the space allocation for zOS dataset                                                    |
|                                                                                 | **REPLACE\_NO\_CREATE**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | Replace an old file. This operation fails if the file does not exist                                                   |
| <p><strong>DISPOSITION RULES –</strong><br><strong>GET DISPOSITION</strong></p> | <p>When the platform works as a server, the file can remain on the VFS or can be removed automatically once it is successfully pulled by a client.<br>When the platform works as a client, the file can remain on the VFS or can be removed automatically once it is successfully read to be pushed via a Client Connection.<br>The configuration occurs choosing the option:</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |                                                                                                                        |
|                                                                                 | **LEAVE**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | The file remains in the VFS                                                                                            |
|                                                                                 | **REMOVE (default)**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | The file is removed from the VFS                                                                                       |

In the previous table, fields marked with (**#**) trigger the following options depending on the value chosen:

**SECURITY TYPE:**

| **NONE**                | No more properties to configure                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **OPEN**                | <p>1. <strong>Security format</strong>: select the encrypted file format:<br>PKCS7 (default)<br>PGP<br>CMS<br>PKCS7\_SP2<br>S\_MIME</p>                                                                                                                                                                                                                                                                                                                     |
| **SIGN**                | <p>1. <strong>Security format</strong>: same as OPEN<br>When selecting PGP, the add extension (.pgp) checkbox will appear.<br>2. <strong>Signature key</strong>: The key ID to be used for signature operations<br>3. <strong>Signature hash algorithm</strong>: select the hash algorithm to be used for signature operations:<br>MD2<br>MD5<br>SHA1<br>SHA256 (default)<br>SHA384<br>SHA512</p>                                                           |
| **ENVELOPE**            | <p>1. <strong>Security format</strong>: same as OPEN<br>When selecting PGP, the add extension (.pgp) checkbox will appear.<br>2. <strong>Encryption Cipher Algorithm</strong>: select the cipher algorithm to be used for the encryption operations:<br>DES<br>DES\_EDE3 (default)<br>AES128<br>AES192<br>AES256<br>RC2<br>3. <strong>Encryption Recipient</strong></p>                                                                                     |
| **SIGN\_AND\_ENVELOPE** | <p>1. <strong>Security format</strong>: same as OPEN<br>When selecting PGP, the add extension (.pgp) checkbox will appear.<br>2. <strong>Signature key</strong>: the key ID to be used for signature operations<br>3. <strong>Signature hash algorithm</strong>: same as OPEN<br>4. <strong>Encryption Cipher Algorithm</strong>: the cipher algorithm used for the encryption operations; same as ENVELOPE<br>5. <strong>Encryption Recipient</strong></p> |

**COMPRESSION TYPE:**

| **SPAZIO2\_RUN\_LENGTH** | No more properties to configure                                                                                                                                                                                                                                                              |
| ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **SPAZIO2\_ZLIB**        | <p>1. <strong>Compression 64 Mode</strong>:<br>ALWAYS (default)<br>NEVER<br>2. <strong>Strategy Level, Zlib compression strategy level</strong>:<br>DEFAULT (default)<br>FILTERED<br>HUFFMAN\_ONLY<br>3. <strong>Compression Level</strong>: Zlib compression level (0-9), (default: 5).</p> |

### **zOS**

| <p><strong>FILE FORMAT –</strong><br><strong>CONTENT TYPE</strong></p>                 | The mime type associated with the file; mime is used only to determine if the file is text or binary (*see paragraph of Windows/Unix like for values*).                                                                                                                                                                                                                                                                                                                                                                                                                          |
| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><strong>FILE FORMAT –</strong><br><strong>RECORD FORMAT</strong></p>                | <p>The record format:<br>ZVBM – z/OS Variable, blocked, machine print-control codes<br>ZVS – z/OS Variable, standard<br>ZVSA – z/OS Variable, standard, ASA print-control, characters<br>ZVSM – z/OS Variable, standard, machine print-control codes<br>ZVBS – z/OS Variable, blocked, standard<br>ZVBSA – z/OS Variable, blocked, standard, ASA print-control characters<br>ZVBSM – z/OS Variable, blocked, standard, machine print-control codes<br>NONE – Not Set (<em>default</em>)<br><br><strong>NOTE</strong>: Zxxxx -> where xxxx is the z/OS dataset record format.</p> |
| <p><strong>FILE FORMAT –</strong><br><strong>RESOURCE BLOCK SIZE</strong></p>          | The block size (used when the record format is zOS type).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| <p><strong>FILE FORMAT –</strong><br><strong>RECORD LENGTH</strong></p>                | Record length: this is **mandatory** if the record format is ZFxx/ZVxx                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| <p><strong>FILE ALLOCATION SETTINGS –</strong><br><strong>SPACE TYPE</strong></p>      | <p>Use the SPACE parameter to request space for a new data set on a direct access volume:<br><strong>B</strong> Byte<br><strong>KB</strong> Kilo byte<br><strong>MB</strong> Mega Byte<br><strong>GB</strong> Giga Byte<br><strong>CYL</strong> Cylinders<br><strong>TRK</strong> Tracks<br><strong>BLK</strong> Blocks</p>                                                                                                                                                                                                                                                      |
| <p><strong>FILE ALLOCATION SETTINGS –</strong><br><strong>PRIMARY SPACE</strong></p>   | Specifies the number of tracks, cylinders, blocks, or records to be allocated.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| <p><strong>FILE ALLOCATION SETTINGS –</strong><br><strong>SECONDARY SPACE</strong></p> | <p>Specifies the number of additional tracks, cylinders, blocks, or records to be<br>allocated, if more space is needed.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| <p><strong>FILE ALLOCATION SETTINGS –</strong><br><strong>UNIT</strong></p>            | Use the UNIT parameter to specify a device for an SMS-managed data set.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| <p><strong>FILE ALLOCATION SETTINGS –</strong><br><strong>VOLUME LIST</strong></p>     | Use the VOLUME parameter to identify the volume or volumes where a data set resides or will reside. Each volume must be separated by commas \[ , ].                                                                                                                                                                                                                                                                                                                                                                                                                              |
| <p><strong>FILE ALLOCATION SETTINGS –</strong><br><strong>DATA CLASS</strong></p>      | Use the DATACLASS parameter to specify a data class for a new data set. The storage administrator at your installation defines the names of the data classes you can code on the DATACLASS parameter.                                                                                                                                                                                                                                                                                                                                                                            |
| <p><strong>SECURITY –</strong><br><strong>SECURITY TYPE (#)</strong></p>               | <p><strong>NONE (default)</strong><br><strong>OPEN</strong><br><strong>SIGN</strong><br><strong>ENVELOPE</strong><br><strong>SIGN\_AND\_ENVELOPE</strong></p>                                                                                                                                                                                                                                                                                                                                                                                                                    |
| <p><strong>COMPRESSION –</strong><br><strong>COMPRESSION TYPE (#)</strong></p>         | <p><strong>SPAZIO2\_RUN\_LENGTH</strong><br><strong>SPAZIO2\_ZLIB</strong></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| <p><strong>LOCATION –</strong><br><strong>FILE POSITION</strong></p>                   | <p><strong>INTERNAL (default)</strong><br><strong>EXTERNAL</strong><br><strong>LINK</strong></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |

| <p><strong>DISPOSITION RULES –</strong><br><strong>PUT DISPOSITION</strong></p> | **REJECT\_IF\_EXIST**                                                                                                                                                                                                                                                                                                                                                             | Create a new file; this operation fails if the file already exists.   |
| ------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|                                                                                 | **OVERRIDE (default)**                                                                                                                                                                                                                                                                                                                                                            | Replace or create a new file if it does not exist.                    |
|                                                                                 | **NEW\_VERSION**                                                                                                                                                                                                                                                                                                                                                                  | Same as OVERRIDE, it can reuse the space allocation for zOS dataset.  |
|                                                                                 | **REPLACE\_NO\_CREATE**                                                                                                                                                                                                                                                                                                                                                           | Replace an old file; this operation fails if the file does not exist. |
| <p><strong>DISPOSITION RULES –</strong><br><strong>GET DISPOSITION</strong></p> | <p>When the platform works as a server, the file can remain on the VFS or can be removed automatically once it is successfully pulled by a client.<br>When the platform works as a client, the file can remain on the VFS or can be removed automatically once it is successfully read to be pushed via a Client Connection.<br>The configuration occurs choosing the option:</p> |                                                                       |
|                                                                                 | **LEAVE**                                                                                                                                                                                                                                                                                                                                                                         | The file remains in the VFS.                                          |
|                                                                                 | **REMOVE (default)**                                                                                                                                                                                                                                                                                                                                                              | The file is removed from the VFS.                                     |

The SECURITY and COMPRESSION fields are marked with (#) because they trigger additional options that are detailed just before the zOS section.

During the definition of the File Resource, some checks are performed against local and remote settings to assure data consistency. These are the basic rules:

* **Local** and **Remote content types** must both refer to binary or text files. In other words, a binary local content type and a text remote content type cannot be defined.
* If the content type is text, the Charset name definition is mandatory.
* If the record format is UV, the content type needs to refer to a text file, and the resource End of Line is mandatory.
* If the record format refers to a fixed or variable length record, the record length is mandatory, and the resource End of Line is forbidden.
* If the content type is binary, text-specific attributes cannot be specified, e.g., charset name and resource End of Line.

Once you have created the File Resource, click **Save**.&#x20;

{% hint style="info" %}
File Resources can be created without being associated with an Actor by going to **Setup** → **File Resources** → **NEW**.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.primeur.com/data-mover-1.21/contracts/file-resources/creating-file-resources.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
