---
title: "SQL-053: clsOutputDocumentCode retrieve by code"
summary: Retrieves an output document code record from OUTPUT_DOCUMENT_CODE.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.Payment.EFT
reference_type: package
---

# SQL-053: clsOutputDocumentCode retrieve by code

Retrieves an output document code record from OUTPUT_DOCUMENT_CODE.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-053 |
| **Operation type** | Read |
| **Execution method** | Inline SQL |
| **Database** | Oracle* |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsOutputDocumentCode` |
| **Criteria property** | `RetrieveSQL` |
| **Lifecycle method** | `BeforeRetrieve / AfterRetrieve` |


## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| \:CODE\ | Input | String | 5 | Binds \MyCriteria.Code\* |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [OUTPUT_DOCUMENT_CODE](../database-tables.md#output_document_code) | — | — |

## Sample SQL

```sql
Select OUTPUT_DOCUMENT_CODE.CODE as Code,
  OUTPUT_DOCUMENT_CODE.CODE_DESCR as CodeDescr,
  OUTPUT_DOCUMENT_CODE.CREATE_DATE as CreateDate,
  OUTPUT_DOCUMENT_CODE.CREATE_USER as CreateUser,
  OUTPUT_DOCUMENT_CODE.XPESSO_PACKAGE_NAME as XpessoPackageName
From OUTPUT_DOCUMENT_CODE
Where OUTPUT_DOCUMENT_CODE.CODE = :Code
```

## Operations and processes
- [Output control tracking](../operations/output-control-tracking.md)*

> **Note:** Statements marked with `*` were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts. Statements marked with `**` could not be confirmed; treat as unknown until verified.

## Sources
- `Business\SAIF.Business.Payment.EFT\clsOutputDocumentCode.vb`
