CLSE call
Use the CLSE call to close an ASAM data set explicitly. This call is optional because AR/CTL closes the ASAM data set automatically during termination processing. An application program can issue the CLSE call to close an ASAM data set it has explicitly opened or in preparation for opening it for other processing. If the application program does not use checkpoint/restart support (and, therefore, does not issue the XRST call), the program should issue the CLSE call before it terminates.
The use of the CLSE call allows the application program to ensure that all records have been written successfully to the data set. If the application program terminates without a CLSE call, output records in buffers could experience write errors that the application program does not detect.
asampcb | The ASAM PCB. This PCB is defined in the ASB or PSB. |
---|