SQL-052: clsOutputControlCollection retrieve (null or by date)
Retrieves output control records that are either unprinted (PRINTED_DATE IS NULL) or printed on a specific date.
Classification
Field
Value
SQL ID
SQL-052
Operation type
Read
Execution method
Inline SQL
Database
Oracle*
Schema
[unqualified]**
Command type
Text
Business object
clsOutputControlCollection
Criteria property
RetrieveSQL
Lifecycle method
BeforeRetrieve / AfterRetrieve
Parameters
Parameter
Direction
Type
Max length
Description
:PrintedDate\
Input
Date
—
Binds \MyCriteria.PrintedDate*
Tables
Sample SQL
-- Branch 1: unprinted records
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 . PRINTED_DATE is null
-- Branch 2: printed on specific date
Where trunc ( OUTPUT_CONTROL . PRINTED_DATE ) = : PrintedDate
Operations and processes
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\clsOutputControlCollection.vb