× 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: COBOL ILE
  • From: Jim Essinger <esinger@xxxxxxxx>
  • Date: Sun, 27 May 2001 21:32:02 -0700

Greetings!

Modularize your application.  Break down the entire project so that each 
program (module) does one thing, and does it well.  Combine the programs 
(modules) that do common functions (such as account activity modules) into 
service programs.  Combine all file I/O functions into one service program 
with multiple modules, or all the functions for one file into a service 
program.  Then write the programs for your applications using the common 
modules.  This way, if you change the way a file is accessed, the way an 
activity functions (writing account history, or updating inventory) It is 
changed in only one place, and the entire system is updated easily.

Other modules can do functions such as interest calculations or any 
functions that are standard for an entire system.

Use the functions of ILE COBOL  that are unique to the AS/400, such as Date 
and Time data types, Intrinsic functions (date and time calcs being the 
ones I use the most), and EXTERNAL definitions of Files and field 
structures.  The EXTERNAL definition allows programs to share storage 
between modules with both modules having access to the data.  What is 
changed in one module is available in all others.  You can call one module 
that opens the file, another that formats the data, a third that fills in 
the special fields, and a 4th that writes the file.  Because the file 
structure shared between the programs by the EXTERNAL definition,  only one 
program needs to open and/or read the file.  All other modules have access 
to the data.  Field structures can be shared as well, allowing working 
storage to be shared between modules.  No fields need to be passed.


At 09:50 PM 5/25/2001 -0500, you wrote:
>Hello All,
>               I'm trying to find out more information on COBOL ILE on the 
> AS/400.  I'm not new to AS/400 COBOL but very new to ILE and some of the 
> concepts. (Binding directories, Service Programs, etc)  I have a project 
> that is coming up and I would love to do it in ILE but I need to get a 
> comfort level with it first.  I don't want to just write OPM's and then 
> make them ILE I don't believe you get as much bang for the buck that 
> way.  I would really appreciate any suggestions!!
>
>Thanks in advance
>
>Rick Smith
>

+---
| This is the COBOL/400 Mailing List!
| To submit a new message, send your mail to COBOL400-L@midrange.com.
| To subscribe to this list send email to COBOL400-L-SUB@midrange.com.
| To unsubscribe from this list send email to COBOL400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---END


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.