Author: Bill Woodger
Subject: Reply to: SORT - E15 and E35 using same user exit routine
Posted: Tue Oct 04, 2016 12:06 pm (GMT 5.5)
If you have duplicated code (but why, what is it doing at input that it also needs to do at output) you have CALL and COPY.
My concern is whether you get a new copy of the program or not, or whether it just fails (I've never thought to try it).
However, if the "mechanics" work (you'll have to try that) there would be a way to do it. There is a separate area of defined storage which is passed to the exits which allows inter-exit communication. Which is just what you want to do.
It is in that same chapter in the current manual for your version of DFSORT. Test in the E15 (set to indicate E15 has been entered). Test in the E35 (spots that the E15 as been entered, so it must be the E35).
So possible, if the mechanics work.
Subject: Reply to: SORT - E15 and E35 using same user exit routine
Posted: Tue Oct 04, 2016 12:06 pm (GMT 5.5)
If you have duplicated code (but why, what is it doing at input that it also needs to do at output) you have CALL and COPY.
My concern is whether you get a new copy of the program or not, or whether it just fails (I've never thought to try it).
However, if the "mechanics" work (you'll have to try that) there would be a way to do it. There is a separate area of defined storage which is passed to the exits which allows inter-exit communication. Which is just what you want to do.
It is in that same chapter in the current manual for your version of DFSORT. Test in the E15 (set to indicate E15 has been entered). Test in the E35 (spots that the E15 as been entered, so it must be the E35).
So possible, if the mechanics work.