IBM Support

Archiving all projects in DOORS database using DXL script

Question & Answer


Question

How to Archive all the projects in DOORS using DXL script?

Answer

You can use a DXL script to archive all the projects in DOORS database explorer and save them to a specified location.

The following script will search for all the projects in the Database explorer, archive the projects and save them to C:\\Temp:



    Project p                                                              

    int count = 0                                                                                                                              

    for p in database do {                                                

                print (name p) "\n"                                        

                string filename_and_path = "C:\\Temp\\"(name p)"_project.dpa"                                                      

                string project_name = (name p)                            

                string message = archive (project_name, filename_and_path, false)                                                                

                if (!null message) {                                      

                            ack message                                    

                            halt                                          

                }                                                                                                                  

                count                                                      

    }                                            


To run this script in the database explorer, click Tools -> Edit DXL -> paste the above script in the DXL input window and click Run.

The DXL output window will display all the projects present in the database.

Please note that this script will not search for deleted projects.

Disclaimer

All source code and/or binaries attached to this document are referred to here as "the Program". IBM is not providing program services of any kind for the Program. IBM is providing the Program on an "AS IS" basis without warranty of any kind. IBM WILL NOT BE LIABLE FOR ANY ACTUAL, DIRECT, SPECIAL, INCIDENTAL, OR INDIRECT DAMAGES OR FOR ANY ECONOMIC CONSEQUENTIAL DAMAGES (INCLUDING LOST PROFITS OR SAVINGS), EVEN IF IBM, OR ITS RESELLER, HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

[{"Product":{"code":"SSKR2T","label":"IBM Engineering Requirements Management DOORS"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF033","label":"Windows"}],"Version":"9.2;9.1;9.0;8.3","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
01 May 2020

UID

swg21395878