---
title: Read Pa Reason Code Data
summary: SQL-067
status: draft
owner: Technical Writer
last_reviewed: 2026-07-31
library: SAIF.Business.Policy.Audit.Premium
reference_type: package
---

# SQL-067: Read Pa Reason Code Data

This statement supports the premium-audit library by read Pa Reason Code Data.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-067 |
| **Operation type** | Read |
| **Execution method** | IDataRequest.SQLStatement (CommandType.Text) |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsPAReasonCode` |
| **Criteria property** | `RetrieveSQL` |
| **Lifecycle method** | `BeforeRetrieve / AfterRetrieve` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:Code` | Input | bound from `MyCriteria.Code` | 5 | Bound in `clsPAReasonCode.BeforeRetrieve` (line 127) |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [`PA_REASON_CODE`](../database-tables.md#pa_reason_code) | SELECT | See sample SQL. |

## Sample SQL

```sql
SELECT
  PA_REASON_CODE.CODE as Code,
  PA_REASON_CODE.CODE_DESCR as CodeDescription,
  PA_REASON_CODE.REVISION_FLAG as RevisionFlag,
  PA_REASON_CODE.LOV_FLAG as LOVFlag
FROM
  PA_REASON_CODE
WHERE
  PA_REASON_CODE.CODE = :Code
```

## Operations and processes
- [Save a premium audit](../operations/save-a-premium-audit.md)

## Business rules
- [BR-041](../business-rules.md#br-041-validauditreasoncode)



> **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.Policy.Audit.Premium/clsPAReasonCode.vb:277`
