• Subject: Re: display screen in a program, but not used when program called frombatch
  • From: barsa@xxxxxxxxxxxxxxxxxxx
  • Date: Thu, 5 Apr 2001 09:33:49 -0400


Condition the open of the display file with an indicator (from RPG), and
open itself as needed yourself.  This should work.  Don't screw up and open
it in batch, because this will; cause the job to fail.

Al



Al Barsa, Jr.
Barsa Consulting Group, LLC

400>390

914-251-1234
914-251-9406 fax

http://www.barsaconsulting.com
http://www.taatool.com


                                                                                
                                         
                    tomh@simas.com                                              
                                         
                    Sent by:                   To:     MIDRANGE-L@midrange.com  
                                         
                    owner-midrange-l@mi        cc:                              
                                         
                    drange.com                 Subject:     Re: display screen 
in a program, but not used when program   
                                               called from batch                
                                         
                                                                                
                                         
                    04/05/01 08:57 AM                                           
                                         
                    Please respond to                                           
                                         
                    MIDRANGE-L                                                  
                                         
                                                                                
                                         
                                                                                
                                         





Can you condition the display file with an external indicator?  Your CL
would turn on the indicator if the job is interactive, turn it off if the
job is batch.


                                                                          
   booth@martinvt.com                                                     
   Sent by:                       To:        midrange-l@midrange.com      
   owner-midrange-l@midra         cc:                                     
   nge.com                        Subject:        display screen in a     
                          program, but not used when program called from  
                          batch                                           
   04/04/01 08:36 PM                                                      
   Please respond to                                                      
   MIDRANGE-L                                                             
                                                                          





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?

Thank you for your ideas, they are always welcome.

_______________________
Booth Martin
Booth@MartinVT.com
http://www.MartinVT.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.