彭秋生
摘要:針對銀企互聯中格式多樣的對賬文件,該文提出了兩種動態文件生成機制。一種是基于結構體的動態文件生成機制,它利用了C語言中的結構體成員內存連續的原理,適用于對賬明細數據源表固定的情況,但不適合多數據表的聯合處理。另外一種是與動態SQL結合的文件生成機制,該機制不再局限于同一個數據源表,可以多表聯合查詢處理,同時又具備文件格式靈活配置的優點,適應范圍更廣,靈活度更高。
關鍵詞:對賬文件;動態生成;結構體變更;動態SQL
中圖分類號:TP311 文獻標識碼:A 文章編號:1009-3044(2014)19-4368-03
Dynamic Methods of Reconciliation File Generation in Interconnected System between Bank and Company
PENG Qiu-sheng
(Software Development Department,Guangdong Postal Information & Technology Bureau, Guangzhou 510898, China)
Abstract: In the interconnected system between bank and company, there are a variety of formats for reconciliation file. Two dynamic file generation methods were presented to the problem. One is based on the structure variables, whose members have continuous memory address in C language, and is suitable to fixed data source table, but not for the joint processing of multiple data tables. The other is combined with dynamic SQL; this method not only can process multi-table querying, but also have the advantage of flexible configuration of file format. The new method is no longer confined to the fixed data source table, and is suitable to a wider range with more flexibility.
Key words: reconciliation file; dynamic generation; structure variables; dynamic SQL
對賬是指計算機應用系統間對一個清算周期的交易信息進行核對,以確認交易信息的一致性和正確性的過程。對賬內容包括應用系統間的總賬核對、總賬與明細賬核對、明細賬與明細賬間的勾對等。通常兩個系統間先進行總賬核對,再進行明細賬與明細賬間的勾對。但是,總賬核對正確并不代表明細賬核對也正確,反過來,交易明細如果能一一核對無誤,總賬肯定正確。因此,作為明細賬核對的基礎,對賬明細文件就顯得重要。
本文主要描述銀企互聯中的對賬細細文件產生機制。隨著經濟的發展,越來越多的人傾向于刷卡消費,各類企業(商戶)收費時也提供了現金、刷卡等多種模式供客戶選擇。刷卡收費時,企業從收費系統發起扣款,直接從銀行客戶個人賬戶上扣取應收的費用。企業收費系統與銀行系統之間通過網絡相連?!?br>