Index: trunk/pstamp/src/pstampfinish.c
===================================================================
--- trunk/pstamp/src/pstampfinish.c	(revision 16878)
+++ trunk/pstamp/src/pstampfinish.c	(revision 16933)
@@ -182,5 +182,5 @@
 }
 
-static bool finishRequest(psrfOptions *options, pstampRequestRow *pReq, psArray *stoppedJobs)
+static bool buildResultsFile(psrfOptions *options, pstampRequestRow *pReq, psArray *stoppedJobs)
 {
     // build results file in dsRoot/pReq->outFileset
@@ -238,5 +238,5 @@
     psString command = NULL;
 
-    psStringAppend(&command, "dsreg --add --type PSRESPONSE --product %s --fileset %s", 
+    psStringAppend(&command, "dsreg --add --type PSRESULTS --product %s --fileset %s", 
             options->dsProduct, fileset_id);
 
@@ -266,4 +266,14 @@
         psError(PS_ERR_UNKNOWN, true, "dsreg failed with status: %d", status);
         return false;
+    }
+
+    return true;
+}
+static bool finishRequest(psrfOptions *options, pstampRequestRow *pReq, psArray *stoppedJobs)
+{
+    if (pReq->resultsFile) {
+        if (!buildResultsFile(options, pReq, stoppedJobs)) {
+            return false;
+        }
     }
     // update the database setting the request state to stop
