Implement DATASET commands.
[pspp-builds.git] / src / language / dictionary / apply-dictionary.c
index 78824cf8d6e2c1dd5d403faf8394ea6517a9bbae..c2de9318ae81b13462c940aae839a580f886c2d4 100644 (file)
@@ -50,7 +50,7 @@ cmd_apply_dictionary (struct lexer *lexer, struct dataset *ds)
   lex_match_id (lexer, "FROM");
   lex_match (lexer, T_EQUALS);
 
-  handle = fh_parse (lexer, FH_REF_FILE | FH_REF_SCRATCH);
+  handle = fh_parse (lexer, FH_REF_FILE, dataset_session (ds));
   if (!handle)
     return CMD_FAILURE;
   reader = any_reader_open (handle, &dict);