The SCAN and SCAB commands search main storage for specified data. SCAN searches forward through storage, and SCAB searches backward. The command formats let you search from the current CORE display or from a specified location.
CORE=SCANrange,data
or
CORE=SCABrange,data
CORE=loc=SCANrange,data
or
CORE=loc=SCABrange,data
The search terminates when the first occurrence of the specified data is found or the number of bytes specified in the range have been scanned. Specify the range as a hexadecimal number or a decimal number followed by the letter T.
Examples
These examples show how to search for and replace data in main storage.
CORE='TABLE1'=SCAN1000T,C'STEVE'
The search for STEVE proceeds forward for a maximum of (decimal) 1000 bytes. If STEVE is not found a message displays.
CORE='TABLE1'=SCAN1000T,C'STEVE'=CHGC'CHRIS'
Note: This command only replaces the first occurrence of STEVE with CHRIS.
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|