|
Hi Martin,
Below is a snip of the relevant code.
HTH.
Larry Ducie
* Prototype for Activation Group Exit Procedure registration... D rg_AGEP pr Extproc('CEE4RAGE') D procedure * procptr const D rc 12a options(*omit)
* Prototype for decompose of Condition Token... D decompCond pr Extproc('CEEDCOD') D ufcInp 12a const D umsgSev 10i 0 D umsgNo 10i 0 D ucase 10i 0 D useverity 10i 0 D ucontrol 2a D ufacilityID 3a D uisInfo 4a D ufcOut 12a options(*omit)
* Prototype for Activation Group Exit Procedure... D proc_AGEP pr D uAgMark 10U 0 options(*nopass) D uReason 10U 0 options(*nopass) D uResult 10U 0 options(*nopass) D uUserRC 10U 0 options(*nopass)
*****************************************************************
* Data-structure ove std CEE-type API feedback condition token... D FeedBack ds 12 D sev 5u 0 D msgnbr 5u 0 D flags 1a D facid 3a D isi 10u 0
* Program variables... D msgSev s 10i 0 D msgNo s 10i 0 D case s 10i 0 D severity s 10i 0 D control s 2a D facilityID s 3a D isInfo s 4a ***************************************************************** * Register Activation Group Exit Procedure... C Callp rg_AGEP(%paddr(proc_AGEP):feedback)
* Decompose condition token (informational - for use in debug)... C Callp decompCond(feedback: C msgSev: C msgNo: C case: C severity: C control: C facilityID: C isInfo: C *omit)
* OUTPKTHDR... C callp QCMDEXC('CPYF FROMFILE(QTEMP/PKTHDR) C 'TOFILE(*LIBL/OUTPKTHDRE) C 'MBROPT(*ADD)': 200)
* OUTPKTDTL... C callp QCMDEXC('CPYF FROMFILE(QTEMP/PKTDTL) C 'TOFILE(*LIBL/OUTPKTDTLE) C 'MBROPT(*ADD)': 200)
* OUTCTNHDR... C callp QCMDEXC('CPYF FROMFILE(QTEMP/CTNHDR) C 'TOFILE(*LIBL/OUTCTNHDRE) * OUTCTNDTL... C callp QCMDEXC('CPYF FROMFILE(QTEMP/CTNDTL) C 'TOFILE(*LIBL/OUTCTNDTLE) C 'MBROPT(*ADD)': 200)
* OUTCTNSRL... C callp QCMDEXC('CPYF FROMFILE(QTEMP/CTNSRL) C 'TOFILE(*LIBL/OUTCTNSRLE) C 'MBROPT(*ADD)': 200)
* OUTCTNTRK... C callp QCMDEXC('CPYF FROMFILE(QTEMP/CTNTRK) C 'TOFILE(*LIBL/OUTCTNTRKE) C 'MBROPT(*ADD)': 200)
C on-error C endmon
* Allow the activation group to end normally... C Eval uResult = 0
***************************************************************** P E *****************************************************************
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.