Automatically infer variables' measurement level from format and data.
[pspp] / tests / data / por-file.at
index b9e45ef4ee0f100e2aecc0e9731cdf0d7c10cbdc..fb73a50ee20bb094c8854de9e0920153e2e78135 100644 (file)
@@ -100,17 +100,18 @@ EXPORT OUTFILE='data.por'.
 AT_CHECK([pspp -O format=csv export.sps])
 AT_DATA([import.sps], [dnl
 IMPORT FILE='data.por'.
+EXECUTE.
 DISPLAY DICTIONARY.
 LIST.
 ])
 AT_CHECK([pspp -O format=csv import.sps], [0], [dnl
 Table: Variables
-Name,Position,Label,Measurement Level,Role,Width,Alignment,Print Format,Write Format,Missing Values
-VAR1,1,,Scale,Input,8,Right,F1.0,F1.0,
-VAR2,2,,Scale,Input,8,Right,F1.0,F1.0,
-VAR3,3,,Scale,Input,8,Right,F1.0,F1.0,
-VAR4,4,,Scale,Input,8,Right,F1.0,F1.0,
-VAR5,5,,Scale,Input,8,Right,F1.0,F1.0,
+Name,Position,Measurement Level,Role,Width,Alignment,Print Format,Write Format
+VAR1,1,Nominal,Input,8,Right,F1.0,F1.0
+VAR2,2,Nominal,Input,8,Right,F1.0,F1.0
+VAR3,3,Nominal,Input,8,Right,F1.0,F1.0
+VAR4,4,Nominal,Input,8,Right,F1.0,F1.0
+VAR5,5,Nominal,Input,8,Right,F1.0,F1.0
 
 Table: Value Labels
 Variable Value,,Label
@@ -134,7 +135,6 @@ AT_CHECK([pspp -O format=csv sys-file-info.sps | sed '/Encoding/d
 '], [0], [dnl
 Table: File Information
 File,data.por
-Label,
 Variables,5
 Cases,Unknown
 Type,SPSS Portable File
@@ -142,12 +142,12 @@ Weight,Not weighted
 Compression,None
 
 Table: Variables
-Name,Position,Label,Measurement Level,Role,Width,Alignment,Print Format,Write Format,Missing Values
-VAR1,1,,Scale,Input,8,Right,F1.0,F1.0,
-VAR2,2,,Scale,Input,8,Right,F1.0,F1.0,
-VAR3,3,,Scale,Input,8,Right,F1.0,F1.0,
-VAR4,4,,Scale,Input,8,Right,F1.0,F1.0,
-VAR5,5,,Scale,Input,8,Right,F1.0,F1.0,
+Name,Position,Measurement Level,Role,Width,Alignment,Print Format,Write Format
+VAR1,1,Unknown,Input,8,Right,F1.0,F1.0
+VAR2,2,Unknown,Input,8,Right,F1.0,F1.0
+VAR3,3,Unknown,Input,8,Right,F1.0,F1.0
+VAR4,4,Unknown,Input,8,Right,F1.0,F1.0
+VAR5,5,Unknown,Input,8,Right,F1.0,F1.0
 
 Table: Value Labels
 Variable Value,,Label