|
Bill, My suggestion to solve your problem would be to use an interesting but not wellknown feature of RPG : SPECIAL Files. This feature allows you to attach a user written program to a File specification. RPG will, then, call automatically the user written program each time an I/O operation is executed on the file. 2 steps are necessary : 1) Change the source of your interactive program to replace the WORKSTN specification by a SPECIAL specification. Some small additionnal changes are also necessary to adapt the program because of limitations of SPECIAL files (for example EXFMT are not supported and must be split in WRITE + READ operations codes). All the changes can be done automatically by a tool in order to create automatically the batch version of your program from the source of the interactive program (its better to not have to maintain 2 sources) 2) Write the user written program to provide the input that was entered interactively from ........ whatever you want. Hope this helps. Let me know if you want additional information. Regards. Bruno Client/server & AS/400 system consulting badin@csi.com * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This is the RPG/400 Discussion Mailing List! To submit a new * * message, send your mail to "RPG400-L@midrange.com". To unsubscribe * * from this list send email to MAJORDOMO@midrange.com and specify * * 'unsubscribe RPG400-L' in the body of your message. Questions should * * be directed to the list owner / operator: david@midrange.com * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
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.