× 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: RE: display screen in a program, but not used when program called from batch
  • From: "Mike Naughton" <mnaughton@xxxxxxxxxxxx>
  • Date: Thu, 05 Apr 2001 15:25:31 -0500

I suppose it all depends on what your needs are. We use a lot of
user-controlled opens in our stuff, and they work really well.  Our
typical report program can be opened as either an interactive or batch
program (we use a parm to tell it how it was opened). If interactive, it
pops a screen for the user to select his/her choices, and then it uses
QCMDEXEC to submit itself as batch and promptly ends. All the info
relevant to the choices is passed as parms, and of course it can also be
submitted directly if the parms are know (e.g. for end-of-period batch
processing). 

This method keeps everything in one source member, and I think it's pretty
slick. . . .


MIDRANGE-L@midrange.com writes:
>You can condition the display file F-spec with an "UPSI" switch, U1-U8.
>This has advantages over the user-control (UC) indicator:
>
>1) You don't have to include OPEN/CLOSE stuff for the file in your RPG
>prog.  All the display file operations will simply NO-OP.  No writes to
>a closed file errors, etc. Less to go wrong.
>
>2) You're going to test for batch/interactive mode in the C/L program
>anyway, so all it has to do is set the external indicator on/off via a
>SWS(XXXXXXXX) statement.
>
>3) Indicator purists will choke.
>
>-George Smith



Mike Naughton
Senior Programmer/Analyst
Judd Wire, Inc.
124 Turnpike Road
Turners Falls, MA  01376
413-863-4357 x444
mnaughton@juddwire.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 ...

Replies:

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.