× 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: What bugs you about KLISTs in RPG IV?
  • From: "James W. Kilgore" <qappdsn@xxxxxxx>
  • Date: Thu, 17 Jun 1999 09:21:13 -0700
  • Organization: Progressive Data Systems, Inc.

Bruce,

This is exactly what we do.  Only the routine is in a /COPY member.

There are a couple more lines than in your example.   Like we set a return code 
so the
caller does not rely on an indicator.

I made mention to SAA in regard to different thread, but back in 1987 when it 
was
introduced we adopted a couple of it's concepts such as function isolation.  
This
pretty much forced us into heavy /COPY usage.  Well forced is a strong word.  
We chose
that over cut/paste 'cause we're lazy.

It has provided great benefits when a major overhaul has to be performed.

If the CHAIN operation code changes, we have a single /COPY member per file to 
change
then compile away.

Now that we are moving towards ILE, we are still sitting on the fence as to 
whether
this should be in a service program or not.
Regardless of how we exercise record retrieval, the request would stay isolated 
in the
/COPY.  It could just as well contain a CALLP instead of a CHAIN.

Any thoughts on using a service program for disk operations?




"R. Bruce Hoffman, Jr." wrote:

> <<snip>>
>
> Yes, there are probably quite a few who do it in rpg. Yeah, I can buy
> that:
>
>      c  readme      begsr
>      c  klist       chain     somefile   90
>      c              endsr
>
> *NOT*
>
>

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the RPG/400 Discussion Mailing List!  To submit a new         *
* message, send your mail to "RPG400-L@midrange.com".  To unsubscribe   *
* from this list send email to MAJORDOMO@midrange.com and specify       *
* 'unsubscribe RPG400-L' in the body of your message.  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.