How to: |
Some commands or syntax may have been eliminated or replaced with new syntax in a more recent release. Sometimes data source names or field names need to be replaced. Using option 3, you can replace a string.
When specifying a replacement string, you must include any leading and trailing blanks needed within the line. You must also be aware of the line length, as your replacement string may cause the line to be truncated if it extends the line too far.
This option is meant for single-word replacements, not complicated changes. For example, if you upgrade to a new release, you may want to replace the old high-level qualifier with a new high-level qualifier in your CLISTs or jobs.
You should run this option with the results going to the screen initially, to view the results and make sure the needed spaces are included and line lengths are respected. When you are satisfied with the results, you can re-run the utility to make the changes in the files.
The FOCUS Scanning Utility - Find/change Value screen opens, as shown in the following image.
The strings will automatically be placed within quotation marks, so you do not need to type the quotation marks as part of the strings. Note that initial spaces that are entered in the search string or replacement string are captured and affect the results.
For example, in the following image, the search string COUNTRY and the replacement string CAR (with an initial space) have been entered:
The FOCUS Scanning Utility - Target Files screen opens, as shown in the following image.
Currently, an LRECL of 80 and 160 are supported. If the value is different, contact Information Builders Customer Support Services for a Master File to use to read the scanned file.
If your allocations concatenate multiple PDSs, you must search these one at a time.
It is recommended that you enter N (No) for this option initially, so you can see if the results are as expected.
The following screen scans all members in USER1.FOCEXEC.DATA that start with the letters AS and does not write the results to a PDS:
A report is issued for each member that was selected. When all selected members have been searched, a FINISHED message is displayed For example:
FINISHED
|
Information Builders |