× 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: Subfiles in batch job
  • From: jerickson@xxxxxxx
  • Date: Mon, 18 Dec 2000 12:05:56 -0800

Title: RE: Subfiles in batch job

Dale,

I believe you can open a display file in batch as long as you've done an override to a unused device id prior to the open,... thus the subfile can be used as an array or work file.

Regards,
Jon A. Erickson
Sr. Programmer Analyst
800.COM Inc.
1516 NW Thurman St
Portland, OR  97209-2517
 
Direct: 503.944.3613
Fax: 503.944.3690
Web: http://800.com



-----Original Message-----
From: D.BALE@handleman.com [mailto:D.BALE@handleman.com]
Sent: Monday, December 18, 2000 10:07 AM
To: RPG400-L@midrange.com
Subject: Subfiles in batch job


First off, you cannot open a display file in batch.  Give it a UsrOpn (or UC)
and do a no-op Open.  I.e.:
     C   LRNLR             OPEN FILENAME

The subfile logic must be replaced with multi-occurrence data structures (my
preference) or arrays.  To keep the display file formats defined in the
compiled application, the I/O operations must also be no-op'd.

Those are the basics.  If you don't deal with multi-occurrence data structures
on a regular basis, it can be a little tricky at first.

Quite honestly, if this is not a monster app your coworker is converting, it
should probably be written from scratch.  I have used the above technique
twice in my 15+ years career, and it's not pretty.  But it can be a real
lifesaver when you've got a legacy, monolithic, mostly undecipherable
application that needs to be converted to batch by "yesterday".

Dan Bale
IT - AS/400
Handleman Company
248-362-4400  Ext. 4952

-------------------------- Original Message --------------------------
A coworker is converting an interactive RPG program to be used in a batch job.
To keep the changes as minimal as possible he would like to use the existing
display file and associated subfile logic, without the screen I/O of course.
 He
is receiving "session or device error" messages when trying to open the
 display
file in the batch job.  Is it possible to use a display file in batch?  If so,
what must be defined in the program and/or display file to make it work?

Thanks in advance!

Ed De Ryder
Ed_DeRyder@kleintools.com
+---
| 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 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.