× 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 thought this was pretty straight-forward.

Easy to read if you are used to MR stuff.



Thanx,

Nick



Nick Radich
Sr. Programmer/Analyst
EPC Molding, Inc.
Direct (320) 679-6683
Toll free (800) 388-2155 ext. 6683
Fax (320) 679-4516
nick_radich@xxxxxxxxxxxxxx



"Glenn Gundermann" <ggundermann@xxxxxx>
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
12/18/2007 08:01 AM
Please respond to
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>


To
"RPG programming on the AS400 / iSeries" <rpg400-l@xxxxxxxxxxxx>
cc

Subject
Re: Matching Records - End Product






Terri,

As long as nobody else ever has to maintain this, good for you.
The way it is now, it's unreadable.
The next person would have to re-write this, wasting time to test and thus
introducing the chance of creating a bug unnecessarily.

Glenn Gundermann
ggundermann@xxxxxx
(647) 272-3295

Hi,
I was the one who asked about the matching records. I have it in
place and it is working slick. The right tool for the job. Just for the
record, this is the core of my program. The subroutines call another
program that gets the detail and prints it.

FGLD490C1 IPE AF 62 DISK
FGLD490G1 ISE AF 70 DISK

IGLD490C1 AA 01
I 1 1 CTYPE
I P 2 4 0CYEAR M1
I P 5 6 0CPERD M2
I 7 16 CPFTC
I P 17 18 0CCSET
I 19 33 CPROD M3
I 34 35 CCLS
I P 36 40 CINV
I P 41 46 3CQTY
I P 47 54 2CCST
I P 55 62 4CNET
IGLD490G1 AB 02
I 1 1 GTYPE
I P 2 4 0GYEAR M1
I P 5 6 0GPERD M2
I 7 16 GPFTC
I P 17 18 0GCSET
I 19 33 GPROD M3
I 34 35 GCLS
I P 36 40 GINV
I P 41 46 3GQTY
I P 47 54 2GCST
I P 55 62 4GNET

C IF *IN01 = *ON or *IN02 = *ON
C*
C IF First = 'YES'
C EXSR Init
C ENDIF
C*
C SELECT
C WHEN *IN02 and *INMR and CCST = GCST
C* Do nothing. Item in both files & amounts match
C WHEN *IN02 and *INMR
C EXSR AmtDif
C WHEN *IN01 and NOT *INMR
C EXSR NMR01
C WHEN *IN02 and NOT *INMR
C EXSR NMR02
C ENDSL
C*
C ENDIF

Other than some D specs and the subroutines, that's it.

<===================================================>

Terri Harteau
Felker Brothers Corporation

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.