Re: Why you shouldn't be afraid to use VARCHAR in RPGLE
Infodorado InfoDorado via RPG400-L <[email protected]>
| Newsgroups | gmane.comp.lang.as400.rpg |
|---|---|
| Message-ID | <[email protected]> |
I think elegant > efficient, when its close anyway. I once wrote a statement in BASIC for an IBM 23 that the compiler spit out as "too complex". I combined 23 lines of AS/400 RPG code into one complex Basic statement. at some point got good at rolling multiple lines into one statement in RPG. I even tried out doing logical files with a bunch of formats and multiple layers of formats derived from others, conditional formats, blah blah. It didn't take long to conclue that clarity should trump efficiency. Plus you might have to work on that code a year from now and have to puzzle out what you did. BUT keeping efficiency in execution always in mind. --Alan > On 12/11/2025 1:02 PM EST Javier Sanchez <[email protected]> wrote: > > > Do you think it's worth all those lines of codes against one single line? > Is that elegant? > Is that efficient? > Not sure what you wanted to show. All I'm saying is that, fewer lines of > code, efficient compiler code is better. > > JS > -- This is the RPG programming on IBM i (RPG400-L) mailing list To post a message email: [email protected] To subscribe, unsubscribe, or change list options, visit: https://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request-+hD5IHI5Xscn3HwCXmMcX9BPR1lH4CV8@public.gmane.org Before posting, please take a moment to review the archives at https://archive.midrange.com/rpg400-l. Please contact support-FMtJrHiV//lnDLsaKlm4mFaTQe2KTcn/@public.gmane.org for any subscription related questions.