Re: The RPG PTFs for the July TR-timed enhancements are available

Brian Parkins <[email protected]> Fri, 24 Jul 2026 14:30:14 +0100
Newsgroups gmane.comp.lang.as400.rpg
Message-ID <[email protected]>
Daniel, let me echo your appreciation for the great work done by Barbara 
and the team, though I am a little puzzled by your comment:

"But the new EXT(...) keyword is also great, since we don't have to 
refer to externally defined templates, which embeds the record format 
level id into the program and force a level check, even if you only a 
single field in a LIKE(...)."

Correct me if I am wrong, I don't believe the following would embed the 
Record Format or cause a Format Level Id check.

Dcl-DS ExternalDefn ExtName('EMPLOYEE') Template;
End-DS;

Dcl-S EmployeeSalary Like(Salary);

However, I agree the LIKE(*EXT) syntax is neater in that a single field 
is referenced instead of a subfield within an entire (template) Data 
Structure - a less cluttered compile listing!

Regards,
Brian.

On 24/07/2026 13:51, Daniel Gross wrote:
> Thanks Barbara,
>
> this TR-round you and your team made some really exciting changes.
>
> Of course, ASSERT-T and ASSERT-F are my favorites - not only because it was an idea of mine (thanks for supporting the idea "against" CAAC) - but more, because it helps to support a modern programming style. Good programs die early - that's what I preach to all my trainees - it's always better to go down in flames, than to produce wrong results.
>
> But the new EXT(...) keyword is also great, since we don't have to refer to externally defined templates, which embeds the record format level id into the program and force a level check, even if you only a single field in a LIKE(...).
>
> Anyway - great work - now I have to convince our operator to apply those PTFs as soon as possible.
>
> Thank you and kind regards,
> Daniel

-- 
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.

You can help support midrange.com by visiting https://donate.midrange.com and making a contribution.