If you enter the MATCH command but omit the text parameter, the RDFSCAN prompts you
for a match pattern.
To disable pattern matching, merely press the RETURN key at the prompt without entering a
pattern.
When entering a match pattern, you can use asterisks (*) and question marks (?) as wild-card
characters.
When pattern matching is enabled, the DISPLAY function is automatically enabled; when pattern
matching is disabled, the DISPLAY function is automatically disabled.
Table 9-1
shows the symbols RDFSCAN uses in pattern matching.
Table 9-1 Pattern Matching Symbols in RDFSCAN
Symbol
*
?
Text
Examples
The commands in this example specify scanning the entry-sequenced file, starting at record 1000,
for the first five records that contain the text "LOG FILE":
Enter the next RDFSCAN function you want: MATCH *LOG FILE*
File: $SYSTEM.SANFRAN.RDFLOG, current record: 6454,
last record: 9466, Pattern: *LOG FILE*
Enter the next RDFSCAN function you want: AT 1000
File: $SYSTEM.SANFRAN.RDFLOG, current record: 1000,
last record: 9466, Pattern: *LOG FILE*
Enter the next RDFSCAN function you want: LIST 5
Record number: 1134
2004/06/04 11:31:50 \LAB2 $Z048 709 Log File Opened or
Altered $SYSTEM.SANFRAN.RDFLOG
Record number: 1356
2004/06/04 13:22:51 \LAB2 $Z048 709 Log File Opened or
Altered $SYSTEM.SANFRAN.RDFLOG
Record number: 1519
2004/06/04 15:28:22 \LAB2 $Z049 709 Log File Opened or
Altered $SYSTEM.SANFRAN.RDFLOG
Record number: 3458
2004/06/04 18:17:53 \LAB2 $Z050 709 Log File Opened or
Altered $SYSTEM.SANFRAN.RDFLOG
Record number: 6577
2004/06/04 20:41:13 \LAB2 $Z050 709 Log File Opened or
Altered $SYSTEM.CTS.RDFLOG
File: $SYSTEM.SANFRAN.RDFLOG, current record: 6578,
last record: 9466, Pattern: *LOG FILE*
Enter the next RDFSCAN function you want:
NOLOG
The NOLOG command disables LIST command copying that was previously enabled by a LOG
command.
NOLOG
268
Entering RDFSCAN Commands
Meaning
Zero or more characters correspond to this position.
Any character can be in this position.
Text in this exact position must match.