Jerry,

Compiled it with TGTRLS(V5R1M0) without ill effects. It seems the same (ill
effects) can't be said about your smokes :-)


Regards,

Luis Rodriguez
IBM Certified Systems Expert — eServer i5 iSeries
--



On Thu, Mar 24, 2011 at 2:20 PM, Jerry C. Adams <midrange@xxxxxxxx> wrote:

I have no idea what I "fixed" but it does compile. Obviously I did
overlook
a different error earlier. Musta been something I was smoking, Chuck.

Jerry C. Adams
IBM i Programmer/Analyst
I don't feel we did wrong in taking this great country away from [the
Indians]. There were great numbers of people who needed new land and the
Indians were selfishly trying to keep it for themselves. - John Wayne
--
A&K Wholesale
Murfreesboro, TN
615-867-5070


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of CRPence
Sent: Thursday, March 24, 2011 1:00 PM
To: midrange-l@xxxxxxxxxxxx
Subject: Re: CL Field Size Workaround

On 3/24/11 10:02 AM, Jerry C. Adams wrote:
I am trying to write a CL program using the following:

DSPFD FILE(SOMELIB/*ALL) TYPE(*MBR) +
OUTPUT(*OUTFILE) FILEATR(*PF) +
OUTFILE(QTEMP/REORGS)

The program will not compile because some of the numeric fields
exceed15.0.
Okay, that I understand. But is there a workaround? Heck, I don't
even need those fields.


The CPI0306 should not cause a compile failure, so perhaps something
else did? What release is being used? If the fields are unused, then
the compile should complete with only those as informational\diagnostic
of their redefinition as *CHAR versus *DEC [or a *INT variant].

Since v5r4 there is the ability to overlay the storage for a program
variable, over the variable declared for the field, if the field must be
referenced; STG(*DEFINED) DEFVAR(&MBRxxx 1).

I am unaware of any DECxxx() parameter [like DECRESULT() on
RUNSQLSTM], an OPTION() parameter specification, and there is no new
parameter special value for DCLBINFLD() like *DECMAX, that would
override the old behavior in order to enable larger decimal field
variable declarations from DCLF in any release; i.e. unaware of a means
to avoid the CPI0306 and its effect, such that the variable reflects the
field data type\precision\scale.

Regards, Chuck
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



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.