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



Jon,

Here's a portion of the dds for the file. CDIAG is 8 bytes character, CPOA is 1 byte character
.
.
.
A HDIAG1 R TEXT('DIAGNOSIS 1')
A REFFLD(CDIAG)
A HDIAG1POA R TEXT('DIAGNOSIS 1 POA')
A REFFLD(CPOA)
A HDIAG2 R TEXT('DIAGNOSIS 2')
A REFFLD(CDIAG)
A HDIAG2POA R TEXT('DIAGNOSIS 2 POA')
A REFFLD(CPOA)
A HDIAG3 R TEXT('DIAGNOSIS 3')
A REFFLD(CDIAG)
A HDIAG3POA R TEXT('DIAGNOSIS 3 POA')
A REFFLD(CPOA)
A HDIAG4 R TEXT('DIAGNOSIS 4')
A REFFLD(CDIAG)
A HDIAG4POA R TEXT('DIAGNOSIS 4 POA')
A REFFLD(CPOA)
.
.
.
A HDIAG18 R TEXT('DIAGNOSIS 18')
A REFFLD(CDIAG)
A HDIAG18POA R TEXT('DIAGNOSIS 18 POA')
A REFFLD(CPOA)
.
.
.

Or, the DBU Field Selection
.
.
.
(Text) (Name) (Type) (Len) (Loc)
Diagnosis 1 HDIAG1 A 8 471
Diagnosis 1 Poa HDIAG1POA A 1 479
Diagnosis 2 HDIAG2 A 8 480
Diagnosis 2 Poa HDIAG2POA A 1 488
Diagnosis 3 HDIAG3 A 8 489
Diagnosis 3 Poa HDIAG3POA A 1 497
Diagnosis 4 HDIAG4 A 8 498
Diagnosis 4 Poa HDIAG4POA A 1 506
Diagnosis 5 HDIAG5 A 8 507
Diagnosis 5 Poa HDIAG5POA A 1 515
.
.
.

Duane

-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Jon Paris
Sent: Wednesday, June 5, 2019 11:00 AM
To: RPG programming on IBM i <rpg400-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: PTF enhancements for RPG

Can you show an extract from the actual record layout Duane - I'm having trouble visualizing what you're trying to do.


Jon Paris

https://urldefense.proofpoint.com/v2/url?u=http-3A__www.partner400.com&d=DwICAg&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LifWsbmXTz4aXbMMEwOi1aJ3sWD5nsP_QI4reJ8MbDM&m=JI6AuOHsl1C5CupvdLbTjPpvqpxzdprmV8UNpBu30i8&s=yck65tgyEyMwPENT0r-7hd_mN1wSVgxguxW6rYqz_e0&e=
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.SystemiDeveloper.com&d=DwICAg&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LifWsbmXTz4aXbMMEwOi1aJ3sWD5nsP_QI4reJ8MbDM&m=JI6AuOHsl1C5CupvdLbTjPpvqpxzdprmV8UNpBu30i8&s=S02f-LCJS0nPhLdY32NvzgfaZYT9b4-D-5H7saf9k0I&e=

On Jun 5, 2019, at 8:55 AM, Duane Scott <dscott@xxxxxxxxxxx> wrote:

Barbara (or other excellent explainer),

This is a great feature. Except it's not working as I imagined it and as Jon Paris "exampled" it in his article in The Four Hundred: Guru: 7.4 Brings New RPG Goodies.

I've tried to work this one in on my 7.3 and am having a difficult time adjusting it to work.

My example tries to redefine a record format where 18 sets of an 8 byte character followed by a 1 byte character:

dcl-f history1 usage(*input); // rcdfmt(hst1)
dcl-ds ds_hst1 likerec(hst1) ;
dcl-ds ar_hst1 extname('HISTORY1' : 'HST1') qualified; diag1_set
like(hdiag1) samepos(hdiag1); dcl-ds set_diag dim(18)
samepos(hdiag1);
hdiag like(hdiag1);
hdiagpoa like(hdiag1poa);
end-ds;
end-ds;

when compiling, I get:
RNF3523: External description SET_DIAG for data structure is not found; data structure is ignored.

My outline (RDi) shows that SET_DIAG has the correct elements.

I did get it to work as advertised on a single field array.

Any suggestions?


Duane Scott

-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of
Barbara Morris
Sent: Wednesday, April 24, 2019 10:21 AM
To: rpg400-l@xxxxxxxxxxxxxxxxxx
Subject: Re: PTF enhancements for RPG

On 2019-04-23 6:06 PM, Jon Paris wrote:
The one thing this one can't do easily Joe is to create an array from non-contiguous fields - that you'll still have to use the DS/Overlay approach for.


If they were all the same distance apart, you could define a data structure array with all the repeated fields.

dcl-ds ds;
x char(5);
a1 packed(3);
b1 char(5);
a2 packed(5);
b2 char(5);
a3 char(5);
b3 char(5);
dcl-ds a_b_array dim(3) samepos(a1);
a like(a1);
b like(b1);
end-ds;
end-ds;

--
Barbara

--
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://urldefense.proofpoint.com/v2/url?u=https-3A__lists.midrange.co
m_mailman_listinfo_rpg400-2Dl&d=DwICAg&c=euGZstcaTDllvimEN8b7jXrwqOf-v
5A_CdpgnVfiiMM&r=LifWsbmXTz4aXbMMEwOi1aJ3sWD5nsP_QI4reJ8MbDM&m=JI6AuOH
sl1C5CupvdLbTjPpvqpxzdprmV8UNpBu30i8&s=nHqaH0AbnUvfnCCT_toHOqTCAx03wJ8
POsFMj4zG-Xo&e= or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://urldefense.proofpoint.com/v2/url?u=https-3A__archive.midrange.com_rpg400-2Dl&d=DwICAg&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LifWsbmXTz4aXbMMEwOi1aJ3sWD5nsP_QI4reJ8MbDM&m=JI6AuOHsl1C5CupvdLbTjPpvqpxzdprmV8UNpBu30i8&s=Sl9wv_KmG4BdhS78xCWmji8JMLDd2yli35lgtrl7Cec&e=.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support
https://urldefense.proofpoint.com/v2/url?u=http-3A__midrange.com&d=DwI
CAg&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LifWsbmXTz4aXbMMEw
Oi1aJ3sWD5nsP_QI4reJ8MbDM&m=JI6AuOHsl1C5CupvdLbTjPpvqpxzdprmV8UNpBu30i
8&s=Oum62RyljPhjlDdm_ndF2GFuoScHskdbeiAd3jmernE&e= by shopping at
https://urldefense.proofpoint.com/v2/url?u=http-3A__amazon.com&d=DwICA
g&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LifWsbmXTz4aXbMMEwOi
1aJ3sWD5nsP_QI4reJ8MbDM&m=JI6AuOHsl1C5CupvdLbTjPpvqpxzdprmV8UNpBu30i8&
s=NEfZG0iTkm_SJVGF04IBdVQRc-NRwrh9hdWrFBwIv6s&e= with our affiliate
link:
https://urldefense.proofpoint.com/v2/url?u=https-3A__amazon.midrange.c
om&d=DwICAg&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LifWsbmXTz
4aXbMMEwOi1aJ3sWD5nsP_QI4reJ8MbDM&m=JI6AuOHsl1C5CupvdLbTjPpvqpxzdprmV8
UNpBu30i8&s=Ue7Vw1CiUVI54wdkCgSIB_JYdfnDFsIW7wpsFUBickg&e=
CONFIDENTIALITY NOTICE: This electronic message transmission is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. If you have received this transmission, but are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this information is strictly prohibited. If you have received this e-mail in error, please contact NALC Health Benefit Plan at 703-729-4677 and delete and destroy the original message and all copies.
--
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://urldefense.proofpoint.com/v2/url?u=https-3A__lists.midrange.co
m_mailman_listinfo_rpg400-2Dl&d=DwICAg&c=euGZstcaTDllvimEN8b7jXrwqOf-v
5A_CdpgnVfiiMM&r=LifWsbmXTz4aXbMMEwOi1aJ3sWD5nsP_QI4reJ8MbDM&m=JI6AuOH
sl1C5CupvdLbTjPpvqpxzdprmV8UNpBu30i8&s=nHqaH0AbnUvfnCCT_toHOqTCAx03wJ8
POsFMj4zG-Xo&e= or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://urldefense.proofpoint.com/v2/url?u=https-3A__archive.midrange.com_rpg400-2Dl&d=DwICAg&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LifWsbmXTz4aXbMMEwOi1aJ3sWD5nsP_QI4reJ8MbDM&m=JI6AuOHsl1C5CupvdLbTjPpvqpxzdprmV8UNpBu30i8&s=Sl9wv_KmG4BdhS78xCWmji8JMLDd2yli35lgtrl7Cec&e=.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support
https://urldefense.proofpoint.com/v2/url?u=http-3A__midrange.com&d=DwI
CAg&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LifWsbmXTz4aXbMMEw
Oi1aJ3sWD5nsP_QI4reJ8MbDM&m=JI6AuOHsl1C5CupvdLbTjPpvqpxzdprmV8UNpBu30i
8&s=Oum62RyljPhjlDdm_ndF2GFuoScHskdbeiAd3jmernE&e= by shopping at
https://urldefense.proofpoint.com/v2/url?u=http-3A__amazon.com&d=DwICA
g&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LifWsbmXTz4aXbMMEwOi
1aJ3sWD5nsP_QI4reJ8MbDM&m=JI6AuOHsl1C5CupvdLbTjPpvqpxzdprmV8UNpBu30i8&
s=NEfZG0iTkm_SJVGF04IBdVQRc-NRwrh9hdWrFBwIv6s&e= with our affiliate
link:
https://urldefense.proofpoint.com/v2/url?u=https-3A__amazon.midrange.c
om&d=DwICAg&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LifWsbmXTz
4aXbMMEwOi1aJ3sWD5nsP_QI4reJ8MbDM&m=JI6AuOHsl1C5CupvdLbTjPpvqpxzdprmV8
UNpBu30i8&s=Ue7Vw1CiUVI54wdkCgSIB_JYdfnDFsIW7wpsFUBickg&e=

--
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://urldefense.proofpoint.com/v2/url?u=https-3A__lists.midrange.com_mailman_listinfo_rpg400-2Dl&d=DwICAg&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LifWsbmXTz4aXbMMEwOi1aJ3sWD5nsP_QI4reJ8MbDM&m=JI6AuOHsl1C5CupvdLbTjPpvqpxzdprmV8UNpBu30i8&s=nHqaH0AbnUvfnCCT_toHOqTCAx03wJ8POsFMj4zG-Xo&e=
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://urldefense.proofpoint.com/v2/url?u=https-3A__archive.midrange.com_rpg400-2Dl&d=DwICAg&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LifWsbmXTz4aXbMMEwOi1aJ3sWD5nsP_QI4reJ8MbDM&m=JI6AuOHsl1C5CupvdLbTjPpvqpxzdprmV8UNpBu30i8&s=Sl9wv_KmG4BdhS78xCWmji8JMLDd2yli35lgtrl7Cec&e=.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support https://urldefense.proofpoint.com/v2/url?u=http-3A__midrange.com&d=DwICAg&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LifWsbmXTz4aXbMMEwOi1aJ3sWD5nsP_QI4reJ8MbDM&m=JI6AuOHsl1C5CupvdLbTjPpvqpxzdprmV8UNpBu30i8&s=Oum62RyljPhjlDdm_ndF2GFuoScHskdbeiAd3jmernE&e= by shopping at https://urldefense.proofpoint.com/v2/url?u=http-3A__amazon.com&d=DwICAg&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LifWsbmXTz4aXbMMEwOi1aJ3sWD5nsP_QI4reJ8MbDM&m=JI6AuOHsl1C5CupvdLbTjPpvqpxzdprmV8UNpBu30i8&s=NEfZG0iTkm_SJVGF04IBdVQRc-NRwrh9hdWrFBwIv6s&e= with our affiliate link: https://urldefense.proofpoint.com/v2/url?u=https-3A__amazon.midrange.com&d=DwICAg&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LifWsbmXTz4aXbMMEwOi1aJ3sWD5nsP_QI4reJ8MbDM&m=JI6AuOHsl1C5CupvdLbTjPpvqpxzdprmV8UNpBu30i8&s=Ue7Vw1CiUVI54wdkCgSIB_JYdfnDFsIW7wpsFUBickg&e=


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.