Index: /trunk/pstamp/scripts/pstamp_new_request.sh
===================================================================
--- /trunk/pstamp/scripts/pstamp_new_request.sh	(revision 16877)
+++ /trunk/pstamp/scripts/pstamp_new_request.sh	(revision 16878)
@@ -46,5 +46,5 @@
 
 # Invoke the data store registration script
-echo $request_file chip n/a | dsreg -dsdir $DATA_STORE -add -type PSTAMP $PRODUCT $fileset_id
+echo $request_file\|chip | dsreg --add --type PSREQUEST --product $PRODUCT --fileset $fileset_id
 
 status=$?
Index: /trunk/pstamp/src/pstampfinish.c
===================================================================
--- /trunk/pstamp/src/pstampfinish.c	(revision 16877)
+++ /trunk/pstamp/src/pstampfinish.c	(revision 16878)
@@ -238,6 +238,6 @@
     psString command = NULL;
 
-    psStringAppend(&command, "dsreg -dsdir %s -add -type PSTAMP %s %s", 
-            options->dsRoot, options->dsProduct, fileset_id);
+    psStringAppend(&command, "dsreg --add --type PSRESPONSE --product %s --fileset %s", 
+            options->dsProduct, fileset_id);
 
     printf("command is: %s\n", command);
@@ -245,5 +245,5 @@
     // open a pipe to dsreg and set up the output fileset
     // Each line of input describes one of the files
-    #define DSREG_FORMAT_STRING "%s chip na\n"
+    #define DSREG_FORMAT_STRING "%s|%s\n"
 
     FILE *pipe = popen(command, "w");
@@ -255,9 +255,9 @@
 
     // First the results table that we built above
-    fprintf(pipe, DSREG_FORMAT_STRING, "results.fits");
+    fprintf(pipe, DSREG_FORMAT_STRING, "results.fits", "psresults");
 
     // Next each of the stamps
     for (int i = 0; i < numStamps; i++) {
-        fprintf(pipe, DSREG_FORMAT_STRING, (psString) psArrayGet(stamps, i));
+        fprintf(pipe, DSREG_FORMAT_STRING, (psString) psArrayGet(stamps, i), "pstamp");
     }
 
