EconPapers    
Economics at your fingertips  
 

NESTPRESERVE: Stata module to preserve, inspect, and restore multiple nested dataset states

Hao Ma ()
Additional contact information
Hao Ma: NA

Statistical Software Components from Boston College Department of Economics

Abstract: nestpreserve provides a disk-backed, last-in–first-out stack of dataset-state checkpoints. It allows each Stata frame to save, inspect, and restore multiple analytical states while enforcing frame ownership and restoration order. The module automatically records checkpoint dimensions, variable and observation changes, dataset signatures, and transaction history. nesttransaction: runs a command and automatically rolls back its dataset changes after either success or failure. nestrecover and nestclear provide fail-closed recovery and cleanup after a Stata process ends, acting automatically only when exactly one intact abandoned checkpoint stack is identified and its originating process is proven dead. Ambiguous, live, corrupt, legacy, or otherwise unverifiable candidates are not modified automatically. The module manages the dataset state rather than the complete Stata session.

Language: Stata
Requires: Stata version 16
Keywords: data management, nested data states; dataset checkpoints; transaction rollback; data audit; crash recovery; frames (search for similar items in EconPapers)
Date: 2026-08-25
Note: This module should be installed from within Stata by typing "ssc install nestpreserve". The module is made available under terms of the MIT license (https://opensource.org/licenses/MIT).
References: Add references at CitEc
Citations:

Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/n/nestpreserve.ado
http://fmwww.bc.edu/repec/bocode/n/nestpreserve.sthlp
http://fmwww.bc.edu/repec/bocode/n/nestclear.ado
http://fmwww.bc.edu/repec/bocode/n/nestclear.sthlp
http://fmwww.bc.edu/repec/bocode/n/nestpreserve-process.jar
http://fmwww.bc.edu/repec/bocode/n/nestrecover.ado
http://fmwww.bc.edu/repec/bocode/n/nestrecover.sthlp
http://fmwww.bc.edu/repec/bocode/n/nestrestore.ado
http://fmwww.bc.edu/repec/bocode/n/nestrestore.sthlp
http://fmwww.bc.edu/repec/bocode/n/neststatus.ado
http://fmwww.bc.edu/repec/bocode/n/neststatus.sthlp
http://fmwww.bc.edu/repec/bocode/n/nesttransaction.ado
http://fmwww.bc.edu/repec/bocode/n/nesttransaction.sthlp
http://fmwww.bc.edu/repec/bocode/_/_nestpreserve_audit.ado
http://fmwww.bc.edu/repec/bocode/_/_nestpreserve_manifest.ado
http://fmwww.bc.edu/repec/bocode/_/_nestpreserve_process.ado

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:boc:bocode:s459874

Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php

Access Statistics for this software item

More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2026-09-02
Handle: RePEc:boc:bocode:s459874