|
On 3/7/2011 11:50 AM, Jon Paris wrote:
On Mar 7, 2011, at 10:10 AM, rpg400-l-request@xxxxxxxxxxxx wrote:
If all you change in your RPG program is to ADD a HANDLER keyword, is there any way to retain one version of the source?
That is, a way you could run the same source with the same WORKSTN file using and not using a handler?
Two possibilities.
A) Two F-specs and user open based on detecting how you need to run.
Jon, wouldn't you also need to deal with each I/O operation too, to
choose which file or record to use?
Fhfile cf e workstn extdesc('FILE')
F rename(scr1:hscr1)
F handler('HDLR')
Ffile cf e workstn usropn
...
if useHandler;
exfmt hscr1;
else;
exfmt scr1;
endif;
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.