diff --git a/ComputingTasks.cc b/ComputingTasks.cc
index a56f953e7ece97f7511ba2440d47f18ec85b1e58..51d907f5ac05efa2db5c4a141e8040d7f6935e70 100644
--- a/ComputingTasks.cc
+++ b/ComputingTasks.cc
@@ -383,9 +383,9 @@ void
 DsampleStatement::writeOutput(ostream &output, const string &basename) const
 {
   if (val2 < 0)
-    output << "options_.dsample = " << val1 << ";" << endl;
+    output << "dsample(" << val1 << ");" << endl;
   else
-    output << "options_.dsample = [" << val1 << "; " << val2 << "];" << endl;
+    output << "dsample(" << val1 << ", " << val2 << ");" << endl;
 }
 
 VarobsStatement::VarobsStatement(const SymbolList &symbol_list_arg) :