How do I to get around the msg ' ENBS068E Search string length exceeds length of search area'

Document ID : KB000126412
Last Modified Date : 11/02/2019
Show Technical Document Details
Question:
When running a search and replace request, why do I get the error message:  ENBS068E Search string length exceeds length of search area 

14:29:11  ENBS001I  Statement Number 1
                     SEARCH ELEMENT '*'
                       FROM ENVIRONMENT 'PROD'
                            SYSTEM '*'
                            SUBSYSTEM '*'
                            TYPE '*'
                       FOR TEXT 'DSN=ABC'
                       FOR TEXT 'DSN=DEF'
                       OPTIONS SEARCH ENVIRONMENT ONLY
                               DATA TRUNCATION IS PROHIBITED
                               LIST DETAILS
                       .
 14:29:12  ENBS068E  Search string length exceeds length of search area
Answer:
Check type definition. Either the source length or the source compare from/to needs to be greater than the length of the search target. 
Additional Information:
Any elements with the short length are bypassed from the search.