The data records can be interrupted by a control record. A control record contains important information for interpreting the data. It starts with the flag ‘C’, followed by the control information. This information is stored as character string in the form KEY WORD VALUE.
At present, the control record is used for the following information:
Codepage and Language
After header and sort record and before the first data record, always a control record of this type follows. If you use the SAPscript statement INCLUDE to include a text in a different language, the system writes the control record containing the corresponding codepage and language before writing the data record containing the include text. At the end of the included text, a reset may be necessary, which is also indicated in the control record.
The key words are CODEPAGE and LANGUAGE.
Control record for a German text with codepage 1100:
CCODEPAGE 1100 LANGUAGE DE
The first ‘C’ introduces the control record.
Page Name
At the beginning of a new page, specify its name using the key word PAGENAME.
Control record for page FIRST:
CPAGENAME FIRST
The first ‘C’ introduces the control record.