---
title: "SQL-014: clsOutputControl insert"
summary: Inserts an output control record into OUTPUT_CONTROL for claim document generation.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.Payment.EFT
reference_type: package
---

# SQL-014: clsOutputControl insert

Inserts an output control record into OUTPUT_CONTROL for claim document generation.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-014 |
| **Operation type** | Create |
| **Execution method** | Inline SQL |
| **Database** | Oracle* |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsOutputControl` |
| **Criteria property** | `InsertSQL` |
| **Lifecycle method** | `BeforeInsert / AfterInsert` |


## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| :OutputDocumentCode | Input | String | 5 | Binds `OutputDocumentCode` |
| :ClaimID | Input | Decimal | — | Binds `m_ClaimID`* |
| :PersonID | Input | Decimal | — | Binds `m_PersonID`* |
| :SecondaryID | Input | Decimal | — | Binds `m_SecondaryID`* |
| :PrintedDate | Input | Date | — | Binds `m_PrintedDate`* |
| :CreateDate | Input | Date | — | Binds `CreateDate`* |
| :CreateUser | Input | String | 30 | Binds `CreateUser`* |
| :OutputControlSeqNum | Input | Decimal | — | Binds `m_OutputControlSeqNum` |

## Tables

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

## Sample SQL

```sql
Insert into OUTPUT_CONTROL ( CLAIM_ID, CREATE_DATE, CREATE_USER, OUTPUT_CONTROL_SEQ_NUM, OUTPUT_DOCUMENT_CODE, PERSON_ID, SECONDARY_ID, PRINTED_DATE )
Values ( :ClaimID, :CreateDate, :CreateUser, :OutputControlSeqNum, :OutputDocumentCode, :PersonID, :SecondaryID, :PrintedDate)
```

## 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.

## Business rules
- [BR-EFT-05: Insert/update operations require exactly one affected row](../business-rules.md#br-eft-05-insertupdate-operations-require-exactly-one-affected-row)*

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