---
title: "SQL-002: Pk82033_Thirdparty.thrdparty_clm_cost_cat_create"
summary: Sequence operation used by `Criteria`.
status: draft
owner: SAIF
last_reviewed: 2026-07-28
library: SAIF.Business.Claim.ThirdParty
reference_type: package
---

# SQL-002: Pk82033_Thirdparty.thrdparty_clm_cost_cat_create

This SQL artifact supports ``Criteria`` by executing a sequence operation through StoredProc.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-002 |
| **Operation type** | Sequence |
| **Execution method** | StoredProc |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | StoredProcedure |
| **Business object** | ``Criteria`` |
| **Criteria property** | ``createsql`` |
| **Lifecycle method** | ``Criteria sequence`` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:inCaseSeqNum` | Input | Number | N/A | Source value `MyCriteria.ThrdpartyCaseSeqNum` |
| `:inClaimId` | Input | Number | N/A | Source value `MyCriteria.ThrdpartyClaimId` |
| `:inLienSeqNum` | Input | Number | N/A | Source value `MyCriteria.ThrdpartyLienSeqNum` |
| `:inUserId` | Input | Number | 30 | Source value `MyCriteria.DataPortalInfo.UserID` |
| `:recordset` | Output | REF CURSOR | N/A | Source value `cursor` |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [TP_CLAIM_COST_CATEGORY_CODE](../database-tables.md#tp_claim_cost_category_code) | SEQUENCE | See sample SQL. |
| [thrdparty_claim_cost](../database-tables.md#thrdparty_claim_cost) | SEQUENCE | See sample SQL. |
| [THRDPARTY_LIEN_CATEGORY](../database-tables.md#thrdparty_lien_category) | SEQUENCE | See sample SQL. |
| [THRDPARTY_LIEN](../database-tables.md#thrdparty_lien) | SEQUENCE | See sample SQL. |
| [THRDPARTY_CASE](../database-tables.md#thrdparty_case) | SEQUENCE | See sample SQL. |
| [v_claim_id](../database-tables.md#v_claim_id) | SEQUENCE | See sample SQL. |

## Sample SQL

```sql
BEGIN Pk82033_Thirdparty.thrdparty_clm_cost_cat_create(:inCaseSeqNum, :inClaimId, :inLienSeqNum, :inUserId, :recordset); END;
-- Stored procedure body retrieved from Oracle package WCIS_DBA.Pk82033_ThirdParty.
```

> **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.Claim.ThirdParty\clsThrdpartyLienCategoryCollection.vb`
