I have made substantial improvements to the zoned/packed/numeric typeness
with the 9.5.1.2 release in line with what Barbara mentioned are the
non-obvious rules of RPG.

In general, do a program verify to see what the compiler actually thinks,
if it disagrees with the outline view, please open a PMR.
So far I don't see where the outline view is getting it wrong in the cases
mentioned on the list.

Thanks,


|
|
|Edmund Reinhardt
|
|Rational Developer for i Architect
|
|IBM
|p:
| 905 413 3125
|w:
| ibm.biz/rdi_hub e:
| edmund.reinhardt@xxxxxxxxxx
|







From: Jon Paris <jon.paris@xxxxxxxxxxxxxx>
To: Wdsci-L <wdsci-l@xxxxxxxxxxxx>
Date: 2018-02-15 11:21 AM
Subject: Re: [WDSCI-L] Like keyword not keeping format
Sent by: "WDSCI-L" <wdsci-l-bounces@xxxxxxxxxxxx>



Probably not - but you'll find it (and a bunch of other D-spec/dcl stuff)
in this piece:

https://urldefense.proofpoint.com/v2/url?u=http-3A__ibmsystemsmag.com_ibmi_developer_general_d-2Dspec-2Ddiscoveries_&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=xVh0JOaBkAaa2_VJvF7mVrroZMIB4ornEW2uKL1r-oM&m=taPPTCAjuBc0jYYqfSYTyZBFBk_vL3za5_05xqWo980&s=LMdpF18LuqxxlPCqcLT_HDJ_u7RtYgcxMcMcqlbH_kA&e=
<
https://urldefense.proofpoint.com/v2/url?u=http-3A__ibmsystemsmag.com_ibmi_developer_general_d-2Dspec-2Ddiscoveries_&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=xVh0JOaBkAaa2_VJvF7mVrroZMIB4ornEW2uKL1r-oM&m=taPPTCAjuBc0jYYqfSYTyZBFBk_vL3za5_05xqWo980&s=LMdpF18LuqxxlPCqcLT_HDJ_u7RtYgcxMcMcqlbH_kA&e=



Jon Paris

www.partner400.com
www.SystemiDeveloper.com

On Feb 15, 2018, at 10:58 AM, Buddy McClean <Buddy.McClean@xxxxxxxxxxxx>
wrote:

I'm sure all this was in a best practices class, sorry I missed them.

Jon Paris <jon.paris@xxxxxxxxxxxxxx> 2/14/2018 6:08 PM >>>
It would be better if the DS in question did not actually define the
field's type but rather just named it. That way it always picks up the
fields definition from the file.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

On Feb 14, 2018, at 6:10 PM, Buddy McClean <Buddy.McClean@xxxxxxxxxxxx>
wrote:

That looks like it. The prog that has it as zoned includes a /copy of a
DS in which OHINV is defined just like the file, zoned. So it changed from
the file definition version to packed, except that there is a DS that
reaffirms it being zoned so it does not change it to packed.

Verified by putting the DS in the program that changed it to packed, it
now does not change it to packed.

Agreed on the reliability of the outline.

Really surprised I have not encountered this problem before when
expecting parm data to maintain type using LIKE.

Thanks.



Buck Calabro <kc2hiz@xxxxxxxxx> 2/14/2018 4:29 PM >>>
On 2/14/2018 5:24 PM, Buddy McClean wrote:
What started this was passing a parm between 2 programs. Both using the
same file and field as the base of the LIKE. Both programs used I619 Like
(OHINV) - one program would pass I619 as zoned and the other would read it
in as packed, so the call would crash because of it.
I think of the Outline View as a work in progress. If it seems
snookered, I revert to the compiler listing.

With respect to the mis-matched parameter definition, make sure OHINV
isn't in a data structure, because that will override the Db2
definition.

--
--buck


https://urldefense.proofpoint.com/v2/url?u=http-3A__wiki.midrange.com&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=xVh0JOaBkAaa2_VJvF7mVrroZMIB4ornEW2uKL1r-oM&m=taPPTCAjuBc0jYYqfSYTyZBFBk_vL3za5_05xqWo980&s=4th377CML3QrtCQE3GQRtcZqSfwL8o3sygoUjJAwLKk&e=

Your updates make it better!

--
This is the Rational Developer for IBM i / Websphere Development Studio
Client for System i & iSeries (WDSCI-L) mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.midrange.com_mailman_listinfo_wdsci-2Dl&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=xVh0JOaBkAaa2_VJvF7mVrroZMIB4ornEW2uKL1r-oM&m=taPPTCAjuBc0jYYqfSYTyZBFBk_vL3za5_05xqWo980&s=4ASaRDS4bAWlH7FFt2VsHRv3WH539gQtRJI_zyRZVAc&e=

or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
https://urldefense.proofpoint.com/v2/url?u=https-3A__archive.midrange.com_wdsci-2Dl&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=xVh0JOaBkAaa2_VJvF7mVrroZMIB4ornEW2uKL1r-oM&m=taPPTCAjuBc0jYYqfSYTyZBFBk_vL3za5_05xqWo980&s=umQw-Vhc8GeaX7eplEBK9J77NLuu67cBRkTcYqiisHo&e=
.
--
This is the Rational Developer for IBM i / Websphere Development Studio
Client for System i & iSeries (WDSCI-L) mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.midrange.com_mailman_listinfo_wdsci-2Dl&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=xVh0JOaBkAaa2_VJvF7mVrroZMIB4ornEW2uKL1r-oM&m=taPPTCAjuBc0jYYqfSYTyZBFBk_vL3za5_05xqWo980&s=4ASaRDS4bAWlH7FFt2VsHRv3WH539gQtRJI_zyRZVAc&e=

or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
https://urldefense.proofpoint.com/v2/url?u=https-3A__archive.midrange.com_wdsci-2Dl&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=xVh0JOaBkAaa2_VJvF7mVrroZMIB4ornEW2uKL1r-oM&m=taPPTCAjuBc0jYYqfSYTyZBFBk_vL3za5_05xqWo980&s=umQw-Vhc8GeaX7eplEBK9J77NLuu67cBRkTcYqiisHo&e=
.

--
This is the Rational Developer for IBM i / Websphere Development Studio
Client for System i & iSeries (WDSCI-L) mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.midrange.com_mailman_listinfo_wdsci-2Dl&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=xVh0JOaBkAaa2_VJvF7mVrroZMIB4ornEW2uKL1r-oM&m=taPPTCAjuBc0jYYqfSYTyZBFBk_vL3za5_05xqWo980&s=4ASaRDS4bAWlH7FFt2VsHRv3WH539gQtRJI_zyRZVAc&e=

or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
https://urldefense.proofpoint.com/v2/url?u=https-3A__archive.midrange.com_wdsci-2Dl&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=xVh0JOaBkAaa2_VJvF7mVrroZMIB4ornEW2uKL1r-oM&m=taPPTCAjuBc0jYYqfSYTyZBFBk_vL3za5_05xqWo980&s=umQw-Vhc8GeaX7eplEBK9J77NLuu67cBRkTcYqiisHo&e=
.
--
This is the Rational Developer for IBM i / Websphere Development Studio
Client for System i & iSeries (WDSCI-L) mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.midrange.com_mailman_listinfo_wdsci-2Dl&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=xVh0JOaBkAaa2_VJvF7mVrroZMIB4ornEW2uKL1r-oM&m=taPPTCAjuBc0jYYqfSYTyZBFBk_vL3za5_05xqWo980&s=4ASaRDS4bAWlH7FFt2VsHRv3WH539gQtRJI_zyRZVAc&e=

or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
https://urldefense.proofpoint.com/v2/url?u=https-3A__archive.midrange.com_wdsci-2Dl&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=xVh0JOaBkAaa2_VJvF7mVrroZMIB4ornEW2uKL1r-oM&m=taPPTCAjuBc0jYYqfSYTyZBFBk_vL3za5_05xqWo980&s=umQw-Vhc8GeaX7eplEBK9J77NLuu67cBRkTcYqiisHo&e=
.

--
This is the Rational Developer for IBM i / Websphere Development Studio
Client for System i & iSeries (WDSCI-L) mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.midrange.com_mailman_listinfo_wdsci-2Dl&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=xVh0JOaBkAaa2_VJvF7mVrroZMIB4ornEW2uKL1r-oM&m=taPPTCAjuBc0jYYqfSYTyZBFBk_vL3za5_05xqWo980&s=4ASaRDS4bAWlH7FFt2VsHRv3WH539gQtRJI_zyRZVAc&e=

or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
https://urldefense.proofpoint.com/v2/url?u=https-3A__archive.midrange.com_wdsci-2Dl&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=xVh0JOaBkAaa2_VJvF7mVrroZMIB4ornEW2uKL1r-oM&m=taPPTCAjuBc0jYYqfSYTyZBFBk_vL3za5_05xqWo980&s=umQw-Vhc8GeaX7eplEBK9J77NLuu67cBRkTcYqiisHo&e=
.




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.