# File Map

Circulation has many programs that import and export text (ASCII) files. Different newspapers will have varying format requirements, depending on the software applications being interfaced. To allow users more flexibility in export and import formats, many formats can be user-defined using this option. For a list of list of options that can be used with file map, see [*File Mapping Data Elements*](https://docs.navigaglobal.com/circulation-user-manual/14-appendix-b-file-formats/file-mapping-data-elements) in *Appendix B* of the *Circulation User Manual*.

The following table indicates which format options are available with each File Map usage.

<table><thead><tr><th width="241">File Map Usage</th><th>Delimited</th><th>Fixed Width</th><th>Progress</th><th>Quoted</th></tr></thead><tbody><tr><td>1099 Form Export</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>1099 Forms Printing Export</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Account Lockbox</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Account Statement Export</td><td>X</td><td>X</td><td> </td><td> </td></tr><tr><td>Address Export and Address Import</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Alternate Format for Draw Adjustments</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Alternate Single Copy Draw Change Import</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Audit GL Transactions</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Authentication Import</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Balance Forward Billing Export</td><td>X</td><td>X</td><td> </td><td> </td></tr><tr><td>BAS Reconciliation (Detail)</td><td>X</td><td>X</td><td> </td><td> </td></tr><tr><td>BAS Reconciliation (Summary)</td><td>X</td><td>X</td><td> </td><td> </td></tr><tr><td>Bundle Top Export</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Campaign Import</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Carrier Mail Export</td><td>X</td><td>X</td><td> </td><td> </td></tr><tr><td>Cleanse Flag Export</td><td>X</td><td>X</td><td> </td><td> </td></tr><tr><td>Cleanse Flag Import</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Communication History Import</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Complaint Export (Detail)</td><td>X</td><td>X</td><td> </td><td> </td></tr><tr><td>Complaint Export (Summary)</td><td>X</td><td>X</td><td> </td><td> </td></tr><tr><td>Credit Card Expire Data Export</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Dispatch Export</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Do Not Call Import</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Do Not Call List</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Draw Adjustments and Returns Import</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Draw Change Import</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Draw Forecast Export</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Drop Credit Audit</td><td>X</td><td>X</td><td> </td><td> </td></tr><tr><td>Drop Time Import</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>GL Audit</td><td>X</td><td>X</td><td> </td><td> </td></tr><tr><td>GL Export</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>GL Interface Journal</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Misc Chg/Credit Import</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Merchandise Report</td><td>X</td><td>X</td><td> </td><td> </td></tr><tr><td>Office Pay Audit Report</td><td>X</td><td>X</td><td> </td><td> </td></tr><tr><td>Past Due Letter</td><td>X</td><td>X</td><td> </td><td> </td></tr><tr><td>Payment Authorization</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Postal Billing Export</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Postal Subscriber Audit</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Postal Subscriber Full Audit</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Proof of Sale</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Returns Acknowledgment Export</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Returns Journal</td><td>X</td><td>X</td><td> </td><td> </td></tr><tr><td>Route Address Label Export</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Route Data (Route Delivery List Export)</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Router Import</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Single Copy By Day Report</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Sold Import</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Status/Collect Cards</td><td>X</td><td>X</td><td> </td><td> </td></tr><tr><td>Subscriber Activity Import</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Subscriber Billing</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Subscriber Export</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Subscriber Lockbox</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Subscriber Tax Export</td><td>X</td><td>X</td><td> </td><td> </td></tr><tr><td>Subscriber Transaction Export</td><td>X</td><td>X</td><td> </td><td> </td></tr><tr><td>Subscriber Transaction Import</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Targeted Marketing</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>TM Draw Change Import</td><td>X</td><td>X</td><td>X</td><td>X</td></tr><tr><td>Truck Sequence Export</td><td>X</td><td>X</td><td> </td><td> </td></tr><tr><td>Truck Sequence Import</td><td>X</td><td>X</td><td>X</td><td>X</td></tr></tbody></table>

{% hint style="info" %}
**Note:** *A standard lockbox format will be predefined in File Map; you need only set up a new lockbox format if yours differs from the standard. Likewise, a payment authorization file will be predefined for credit card cancels, in the standard credit card cancel format, and Do Not Call files will be predefined based on the Federal DNC formats.*
{% endhint %}

#### To define a file format:

1. In character Circulation, select File Map from the System menu to display the File Map Setup screen.

   <figure><img src="/files/OkAuPvH3C8bkd7Ftwo6M" alt=""><figcaption></figcaption></figure>
2. Select Add and enter basic information about the format in the fields described below.

   <table><thead><tr><th width="190.33333333333334">Field</th><th width="122">Type</th><th>What to enter</th></tr></thead><tbody><tr><td>FILE NAME</td><td>open (12)</td><td>Enter a name for this import or export format. For example, if you are interfacing to a BillServ system, you might want to name the format “BillServ”.</td></tr><tr><td>DESCRIPTION</td><td>open (30)</td><td>Enter a description of this format.</td></tr><tr><td>USAGE</td><td>predefined</td><td>Specify the type of import or export (for example, enter “SubLockbox” if defining a subscriber lockbox format). Press F2 for a list of valid types, or refer to the User Manual.</td></tr><tr><td>DEFAULT FILE NAME</td><td>open (30)</td><td><p>Enter the default file name for the format in the /dti/exchange/cm directory. This will be the file name that defaults during the import or export in Circulation. This field is required for the “SubBilling” usage but optional for all other usages.<br>Note: You are able to use tokens within the default file name to add information such as the date or a sequence number. The available tokens are:</p><ul><li><code>&#x3C;p></code>—User’s default product ID (from User Profile CR)</li><li><code>&#x3C;d></code>—Current day name (e.g., MON if the export is run on Monday)</li><li><code>&#x3C;t></code>—Type of run (actual, advance, or TM)</li><li><code>&#x3C;s></code>—Sequence number indicating the number of times the export has been run on the current day</li><li><code>&#x3C;c></code>—Calendar date<br>See Tokens for a complete list of tokens that can be used at run-time when using a file map.</li></ul></td></tr><tr><td>FILE FORMAT</td><td>predefined</td><td><p>Indicate the format:</p><ul><li>Delimited formats have a symbol such as “,” or “|” to separate fields. You could also use a tab (enter \t in the Delimiter field).</li><li>Fixed Width formats have a fixed number of characters for each field.</li><li>Progress formats have character fields that are enclosed in double quotes and all data elements are separated by a delimiter (usually a space).</li><li>Quoted formats include double quotation marks surrounding each data element. These elements are also separated by a delimiter.</li></ul></td></tr><tr><td>DELIMITER</td><td>open (4)</td><td>If the file format is delimited, enter the delimiter here. For example, a popular delimiter is the pipe (|) symbol. Enter \t for a Tab delimiter.</td></tr><tr><td>LINE TERMINATOR</td><td>predefined</td><td>This field controls how line feeds are exported (both the Line Feed data element and the automatic line feed at the end of every record). The options are CRLF (carriage return/line feed), LF (line feed), and None (data is exported on one line).<br><strong>Note:</strong> <em>Currently, this field is valid only for the “SubBilling” file mapping usage, and LF will be used for all other usages.</em></td></tr></tbody></table>
3. Select Specifics | Record Type to define the format records and fields (see below).
4. Select Accept to create the file format. You can then define additional formats, or select Exit to return to the Setup menu.

## Specifics, Record Type

Some file formats have multiple record types, with each record being separated by a carriage return or line feed. For example, the format might have a batch header record, followed by one or more detail records, and finally a trailer record. A format must have at least one record defined. The records and their identifiers are defined in the Record Type Setup screen.

#### To define record types:

1. Select Specifics | Record Type from the File Map Setup screen to display the Record Type Setup screen.<br>

   <figure><img src="/files/YcB6ion7az2INvIPvZC6" alt=""><figcaption></figcaption></figure>
2. Select Add and enter information about a record in the fields described below.\
   \
   **Note:** *In formats with multiple records, you can use a Record Identifier data element to identify different types of records.*<br>

   <table><thead><tr><th width="174.33333333333334">Field</th><th width="117">Type</th><th>What to enter</th></tr></thead><tbody><tr><td>RECORD TYPE</td><td>open (16)</td><td>Enter the name of the record, for example “batch header” or “detail”.</td></tr><tr><td>DESCRIPTION</td><td>open (30)</td><td>Enter a description of this record.</td></tr><tr><td>EXPORT LEVEL / EXPORT WHEN</td><td>predefined</td><td>These fields open only for certain export file map types, and only certain values are available, depending on the file map. They allow you to define how often records export. For example, if “Route” is selected in Export Level, one record will export for each route processed. A record type defined with a “Process” export level will export data only once, either at the Start or End of the process (as determined by the Export When value).</td></tr><tr><td>EXPORT ORDER</td><td>integer (6)</td><td>If an export format is being defined, enter the order in which this record should be exported, as related to the other records of the same record type. For example, an “Address” detail record might have an export order of 10, and a “Subscription” detail record might have an order of 20. In this case the Address record would export before the subscription record. Other record types, such as a header or footer record, would export before or after the detail records, based on whether Export When was set to “Start” or “End.”</td></tr></tbody></table>
3. Select Specifics | Data Element to define the record’s fields (see below).
4. Select Accept to accept the record. Define other records, or select Exit to return to the File Map Setup screen.

{% hint style="info" %}
**Note:** *Some data elements are required for certain formats. For example, the Subscription ID is a required field in the subscriber lockbox format. Users may not exit from the Record Type Setup screen until all required fields are part of the record. The F2 lookup in the Data Element field on the Data Element setup screen indicates whether a data element is required.*
{% endhint %}

## Specifics, Data Element

The last step in defining an import or export format is mapping the content of the fields to Circulation data elements. If a format contains more than one record, each record must be mapped separately.

{% hint style="info" %}
**Note:** *Data elements that can be used for each file map are listed in the User Manual.*
{% endhint %}

#### To define fields for a record:

1. Select Specifics | Data Element from the Record Type Setup screen to display the Data Element Setup screen.

   <figure><img src="/files/eS8ONtLzw9xymJBD2IkW" alt=""><figcaption></figcaption></figure>

   <figure><img src="/files/Xx0L9kYzD65IdvudqSP1" alt=""><figcaption></figcaption></figure>
2. Select Add and map the first field (the fields are described in the table below).

   <table><thead><tr><th width="128.33333333333334">Field</th><th width="119">Type</th><th>What to enter</th></tr></thead><tbody><tr><td>SEQ</td><td>integer (4)</td><td>Enter the sequence order of this field as it related to other fields in the record. We recommend giving the first field a sequence of 10, the second field 20, and so on, so that additional fields can be inserted later on if needed.</td></tr><tr><td>DATA ELEMENT</td><td>predefined</td><td>Specify the data element that maps to this field in the format. Press F2 for a list of valid elements (shown in the figure below) or see Appendix B in the User Manual. If the field should be ignored by Circulation, enter “Filler” here.<br>Note: For the “Adjustment” data element in subscriber lockbox formats, a Code Map prompt will appear after the data element is selected. This is where you define the subscriber payment adjustment code that should be used with adjustments imported via this lockbox format. Code Map also appears for phone number fields in export formats, allowing you to select a phone type (or “&#x3C;primary>”). The occupant phone with this phone type (or the primary phone number) will be exported.</td></tr><tr><td>LENGTH</td><td>integer (3)</td><td>If this is a fixed length format, enter the character length of this field.</td></tr><tr><td>FORMAT/VALUE</td><td>predefined</td><td>Some data elements have a variety of possible formats. For example, dates could have the format “dmy” (day, month, year), “mdy”, etc. Logical (yes no) fields should have a format that includes a slash, such as “Y/N” if the file will be receiving the logical value as a Y or N. If this field is open, press F2 and select the correct format for the data element.</td></tr><tr><td>CONVERT</td><td>predefined</td><td>Leave this field blank unless you are converting the import/export value of this field. If converting the value using a conversion program, select “Program” here and specify the path and file name of the conversion program in the Conversion Program prompt that displays.<br>For example, you may have demographic information instead of a subscription ID in your input file. By writing a conversion program you could take the demographic information and, through your conversion program, output a subscription ID. Your conversion program must have one input-output parameter of a character type. Contact Naviga Support for more information before writing your conversion program.<br>If you are defining a file map for the Subscriber Activity Import, another option, “Setup,” is also available here, as described below.</td></tr></tbody></table>
3. Add the other fields in the record. Once the fields are defined, select press F4 and Exit to return to the Record Type Setup screen.

## Data Element Mapping

If you are defining a file map for the Subscriber Activity Import, you can set up mappings for data elements. For example, the product ID “DlyTms” in the input file can be mapped to “DT” so that it can match product “DT” in Circulation.

To set up mapping, add the data element and set the Convert field to “Setup.” The Element Conversion Setup screen displays. Enter the low and high values to map, and the Circulation value. For most mappings, you will enter the same value in LOW VALUE and HIGH VALUE, so that the specific value will be mapped. After adding the mapping, press F4 and select Exit to return to the Data Element Setup screen.

<figure><img src="/files/OgM4j7kvhtaVEvmq09Fq" alt=""><figcaption></figcaption></figure>

## Data Element Translation

File map elements can be translated into a different language as part of the export process. To translate a data element, set the Convert field to “P” (program) and in the Convert Program field enter “filemap/convert/translate”. The translated value in the Circulation database will then be exported. See [Translation ](/circulation-setup-manual/system/translation.md)for more information on translation.

## Tokens

All File Map exports allow tokens to be included in the file name when running the export option in Circulation. A list of valid tokens can be displayed by pressing F2 or clicking the lookup icon in the File Name field when running an export option.

The following table lists the generic tokens that can be used with any export File Map. The remaining tables list the tokens that can be used for more specific options.

<table><thead><tr><th width="129">Token</th><th width="341">Description</th><th>Example</th></tr></thead><tbody><tr><td>&#x3C;c></td><td>System date with 2-digit year</td><td>91708</td></tr><tr><td>&#x3C;C></td><td>System date with 4-digit year</td><td>9172008</td></tr><tr><td>&#x3C;d></td><td>System date day of week (lower)</td><td>wed</td></tr><tr><td>&#x3C;D></td><td>System date day of week (UPPER)</td><td>WED</td></tr><tr><td>&#x3C;J></td><td>System date Julian day</td><td>261</td></tr><tr><td>&#x3C;m></td><td>System date month (lower)</td><td>sep</td></tr><tr><td>&#x3C;M></td><td>System date month (UPPER)</td><td>SEP</td></tr><tr><td>&#x3C;N></td><td>System date day number</td><td>17</td></tr><tr><td>&#x3C;O></td><td>System date month number</td><td>9</td></tr><tr><td>&#x3C;S></td><td>Process sequence</td><td>0</td></tr><tr><td>&#x3C;u></td><td>User ID (lower)</td><td>mattm</td></tr><tr><td>&#x3C;U></td><td>User ID (UPPER)</td><td>MATTM</td></tr><tr><td>&#x3C;W></td><td>System date week number</td><td>38</td></tr><tr><td>&#x3C;y></td><td>System date 2-digit year</td><td>8</td></tr><tr><td>&#x3C;Y></td><td>System date 4-digit year</td><td>2008</td></tr></tbody></table>

Bill source tokens (used in Drop Credit Audit and Past Due Letter) are listed in the table below.

<table><thead><tr><th width="130.33333333333331">Token</th><th width="343">Description</th><th>Example</th></tr></thead><tbody><tr><td>&#x3C;b></td><td>Bill source ID (lower)</td><td>Carrier</td></tr><tr><td>&#x3C;B></td><td>Bill source ID (UPPER)</td><td>CARRIER</td></tr></tbody></table>

Product tokens are listed below. They can be used in Balance Forward Billing, BAS Reconciliation, Bundle Tops, Carrier Mail, Complaint Report, Draw Forecast, Merchandise Report, Status/Collection Cards, Subscriber Tax Export, Subscription Tran Export, TM, and Truck Sequence Export.

<table><thead><tr><th width="139.33333333333331">Token</th><th width="340">Description</th><th>Example</th></tr></thead><tbody><tr><td>&#x3C;p></td><td>Product ID (lower)</td><td>dm</td></tr><tr><td>&#x3C;P></td><td>Product ID (UPPER)</td><td>DM</td></tr></tbody></table>

Publishing group tokens, used in Bundle Tops, are listed below.

<table><thead><tr><th width="147.33333333333331">Token</th><th width="335">Description</th><th>Example</th></tr></thead><tbody><tr><td>&#x3C;e></td><td>Edition ID (lower)</td><td>early</td></tr><tr><td>&#x3C;E></td><td>Edition ID (UPPER)</td><td>Early</td></tr><tr><td>&#x3C;g></td><td>Publishing Group ID (lower)</td><td>circus</td></tr><tr><td>&#x3C;G></td><td>Publishing Group ID (LOWER)</td><td>Circus</td></tr></tbody></table>

Run date tokens are listed below. They can be used in Balance Forward Billing, Bundle Tops, Carrier Mail, Past Due Letter, TM, and Truck Sequence Export.

<table><thead><tr><th width="149.33333333333331">Token</th><th width="340">Description</th><th>Example</th></tr></thead><tbody><tr><td>&#x3C;r></td><td>Run date with 2-digit year</td><td>91708</td></tr><tr><td>&#x3C;R></td><td>Run date with 4-digit year</td><td>9172008</td></tr><tr><td>&#x3C;rd></td><td>Run date day of week (lower)</td><td>wed</td></tr><tr><td>&#x3C;RD></td><td>Run date day of week (UPPER)</td><td>WED</td></tr><tr><td>&#x3C;RJ></td><td>Run date Julian day</td><td>261</td></tr><tr><td>&#x3C;rm></td><td>Run date month (lower)</td><td>sep</td></tr><tr><td>&#x3C;RM></td><td>Run date month (UPPER)</td><td>SEP</td></tr><tr><td>&#x3C;RN></td><td>Run date day number</td><td>17</td></tr><tr><td>&#x3C;RO></td><td>Run date month number</td><td>9</td></tr><tr><td>&#x3C;RW></td><td>Run date week number</td><td>38</td></tr><tr><td>&#x3C;ry></td><td>Run date 2-digit year</td><td>8</td></tr><tr><td>&#x3C;RY></td><td>Run date 4-digit year</td><td>2008</td></tr></tbody></table>

Spool sequence tokens, used in Bundle Tops, are listed below.

<table><thead><tr><th width="154.33333333333331">Token</th><th width="336">Description</th><th>Example</th></tr></thead><tbody><tr><td>&#x3C;s></td><td>Spool sequence</td><td>0</td></tr></tbody></table>

Run type tokens, used in Bundle Tops, are listed below.

<table><thead><tr><th width="155.33333333333331">Token</th><th width="340">Description</th><th>Example</th></tr></thead><tbody><tr><td>&#x3C;t></td><td>Run type (lower)</td><td>actual</td></tr><tr><td>&#x3C;T></td><td>Run type (UPPER)</td><td>ACTUAL</td></tr></tbody></table>


---

# 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.navigaglobal.com/circulation-setup-manual/system/file-map.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.
