|
Hi Jeff - >For those of you already at V4R4 or V4R5, what RPG >improvements made the biggest impact for you? I >just want some suggestions on what to learn first. >And second. And third. Thanks. In addition to things already mentioned like %editc and evalr and H-spec compiler directives, one of the new things in V4R4 I use a lot is FOR/ENDFOR loops. My most common use is to code loops through arrays or MODS without having having to hardcode the number of elements to use a DO loop or having to do index initialization and incrementing to use a DOW or DOU loop. for x = 1 to %elem(array) ... endfor Another common use for me is a pair of nested FOR loops to sort a MODS. I never use DO loops anymore. Even where a DO loop and a FOR loop could accomplish exactly the same thing, I think the FOR loops are much more readable. Ken Southern Wine and Spirits of Nevada, Inc. Opinions expressed are my own and do not necessarily represent the views of my employer or anyone in their right mind. +--- | 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 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.