|
kd, We did this quite successfully when we had to implement a project where a miniumum of redevelopment of existing code was required. The intention was to run the same code but output to a non-standard device, not a work station. If your solution does not require the code that interacts with the display file, the simple solution is to make the display file an explicit open operation by coding it as user controlled. If you monitor for the error indicator on the open then this will be set on if the program runs in batch. Although an exception msg is still raised and appears in the job log, the pgm continues. Any code that relates to interaction with a display can therefore be condtioned by the error indicator. This requires a minimal code change for any pgm that is required for both interactive and batch environments. To extend this technique to output to an alternate device is more involved but we did achieve this. You can see that the major benefit here is that the environment in which the pgm runs can be changed without necessarily having to understand or reengineer existing legacy code that may contain arcane business rules. Cheers, Peter -----Original Message----- From: kd [mailto:kdziub@idom.com.pl] Sent: Saturday, July 22, 2000 8:00 PM To: RPG400-L@midrange.com Subject: Submiting an interactive job Hi everyone, Did anybody try with success to submit an display program in a batch ? Normally a break message 'Device *REQUESTER not found while opening the display file XXX' can be seen if the interactive application is running in batch. The application I am interested in just displays some texts on the screen and doesn't wait for the user input. So submiting it in batch seems quite reasonable. Thanks, K. Dziubinski This communication is confidential and may be legally privileged. If it is not addressed to you, you are on notice of its status. Please immediately contact us at our cost and destroy it. Please do not use, disclose, copy, distribute or retain any of it without our authority - to do so could be a breach of confidence. Thank you for your co-operation. Please contact us on (09) 356 5800 if you need assistance. +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | 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.