Report Data File Layout
Participants who requested for the “Data Download” function (re: Change of Account Information Form as stated under “Forms for HKSCC Participants”) can download the CCASS reports in data file format to process the downloaded report files according to their own internal processing requirements. Data file format is only available for selective CCASS reports, as listed below:
- All interchange files are of fixed length records.
- All interchange files are sequential files. There are two categories of records: detail and control records.
Detail records contain user information. A record checksum is calculated for each detail record by summing the data contents of essential numeric fields. It is calculated by the sender and checked by the receiver. Control headers contain information such as participant ID, file name, etc., relevant to the file as a whole. Control trailers further protect the file using record counts and hash totals. Should there be any inconsistency in the record checksums, record counts or hash totals, the whole file will be discarded. Different types of records are indicated by the first byte in the records.
- The maximum length of a hash total is confined to the maximum of 18 digits. The implied decimal point of a numeric field, as well as the sign, if any, is ignored. Should overflow occur, the leading digit will be discarded.