× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: Display screen in a program, not in batch.
  • From: booth@xxxxxxxxxxxx
  • Date: Fri, 6 Apr 2001 18:55:32 -0400

Everyone's solution was so right in the end.  I did as suggested and the 
program works nicely.  I don't use CL much but this program already had a 
'ZZZ' flag for silent running so it was easy to condition on "not silent 
running".  Thanks to everyone for an easy answer to my problem.
_______________________
Booth Martin
Booth@MartinVT.com
http://www.MartinVT.com
_______________________




Gwecnal@aol.com
Sent by: owner-midrange-l@midrange.com
04/06/2001 11:45 AM
Please respond to MIDRANGE-L

 
        To:     MIDRANGE-L@midrange.com
        cc: 
        Subject:        Re: Display screen in a program, not in batch.
In a message dated Thursday, 5 April 2001 11:36, booth@martinvt.com 
[mailto:booth@martinvt.com] writes:

> I've written an RPGIV program that uses a display file to get 
information 
> if the information is missing from a record.
> In one circumstance I wish to schedule the job to run in batch at night. 
I 
> have already ensured the information is not missing, so the display file 

> will not be needed.   However the batch job fails anyway.
> Is that what is supposed to happen, or is there another error I am not 
>  finding?
> Is there a way to resolve this issue without writing a second identical 
>  program sans display?

The program fails because it tries to open the display file upon startup. 
The
easiest way to fix this is to put the display file under user control (UC 
in 
position 71-72 for RPG III, UsrOpn keyword for RPG IV) and then explicitly
OPEN the display file just before using.  This will still fail in batch if 
the
OPEN ever executes, so you might want to consider having the calling
CL pass a parameter indicating whether the environment is batch or
interactive and don't do the OPEN if batch. (RtvJobA  TYPE(&Type) - 
0 = Batch, 1 = Interactive)
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to 
MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: 
david@midrange.com
+---




+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-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 thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.