Previous Topic: JCLNeat—Additional REXX Calls and VariablesNext Topic: JCLNeat—Options by Statement Type


JCLNeat—Global String Replacement by Statement Type

JCLNeat provides a Global String Replacement (GSR) feature for any character string in the JCL. JCLNeat accepts replacement statements in the GSRCNTL DD statement. These statements let you specify strings of characters to search for in the JCL along with a verb specifying the action to be taken when the string is found. For example, you can use verbs REPL (replace) or DELT (delete).

These statements apply to all the JCL statements in the members being processed. This enhancement allows for a statement type to be specified on the GSR search string to limit the search to only that type of statement. For example, to replace the string 'SYSOUT=A' with 'SYSOUT=*' you would code the following GSR statements:

|SYSOUT=A|REPL|		Find SYSOUT=A and Replace with next line.
|SYSOUT=*|		Replacement value.

To limit the change to only DD statements, you can now add a statement type to the end of the search statement:

|SYSOUT=A|REPL|DD	Find SYSOUT=A on DD statement.
|SYSOUT=*|		Replacement with SYSOUT=*.

This enhancement affects only the JCLNeat global string replacement facility.

Note: Documentation changes are listed under "JCLNeat—Global String Replacement by Statement Type" in the Documentation Changes section of the following guide: