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



I am going to counter this a bit - if you use data structures instead of KLISTs and you are using RDi, then hovering over the DS name will show you what the subfields are - no JITB for me!

And I imagine in debug that you can display the key values directly from the DS.

Hope I'm on the mark here!
Vern

On 8/18/2021 11:32 AM, dfreinkel@xxxxxxxxxxxxxxxxx wrote:
>From a debugging point of view,
(2) chain ( CustType : CustNbr ) Custfile ;

Is much easier to work with and trace values. Key lists have you bouncing
around like a jack in the box.

My 2 cents worth.

Darryl Freinkel
A4G
Telephone: 770.321.8562 Mobile: 678.355.8562

-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Roger
Harman
Sent: Wednesday, August 18, 2021 12:21 PM
To: RPG programming on IBM i <rpg400-l@xxxxxxxxxxxxxxxxxx>
Subject: RE: DS argument list for i/o vs. listing the arguments at the i/o
statement

I prefer the clarity of the individual fields.

That being said, I used %kds() extensively in a program that had about 10
level breaks. It made the code pretty easy to setup and follow.



-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of David
Gibbs via RPG400-L
Sent: Wednesday, August 18, 2021 8:52 AM
To: RPG programming on IBM i <rpg400-l@xxxxxxxxxxxxxxxxxx>
Cc: David Gibbs <david@xxxxxxxxxxxx>
Subject: Re: DS argument list for i/o vs. listing the arguments at the i/o
statement

On 8/18/21 8:24 AM, Alan Cassidy wrote:
(1) chain %kds( CustkeysDS )  Custfile ;

--versus-

(2) chain ( CustType : CustNbr )  Custfile ;
IMO, it depends on how complex the files key fields are.

If there a lot of keys, a data structure makes sense.

If it's less than 3, individual fields are good.

david

--
I'm riding in the American Diabetes Association's Tour de Cure to raise
money for diabetes research, education, advocacy, and awareness. You can
make a tax-deductible donation to my ride by visiting
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmideml.diab
etessucks.net%2F&amp;data=04%7C01%7C%7Cad9790a6a7cf4af6719408d962602839%7C84
df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637648987392305880%7CUnknown%7CTWFp
bGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7
C1000&amp;sdata=qqux3Nxp54HN9BVRvd%2BYRnZqj2yvb6Fb8LnLnY4Hz3s%3D&amp;reserve
d=0.

You can see where my donations come from by visiting my interactive donation
map ...
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmideml.diab
etessucks.net%2Fmap&amp;data=04%7C01%7C%7Cad9790a6a7cf4af6719408d962602839%7
C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637648987392305880%7CUnknown%7CT
WFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3
D%7C1000&amp;sdata=bhv5s5tPbfklY6zbp3uNyaAy6ROs7517wo6o3M%2FQGz8%3D&amp;rese
rved=0 (it's a geeky thing).
--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a
message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
visit:
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.midra
nge.com%2Fmailman%2Flistinfo%2Frpg400-l&amp;data=04%7C01%7C%7Cad9790a6a7cf4a
f6719408d962602839%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637648987392
305880%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6I
k1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=gNeHIx55gl929eeijZRNHJcU52BspGeetc4W9
IYpPUY%3D&amp;reserved=0
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchive.mid
range.com%2Frpg400-l&amp;data=04%7C01%7C%7Cad9790a6a7cf4af6719408d962602839%
7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637648987392305880%7CUnknown%7C
TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%
3D%7C1000&amp;sdata=sY4WVL1MltDzWpcIbBFxVIEXUQ%2F6FQ4HCKV9QBJYvyU%3D&amp;res
erved=0.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate link:
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Famazon.midr
ange.com%2F&amp;data=04%7C01%7C%7Cad9790a6a7cf4af6719408d962602839%7C84df9e7
fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637648987392305880%7CUnknown%7CTWFpbGZsb
3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000
&amp;sdata=4XPgeaDBc7KmrJx9%2Bxf8vxPhW%2BiVZDLJn2TYJfX%2BnmM%3D&amp;reserved
=0
--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a
message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate link:
https://amazon.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.