JWAVE User Guide > JWAVE Wrapper API > DMSave Procedure
  

DMSave Procedure
Saves all data that is managed by the JWAVE Data Manager to a file.
Usage
DMSave, filename
Input Parameters
filename—A string containing the name of the file in which to save the data.
Keywords
Verbose—Prints information to screen about the data that is being saved.
Examples
This example code can be used in a shutdown routine (a JWAVE wrapper called initially by the client, or by JWAVE_SHUTDOWN). This example first removes (deletes) any data that has been stored in a domain named TEMP. Then, everything else is saved to a DM data file. That file may be restored (with DMRestore) for later use by another session.
; Enumerate all data stored in the TEMP domain
temp_data = DMEnumerateData('TEMP')
IF temp_data(0) NE '' THEN BEGIN
; Remove all data from TEMP domain
FOR i = 0, N_ELEMENTS(temp_data)-1 DO BEGIN
DMRemoveData, ['TEMP', temp_data(i) ]
ENDFOR
ENDIF
; Save everything else
DMSave, my_dm_data_file
See Also
DMCopyData,   DMRemoveData,   DMRestore,   DMStoreData

Version 3.6
Copyright © 2017, Rogue Wave Software, Inc. All Rights Reserved.