|
I don't do a lot of re-purposing of 5250 specific apps, but I have an
interesting option you could consider depending on complexity.
I did this once as an example for a customer on re-purposing an existing
display file app without carving out the logic into a separate program.
Take your existing 5250 interactive app and change it to pass parms in and
out of it. One controlling parm would be B/I for batch-web or interactive.
In the case of the (I)nteractive parm, assume running from interactive
5250 session and use standard display file logic.
In the case of the (B)atch-web parm, use the parms to drive input to the
program and possibly output of return data as well. In this case you would
make the open and write format statements conditioned so they only happen
when "I" is passed.
Now you have a program that can be called like a logic module or used as a
5250 interactive program without having to carve the logic into a second
program.
You just add a little complexity to the display file and parm handling.
Just an idea if you don't want to maintain logic in 2 places, although
there are always service programs or copy books for that part of it.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.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 on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.