You make this too hard
I think it should be as easy as
d Pr dateout d
d datein D
d datefmt 6
return variables from a subprocedure are on the PR/PI line.
This mailing list archive is Copyright 1997-2013 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact