× 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: Web apps on the AS/400
  • From: jpcarr@xxxxxxxxxxxx
  • Date: Sat, 17 Mar 2001 17:37:51 -0500


Leif said
<SNIP>
not really. Subroutines can have states too, either by having the state
information
in a parameter passed to them or simply by not deactivating themselves.
Maybe it is because you come from an RPG background that you can't see
this. If you have worked with COBOL you would be used to your subroutines
having state as that is the default. The classical case is a COBOL program
acting as a file I/O handler. The COBOL program encapsulates access to
a "file" which could be either an SQL table, a data area, a "normal"
database
file, or stored on another system. You call the "file I/O" handler with an
operation code (a "method"). It does the operation to its internal state
(its opened file) causing communication with the external world. This
is a technique used by COBOL programmer for at least the last 35 years.
The file managed by the COBOL program becomes an object, e.g.
a customer. There is absolutely no conceptual difference here.
<SNIP>

You're right Leif,   I teach this at my "External I/O routines using SQL"
session at COMMON.
Great technique

John




+---
| 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.