Using Search Element (ENBS1000) utility to scan for a numeric string across multiple types in a system.
COBOL types set with compare columns 7 through 72 and PARM types set with compare columns 1 through 80.
1) when Search is done without columns, getting text match in COBOL in columns 73 through 80. Want to eliminate these.
Ex.
//ENSSCLIN DD *
SEARCH ELEMENT *
FROM ENVIRONMENT ENV1
SYSTEM SYS1
SUBSYSTEM *
TYPE *
- - - - - - - - - - - - - - -
FOR TEXT '13340000'
- - - - - - - - - - - - - - -
OPTIONS LIST DETAILS
SEARCH ENVIRONMENT MAP
.
09:04:46 ENBS000I Element ELEMENT1
09:04:46 ENBS023I found at location ENV1/2/SYS1/ELEMENT1/COBOL1
09:04:46 ENBS015I COL 00000 ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9
09:04:46 ENBS016I LINE 01262 384300* ********************************************************** 13340000
09:04:46 ENBS016I LINE 01277 384300* ********************************************************** 13340000
09:04:46 ENBS016I LINE 01326 384300* ********************************************************** 13340000
09:04:46 ENBS016I LINE 01391 386800 AAAAAAA-MATCH-PLACE-TIME. 13590000
09:04:46 ENBS024I ELEMENT searched, 4 text matches found
2) When adding the columns for 1 to 72 to eliminate the columns with the false match. Receive Error that eliminates COBOL types from search.
Ex.
//ENSSCLIN DD *
SEARCH ELEMENT *
FROM ENVIRONMENT ENV1
SYSTEM SYS1
SUBSYSTEM *
TYPE *
- - - - - - - - - - - - - - -
FOR TEXT '13340000' IN COLUMNS 1 TO 72
- - - - - - - - - - - - - - -
OPTIONS LIST DETAILS
SEARCH ENVIRONMENT MAP
It is my understanding that the Search should automatically only search in the compare columns. This mean in example 1 that the false matches past column 72 should not be returned.
Is there a way to do this search across all types with different start positions but eliminate the entries past column 72?
Release : All supported releases
To resolve this, use the BOUNDS - bounds are 7 to 72 - identifies in concjuction with the "in columns".
Below is an example of the SEARCH SCL with Bounds: