Does anyone know if there is a way of knowing how many parameters have been sent by a calling program though a "call using ..." statement?
The goal is to extend the parameter list of a called program without impacting on calling programs.
For example, let's say there is a program that receives three parameters and I add a fourth one. Existing calling programs keep on passing three parameters and new ones pass four parameters.
The called program checks how many parameters have been passed and references the fourth one only in case four parameters have been passed (to avoid 0C4).
Environment is mainframe Z/OS.
Thanks for helping.
Pier
The goal is to extend the parameter list of a called program without impacting on calling programs.
For example, let's say there is a program that receives three parameters and I add a fourth one. Existing calling programs keep on passing three parameters and new ones pass four parameters.
The called program checks how many parameters have been passed and references the fourth one only in case four parameters have been passed (to avoid 0C4).
Environment is mainframe Z/OS.
Thanks for helping.
Pier