Have a look at %System.OBJ.Export():
https://irisdocs.intersystems.com/irisforhealth20192/csp/documatic/%25CSP.Documatic.cls
TESTING>s itm="*.GBL" TESTING>s file="C:\Projects\export_mm.xml" TESTING>d $System.OBJ.Export(.itm,.file,,.errors)
Having said that, since this is just for backups you might also consider just using the standard Online Backup utility which will backup all globals in the selected database(s) into a file:
- Log in to post comments