Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Example 3: overlap processing z/OS DFSMS Macro Instructions for Data Sets SC23-6852-02 |
|
In this example, the CHECK macro is used to wait for completion
of a request before continuing to other processing. Access is asynchronous.
Do other processing:
Process the record:
After issuing the request, make sure that VSAM accepted it before you go on to other processing. When you have done as much other processing as you can, issue the CHECK macro. VSAM does not give you back control until the request is complete. If you do not want to issue CHECK until you know the request is complete, use the ECB parameter of the RPL macro or the IO=COMPLETE parameter of the TESTCB macro. After you issue the CHECK, VSAM immediately returns a code and takes an exit, if necessary. See RPL—Generate a request parameter list at assembly time and GENCB—Generate a request parameter list at execution time for information on the ECB parameter. |
Copyright IBM Corporation 1990, 2014
|