Running a Dispatch query from the command line.
How to run a Dispatch query from the command line? For example, I want to run a query on all new issues.
Create an xml file and add the following data.
<queryIssue issueDB = "DEPOT_NAME" useAlt = "false" useAltQuery = "false">
<condition>FID# == "STATE"</condition>
You will need to:
1. Substitute DEPOT_NAME with the name of the depot you are querying.
2. Substitute FID# with the status field id number.
3. Substitute STATE with the state of the Dispatch issue.
Here is the syntax to run the query from the command line.
If you are executing this command from the server run:
accurev xml < queryIssue.xml
From a client you can run:
accurev xml -l queryIssue.xml
For more information contact AccuRev Support