Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Sequential Retrieval and Update z/OS DFSMS Using Data Sets SC23-6855-00 |
|
To sequentially retrieve and update records in an indexed sequential data set, take the following actions:
Using the data set allocated in Figure 1, assume that you are to retrieve all records whose keys begin with 915. Those records with a date (positions 13 through 16) before the current date are to be deleted. The date is in the standard form as returned by the system in response to the TIME macro, that is, packed decimal 0cyyddds. Overflow records can be logically deleted even though they cannot be physically deleted from the data set. Figure 1 shows how to update an indexed sequential data set sequentially. Figure 1. Sequentially Updating an Indexed Sequential Data Set
Test DCBEXCD1 and DCBEXDE2 for error indication: Error Routines
|
Copyright IBM Corporation 1990, 2014
|