× 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: Module source naming schemes
  • From: Jim Langston <jimlangston@xxxxxxxxxxxxxxxx>
  • Date: Thu, 11 Jan 2001 09:59:39 -0800
  • Organization: Pacer International

I looked at this scheme, and used to use a very similar one on a 
PC system I wrote and it worked well for there, but there were only
250 programs in that system.  ADDINV (Add Invoice), CHGINV (Change
invoice), DSPINV (Display Inventory), RPTINV01 (First Invoice Report
program), PRTINV (Print Invoice) etc...  

I thought about a similar  type of scheme for the AS/400 a few times, 
but I find that generally I am dealing with way too many programs for 
this to work successfully.

For Service Program Modules, however, I think it works well, sticking
with IBM's methodology, RtvNetF (Retrieve Network Files).  

But, for Module file names, I'm still at an impasse.  Right now I am
using CARTAGE (Modules dealing strictly with the Cartage application),
SYSTEM (System calls, such as the RtvNetF functions, publicly visible as
RNF_Open, RNF_Read and RNF_Close), and DATETIME (Fairly self explanatory).

Nothing has really suggested a better way yet.  These module source files
will have a number of sub-functions in them each.  Instead of having 5
source files for my Cartage modules, I have one.  Is this good/bad?  I makes
it easier to compile, IMO, and as only one person will be working on this
system at a time, I don't see any difficulties with source conflict.

My service programs I have are CARTAGE and GENERAL (General, of course,
contains both the SYSTEM and DATETIME modules).  Then one binding library
called CARTAGE, after the name of the library where this Binding Library is
in.

I am quite sure there is a better method out there, but so far nothing has
leapt out at me and grabbed my attention.

Regards,

Jim Langston

Jade Richtsmeier wrote:
> 
> For what it's worth, here's the idea we're going with:
> 
> We're using a prefixing system for our programs (Verb/object idea).
> 
> SRV = service programs, DBS = Database servers, WRK = Work with (subfile)
> programs, WDW = Pick List window programs, MTN = Maintenance programs.
> Following the prefix is the file or application that it refers to.  For
> example, if I have a customer info application (database file is CustInfo),
> here's a sample of how we'd name our 'stuff'.
> 
> Work with customer info = WrkCstInf
> Maintain Customer Info = MtnCstInf
> Customer File database server = DbsCstInf   (binder language source is same
> name except in QSRVSRC src file)
> 
> The prototype /copy is suffixed with a 'P' and any related D spec /copy (if
> needed) is suffixed with 'D'.
> 
> Prototype /copy = SrvDateP (this contains all the prototypes for all
> subprocedures in the module)
> 'D' spec /copy (if needed) = SrvDateD
> Subprocedures = USA2ISO, ISO2USA, MDY2USA, etc. (limit of about 10 per
> module)
> 
> At this time, when it comes to service programs, we're sticking with one
> module per service program.
> 
> We've just started to implement this idea, but so far it's working....for
> us, anyway.
> 
> Just another option to muddy the waters.....
> 
> ----- Original Message -----
> From: "Jim Langston" <jimlangston@conexfreight.com>
> To: <RPG400-L@midrange.com>
> Sent: Monday, January 08, 2001 5:10 PM
> Subject: Module source naming schemes
> 
> > I'm starting to build module source files, which I compile then
> > create a service program with.  Each module source file will have
> > a prototype file.
> >
> > What type of a naming scheme should I have?
> >
> > I have some functions that would serve one application called Cartage,
> > so I'm thinking along the lines of CARTAGEMOD and CARTAGEPR for those.
> > Or should I go with MODCARTAGE and PRCARTAGE ?
> >
> > And then I have some general utilities, such as my StampToHHMM and
> > StampToCYMD routines, which take date/time stamps as input and return
> > hours and minutes, or CCCCYYMMDD. Should I make a separate module for
> > these and call it, what, MODDATTIM or DATTIMMOD ?
> >
> > Then I have one called RtvNetF which will Retrieve a user's list of
> > waiting network files one at a time ('F' for first call, 'N' for next
> > call, 'C' to close and set on LR).  What would I call this one?  MODSYSTEM
> > or SYSTEMMOD ?
> >
> > And then I want to stick this whole thing in one service program, which
> > I would call, what, ICSSERVICE ?
> >
> > What naming schemes has everyone else settled on?  So far there are no
> > modules on the system at all, nor are there any service programs, so
> whatever
> > naming schemes I start with we will most likely go with.
> >
> > Any suggestions appreciated.
> >
> > Regards,
> >
> > Jim Langston
+---
| 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 ...

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.