Index: trunk/psastro/src/psastroDataSave.c
===================================================================
--- trunk/psastro/src/psastroDataSave.c	(revision 23695)
+++ trunk/psastro/src/psastroDataSave.c	(revision 23705)
@@ -86,4 +86,13 @@
     if (!psastroMetadataStats (config, stats)) ESCAPE;
 
+    bool status;
+    psString dump_file = psMetadataLookupStr(&status, config->arguments, "DUMP_CONFIG");
+    if (dump_file) {
+        pmConfigCamerasCull(config, NULL);
+        pmConfigRecipesCull(config, "PPIMAGE,PPSTATS,PSPHOT,MASKS,PSASTRO");
+
+        pmConfigDump(config, output->fpa, dump_file);
+    }
+
     // activate all files except PSASTRO.OUTPUT
     pmFPAfileActivate (config->files, true, NULL);
Index: trunk/psastro/src/psastroParseCamera.c
===================================================================
--- trunk/psastro/src/psastroParseCamera.c	(revision 23695)
+++ trunk/psastro/src/psastroParseCamera.c	(revision 23705)
@@ -45,13 +45,4 @@
     psFree (chips);
 
-    psString dump_file = psMetadataLookupStr(&status, config->arguments, "DUMP_CONFIG");
-    if (dump_file) {
-        pmConfigCamerasCull(config, NULL);
-        pmConfigRecipesCull(config, "PPIMAGE,PPSTATS,PSPHOT,MASKS,PSASTRO");
-
-        pmConfigDump(config, input->fpa, dump_file);
-    }
-
-
     psTrace("psastro", 1, "Done with psastroParseCamera...\n");
     return true;
