The following examples show how to write data collectively and independently when one process doesn't have data or does not need to write data.