Skip to content

How do I save data in row/column format to a data file

This example demonstrates saving a dataset to a data file.

In the solution shown below, a dataset is saved to a data file using “ddPersistDatasetToDataFile” command. If the data file exists in the scope of the Project, the entire content of that data file will be replaced with the data from the dataset.

Solution:

# Command Target Value
Persisting the dataset to a data file
1ddPersistDatasetToDataFile
InsurancePremiumCalculatorInsurance Premium Calculator(W)

Tips, Tricks, Gotcha's & Best Practices: 

  • You should use the same dataset name which is created by using "ddCreateDataSet" command.
  • You can optionally pass the status of the Data file along with the name. Allowed values for status are 'W'(WIP) and 'A'(Active). If the status value is not passed, the status is assumed to be 'A'(Active).
  • As a best practice, it is always advisable to define the variable names without any spaces and if you want to differentiate the words, use underscores.


Feedback and Knowledge Base