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



Ha! That was it.

That's only been discussed on this list a gazillion times or so. :)

Thanks!

On Fri, Dec 4, 2009 at 12:41 PM, Charles Wilt <charles.wilt@xxxxxxxxx>wrote:

Are you using /COPY or /INCLUDE?

The pre-compiler ignores /INCLUDE.

Charles

On Fri, Dec 4, 2009 at 11:47 AM, Jeff Crosby <jlcrosby@xxxxxxxxxxxxxxxx>
wrote:
I have the following in a copy member:

D*
D* Data structures for holding totals for DSR bonus calcs
D*

D* Template
D DSRBns_t DS Template
D Qualified
D YYYYMM 6S 0 Inz(0)
D Sales 11P 2 Inz(0)
D CGS 11P 2 Inz(0)
D GrsMgn 11P 2 Inz(0)
D GrsPct 5P 2 Inz(0)
D Cases 7P 0 Inz(0)
D Units 7P 0 Inz(0)
D CrdAmt 11P 2 Inz(0)
D NetMgn 11P 2 Inz(0)
D NetPct 5P 2 Inz(0)

D* All vendor totals
D LYT DS LikeDS(DSRBns_t) Inz(*LikeDS)
Last year
D CYT DS LikeDS(DSRBns_t) Inz(*LikeDS)
Current year
D DFT DS LikeDS(DSRBns_t) Inz(*LikeDS)
Difference

D* Major vendor totals
D LYM DS LikeDS(DSRBns_t) Inz(*LikeDS)
Last year
D CYM DS LikeDS(DSRBns_t) Inz(*LikeDS)
Current year
D DFM DS LikeDS(DSRBns_t) Inz(*LikeDS)
Difference

When compiled in an RPG SQL program (CRTSQLRPGI), I get SQL0312 in the
compile listing that they are not defined or unusable. Here's an example
of
how I'm using it:

Exec SQL
Select CurYYYYMM,
Coalesce(Sum(VDSALS), 0),
Coalesce(Sum(VDCGSL), 0),
Coalesce(Sum(VDGMGN), 0),
0,
Coalesce(Sum(VDCASH), 0),
Coalesce(Sum(VDUNSH), 0),
Coalesce(Sum(VDCDAM), 0),
Coalesce(Sum(VDNMGN), 0),
0
Into :CYM
From SSVNDDHS
Where VDSLNR = :srslnr and
VDYYMM = :CurYYYYMM and
VDVLVL <= :prmvnbrlmt;

Am I doing something wrong or illegal? Thanks.

--
Jeff Crosby
UniPro FoodService/Dilgard
P.O. Box 13369
Ft. Wayne, IN 46868-3369
260-422-7531
www.dilgardfoods.com

The opinions expressed are my own and not necessarily the opinion of my
company. Unless I say so.
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.


--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-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.