RDI output format consists of four types of record values. Each record contains a flag that tells the record type - Header (H), Data (D), Sort (S) and Control (C).
Each form that you send to an external text system for print, it starts with a flag - H that shows the Header record structure. Header part of the document contains the following fields −
This field comes after the sort field and is represented by flag - S. Each form contains 10 internal and 5 external sort fields, 32-characters length for each field.
This comes after the sort record and contains a flag - D that shows the data record structure. It contains the following fields −
Each document contains a control record represented by flag - C and is used to interpret the data in the form. Control Record provides the following details −
Code Page and Language Information − When you use an insert statement to add a text in other language, the system adds the control record that contains Code Page and Language to write the data record. For code Page - CODEPAGE keyword is used and for Language - LANGUAGE keyword is used.
Example − CCODEPAGE 1000 LANGUAGE DE
Page Name − Using the control record, when you start a new page you add a control record to specify the page name. Keyword used to specify page name - PAGENAME.
Example − CPAGENAME SECOND