Find matching words in JCL source code
Recipe ID
org.openrewrite.jcl.search.FindWordArtifact
org.openrewrite:rewrite-cobolSearch for JCL words based on a search term.
Usage
You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe org.openrewrite.jcl.search.FindWord --recipe-option "searchTerm=SYSOUT or sys.*" --recipe-option "exactMatch=true"If the recipe isn’t available locally, install it with:
mod config recipes jar install org.openrewrite:rewrite-cobol:2.20.3Options
| Name | Type | Description |
|---|---|---|
searchTermrequired | String | A word or regex pattern to find. By default the search term is case insensitive. e.g. SYSOUT or sys.* |
exactMatchrequired | Boolean | Search for a word based on an exact match of the search term. e.g. true |
Data tables
Structured output this recipe can produce.
- JCL word search resultsWords in JCL source code that match the search criteria.
org.openrewrite.jcl.table.JclWordSearchResult - Source files that had resultsSource files that were modified by the recipe run.
org.openrewrite.table.SourcesFileResults - Source files that had search resultsSearch results that were found during the recipe run.
org.openrewrite.table.SearchResults - Source files that errored on a recipeThe details of all errors produced by a recipe run.
org.openrewrite.table.SourcesFileErrors - Recipe performanceStatistics used in analyzing the performance of recipes.
org.openrewrite.table.RecipeRunStats