<< Click to Display Table of Contents >> Navigation: User guide > Data > Character data (fixed format) |
We recommend using data files in CSV format.
IMPORTANT: If your fixed format data file contains text that is not ASCII (English language), then there are important differences between ASC files and UNI files and you must use the correct file name extension.
ASC locations refer to bytes, UNI locations refer to characters, see below.
Character data records consist of characters in a fixed format where the data is stored in specific locations (cols or fields). A data record may be up to 350000 characters long.
ASC data files (extension .asc)
QPSMR CATI currently outputs ASC data files.
ASC data files usually use the local system Locale but can be UTF-8 encoded.
The data locations used for a col or field refer to the bytes within the record that are used to hold the data. A byte holds one ASCII (English language) character.
For cvars with non-English text this can mean that the cvar will hold less characters than the field width. For example a field allocated 6 locations will use 6 bytes and can only hold a maximum of 3 Far Eastern letters because each will use 2 bytes (using the Locale) or 2 to 3 bytes if UTF-8 encoded.
You specify that your data is fixed format character data by using a CARD CHARACTERS command.
Character data records may vary in length. The CARD CHARACTERS command specifies the number of data locations needed for the data. This will also be the maximum length of any record to be input or output.
For more information on character data please see on the following: