Creating a source code data query

Create a query to find resources with any given source code data value.

Before you begin

Before you can create a source code data query, your Engineering Workflow Management administrator must configure your server according to the following:
  • Your Jazz™ Team Server is installed and running, and the source code data collection service is turned on.
  • You have created a project area and user IDs that have at least the minimum required permissions.
    • In the Team Artifacts view, expand the My Team Areas node. Double-click your team area, and the Team Area editor opens. On the Process Customization tab in the Team Area editor, open the Configuration section, click Permissions, and make sure all Source Code Data actions are permitted for your ID.
Your administrator must also have configured your client according to the following:
  • Existing system definitions (data set definitions, language definitions, and translators) have been added to your project area and are associated with data sets in your Jazz source control manager.
  • Your stream has been selected for source code data scanning.

Third, if you want to edit the resources that result from the query, you must either load those resources, or load the repository workspace that contains them.

Finally, the source code data collection service must already have collected data for whatever resources you want to query. For information about the source code data collection service, see this topic: Source code data collection service.

Procedure

  1. From the Team Artifacts perspective, expand the Enterprise Extensions node: Project Area > Enterprise Extensions.
  2. Right-click the Source Code Data node and select New Query.
  3. Name your new source code data query.
  4. Select a stream on which this new query will run. Choose either All streams or indicate a particular stream.
  5. From the AND All must match section, click the green plus sign add conditions button. The Select Attributes window opens.
  6. In the Select Attributes window, expand the node that ends with the word dependency.
  7. Select language and click OK.
  8. In the language is field, select a language; for example, COB. All scanned files written in COBOL are displayed.
  9. Click Save, then Run.
  10. Review the query results in the Source Code Data view.
    Note: The results returned by the query only contain data that you are authorized to view.

video icon Video

Jazz.net channel
Software Education channel

learn icon Courses

IoT Academy
Skills Gateway

ask icon Community

Jazz.net
Jazz.net forums
Jazz.net library

support icon Support

IBM Support Community
Deployment wiki