---
title: "SQL-022: clsAchFileID retrieve by code"
summary: Retrieves a single ACH file ID record from ACH_FILE_ID by code.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.Payment.EFT
reference_type: package
---

# SQL-022: clsAchFileID retrieve by code

Retrieves a single ACH file ID record from ACH_FILE_ID by code.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-022 |
| **Operation type** | Read |
| **Execution method** | Inline SQL |
| **Database** | Oracle* |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsAchFileID` |
| **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 |
| --- | --- | --- |
| [ACH_FILE_ID](../database-tables.md#ach_file_id) | — | — |

## Sample SQL

```sql
Select ACH_FILE_ID.ACH_FILE_ID as AchFileID, ACH_FILE_ID.ACH_FILE_DESCR as AchFileDescr
From ACH_FILE_ID
Where ACH_FILE_ID = :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\clsAchFileID.vb`
