z/OS DFSMS Using Data Sets
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Programming Considerations

z/OS DFSMS Using Data Sets
SC23-6855-00

The typical actions of an EODAD routine are to:
  • Examine RPL for information you need, for example, type of data set
  • Issue completion messages
  • Close the data set
  • Terminate processing without returning to VSAM.
If the routine returns to VSAM and another GET request is issued for access to the data set, VSAM exits to the LERAD routine.

If a processing program retrieves records sequentially with a request defined by a chain of RPLs, the EODAD routine must determine whether the end of the data set was reached for the first RPL in the chain. If not, then one or more records have been retrieved but not yet processed by the processing program.

The type of data set whose end was reached can be determined by examining the RPL for the address of the access method control block that connects the program to the data set and testing its attribute characteristics.

If the exit routine issues GENCB, MODCB, SHOWCB, or TESTCB and returns to VSAM, it must provide a save area and restore registers 13 and 14, which are used by these macros.

When your EODAD routine completes processing, return to your main program as described in Return to a Main Program.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014