---
title: "SQL-051: clsOutputControl retrieve by sequence number"
summary: Retrieves a single output control record from OUTPUT_CONTROL by sequence number.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.Payment.EFT
reference_type: package
---

# SQL-051: clsOutputControl retrieve by sequence number

Retrieves a single output control record from OUTPUT_CONTROL by sequence number.

## Classification

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


## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| \:OutputControlSeqNum\ | Input | Decimal | — | Binds \MyCriteria.OutputControlSeqNum\* |

## Tables

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

## Sample SQL

```sql
Select OUTPUT_CONTROL.CLAIM_ID as ClaimID,
  OUTPUT_CONTROL.CREATE_DATE as CreateDate,
  OUTPUT_CONTROL.CREATE_USER as CreateUser,
  OUTPUT_CONTROL.OUTPUT_CONTROL_SEQ_NUM as OutputControlSeqNum,
  OUTPUT_CONTROL.OUTPUT_DOCUMENT_CODE as OutputDocumentCode,
  OUTPUT_CONTROL.PERSON_ID as PersonID,
  OUTPUT_CONTROL.SECONDARY_ID as SecondaryID,
  OUTPUT_CONTROL.PRINTED_DATE as PrintedDate
From OUTPUT_CONTROL
Where OUTPUT_CONTROL.OUTPUT_CONTROL_SEQ_NUM = :OutputControlSeqNum
```

## 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\clsOutputControl.vb`
