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


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.