Previous Topic: ExampleNext Topic: Update a VSAM Record


Example

To scan up to ten records in the file ACCTS looking for the data string TEST in record positions 20‑23, and to begin the search with the record whose ID is NEWREC001, specify the following:

FILEID= ACCTS
FUNC= SRCH
RCID= C`NEWREC001'
DATA= C`TEST'
LOC 00020		(or 0013 for FORMAT=D)
SIZE= 0010		(or 000A for FORMAT=D)

Press Enter to display the data.