Greetings again, my friends.
In this Date subroutine I am working on (EOM, prior EOM, etc), DATE-IN and DATE-OUT and individual parameters for maximum flexibility.
I found that, since Natural checks for same length and format by default, I had to use ‘BY VALUE’ for the DATE-IN parm and ‘BY VALUE RESULT’ for the DATE-OUT parm in said Date subroutine.
I am permitting the user to code the same field/area for DATE-IN and DATE-OUT, but only if the FORMAT-OUT = FORMAT-IN (which is the default) since otherwise it gets complicated.
My problem is that to enforce this requirement I need to know whether the address for DATE-IN is the same as the address for DATE-OUT. Is there a way I can do so under the parameter circumstance described ?
Thanks again for your wonderful help.
EDIT: Unexpectedly, when I tested I found that if I don’t change DATE-OUT in the subprogram (say, format error), there is no result, no spaces even, moved to the Date out address in the calling program. This is good! This means I don’t have to enforce the edit described above. But I would still like to know if I can determine the Parameter address.