# zc (zip code) processing code

The zc processing code uses the zcf file to display the city, state, and Zip code. For
international zip codes, an additional country file is used. For U.S.A.
zip codes, zc displays a standard 5-digit zip code
or the zip+4 code.

This processing code is supported only from the VME.

| System Processors | Select, Update, List |
| --- | --- |
| Code Type | Attribute Defining |
| Dictionary Attributes | Input Conversion, Output Conversion, Correlative |

## Syntax

```
zc
```

## Description

In order to use the zc processing code, there must be three files defined.
The files used by this code are:

- zcf

- state

- country

CAUTION: The zcf and country files are opened with the first zc conversion, and left open until logoff. If you have multiple zcf and/or country files (with different
contents), the zc processing code always references
the first zcf or country file that was opened.

## Examples

| U.S.A. zcf file attributes | International zcf file attributes |
| --- | --- |
| 000 Item-ID (zip code) 001 City 002 State | 000 Country.code “.” postal code 001 City 002 State/Province/Territory/null |
| “dm,country” file 000 1 or 2-character country code 001 country | |

## See also

- [Processing codes (Update processor)](https://d3codex.com/updateprocessor/processing-codes-update-processor/)
- [country file](https://d3codex.com/systemfiles/country-file/)
- [output-conversion](https://d3codex.com/attributedefiningitem/output-conversion/)
- [Processing codes overview](https://d3codex.com/processingcodes/processing-codes-overview/)
- [state file](https://d3codex.com/systemfiles/state-file/)
- [zcf file](https://d3codex.com/systemfiles/zcf-file/)

---
Source: https://d3codex.com/processingcodes/zc-zip-code-processing-code/ - part of the D3Codex reference.
