Pass by reference (C++ only) - IBM Documentation
https://www.ibm.com/docs/en/zos/2.4.0?topic=calls-pass-by-reference-c-only
You can go through this for better understanding of call by reference, there're some examples written too
Kartik
Kevin
Pavel
Captain