|
==TRGHDR== DTRGBUFFER DS D TFILENAME 10 D TLIBNAME 10 D TMEMNAME 10 D TTRGEVENT 1 D TTRGTIME 1 D TCOMMITLOCK 1 D TFILLER1 3 D TCCSID 4B 0 D TFILLER2 4 D TFILLER3 4 D TOLDRECOFF 4B 0 D TOLDRECLEN 4B 0 D TOLDNULLOFF 4B 0 D TOLDNULLLEN 4B 0 D TNEWRECOFF 4B 0 D TNEWRECLEN 4B 0 D TNEWNULLOFF 4B 0 D TNEWNULLLEN 4B 0 D RESERVED 16 * DTRGBUFFERLEN S 4B 0 ==CUSTOMERK== D* D/COPY QRPGLESRC,TRGHDR D* D* Record format for New and Old Records D* D OldRecord E DS ExtName(CUSTOMERS) D Prefix(O) D Based(OldRecPtr) D* D NewRecord E DS ExtName(CUSTOMERS) D Prefix(N) D Based(NewRecPtr) D* D* Record Layout for New and Old Null Maps. D* D OldNullMap DS Based(OldNullPtr) D ONullFld 1 D NewNullMap DS Based(NewNullPtr) D NNullFld 1 D* C *ENTRY PLIST C PARM TrgBuffer C PARM TrgBufferLen C*C EVAL OldRecPtr = %ADDR(TrgBuffer) + TOldRecOff C EVAL NewRecPtr = %ADDR(TrgBuffer) + TNewRecOff
C*C EVAL OldNullPtr = %ADDR(TrgBuffer) + TOldNullOff C EVAL NewNullPtr = %ADDR(TrgBuffer) + TNewNullOff
C* C/EXEC SQLC+ SELECT COALESCE(MAX(CUSTID), 0) + 1 INTO :NCUSTID FROM CUSTOMERS
C/END-EXEC C* C EVAL NNullFld = *OFF C EVAL *INLR = '0' C RETURN Thanks! Kyle Goodwin
As an Amazon Associate we earn from qualifying purchases.
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.