I found the following help for OPEN DATASET in APPENDING mode:
If the file already exists, its contents are retained, and the system moves to the end of the file. If the file does not exist, the system creates it. If the file was already open, the system moves to the end of the file.
But, I am not sure what exactly will happen if the file is already open.
Please help me understand it better.