|
While you avoid it like the plague I like and use both methods. On a recent assignment I was asked to not use the cycle because none of the new people understood it. I was able to replace 4 simple lines of I-specs (L1 & M1) with several layers of ReadE-loops in the calc specs. What is really a mainline of under 10 lines became 30+ lines. I'd agree that people avoid it like the plague, but that is fear of the unknown and has no basis in complexity. when you need to process a lot of records and performance is an issue UpdatePrimary with no K was, for many years, unbeatable. Lately I have heard that's no longer true but I do not have facts for either case. (Just testing ----------------------------------------------- Booth Martin ResoDirect, ext. 528 BMartin@ResoDirect.com Booth@MartinVT.com http://www.MartinVT.com ----------------------------------------------- -------Original Message------- From: rpg400-l@midrange.com Date: Wednesday, May 22, 2002 08:38:03 To: rpg400-l@midrange.com Subject: RE: Difference bet. Primary and Full procedural file. Dan, I take it the key phrase here is "fr those who know how to use it". I for one try to avoid cycle processing as the plague. As do most of the RPG programmers I know. Peter "Dan Bale" <dbale@samsa.com>@midrange.com on 22/05/2002 14:17:47 Please respond to rpg400-l@midrange.com Sent by: rpg400-l-admin@midrange.com To: <rpg400-l@midrange.com> cc: Subject: RE: Difference bet. Primary and Full procedural file. There *are* other reasons, Mike. <g> Level break processing, which is available only for primary file processing (i.e., using the RPG cycle), can be a godsend for those who know how to use it. While it is possible to write the code to do this (my favorite: JDEdwards S002 subroutine!), RPG's internal level break processing can save a lot of coding and mistakes. - Dan Bale (I am *NOT* "Dale" http://archive.midrange.com/midrange-l/200105/msg00281.html ) SAMSA, Inc. 989-790-0507 DBale@SAMSA.com <mailto:DBale@SAMSA.com> Quiquid latine dictum sit altum viditur. (Whatever is said in Latin seems profound.) -----Original Message----- From: rpg400-l-admin@midrange.com [mailto:rpg400-l-admin@midrange.com]On Behalf Of Mike.Collins@syan.co.uk Sent: Wednesday, May 22, 2002 7:18 AM To: rpg400-l@midrange.com Subject: Re: Difference bet. Primary and Full procedural file. A file designed as input primary (or indeed secondary) is read using the RPG cycle, that is you do not and indeed cannot issue your own reads or chains to that file. A file designed as fully procedural means that you control the reading of that file. In the very early days of RPG the cycle was the only way to process a file, and this function still remains in "modern" RPG, however it is rarely used these days, in fact most RPG programmers will have NEVER used it at all, though some people on this list still use it on occasion, as it is in theory quicker to read a file in using the cycle than to code it yourself. _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l or email: RPG400-L-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l. ______________________________________________________________________ The information contained in this communication is confidential and may be legally privileged. It is intended solely for the use of the individual or the entity to whom it is addressed and others authorised to receive it. If you have received it by mistake, please let the sender know by e-mail reply and delete it from your system. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance of the contents of this information is strictly prohibited and may be unlawful. Honda Europe NV is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt. _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l or email: RPG400-L-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
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.