Next: , Previous: , Up: SPV Light Detail Member Format   [Contents][Index]


D.2.6 Formats

Formats ⇒
    int[n1] byte*[n1]
    int[n2] byte*[n2]
    int[n3] byte*[n3]
    int[n4] int*[n4]
    string[encoding]
    (i0 | i-1) (00 | 01) 00 (00 | 01)
    int
    byte[decimal] byte[grouping]
    int[n-ccs] string*[n-ccs]
    v1(i0)
    v3(count(count(X5) count(X6)))

X5 ⇒ byte*33 int[n] int*[n]
X6 ⇒
    01 00 (03 | 04) 00 00 00
    string[command] string[subcommand]
    string[language] string[charset] string[locale]
    (00 | 01) 00 (00 | 01) (00 | 01)
    int
    byte[decimal] byte[grouping]
    byte*8 01
    (string[dataset] string[datafile] i0 int i0)?
    int[n-ccs] string*[n-ccs]
    2e (00 | 01) (i2000000 i0)?

In every example in the corpus, n1 is 240. The meaning of the bytes that follow it is unknown.

In every example in the corpus, n2 is 18 and the bytes that follow it are 00 00 00 01 00 00 00 00 00 00 00 00 00 02 00 00 00 00. The meaning of these bytes is unknown.

In every example in the corpus for version 1, n3 is 16 and the bytes that follow it are 00 00 00 01 00 00 00 01 00 00 00 00 01 01 01 01. In version 3, observed n3 varies from 117 to 150, and its bytes include a 1-byte count at offset 0x34. When the count is nonzero, a text string of that length at offset 0x35 is the name of a “TableLook”, e.g. “Default” or “Academic”.

Observed values of n4 vary from 0 to 17. Out of 7,060 examples in the corpus, it is nonzero only 36 times.

encoding is a character encoding, usually a Windows code page such as en_US.windows-1252 or it_IT.windows-1252. The rest of the character strings in the member use this encoding. The encoding string is itself encoded in US-ASCII.

decimal is the decimal point character. The observed values are ‘.’ and ‘,’.

grouping is the grouping character. Usually, it is ‘,’ if decimal is ‘.’, and vice versa. Other observed values are ‘'’ (apostrophe), ‘ ’ (space), and zero (presumably indicating that digits should not be grouped).

n-ccs is observed as either 0 or 5. When it is 5, the following strings are CCA through CCE format strings. See Custom Currency Formats in PSPP. Most commonly these are all -,,, but other strings occur.


Next: , Previous: , Up: SPV Light Detail Member Format   [Contents][Index]