|
Matinvs works fine both in MI and in RPG/MI. You can retrieve the Pcs@ directly from QWCBT_JOB_INDEX. ----------------------------------------------- Then in RPG/MI you can code: d MatInvs PR ExtProc('_MATINVS1') d Mati_stack@ * value d Pcs@ * CallP FndInxEn(Inx_receiver§:idx§: inx_opt§:inx_arg§) CallP Matinvs1(Mati_stack@:Pcs@) d MatInvs2 PR ExtProc('_MATINVS2') d Mati_stack@ * value CallP Matinvs(Mati_stack@) To first call will retrieve the stack for job in Pcs@; the second retrieves the stack of your job. In MI you can code: FNDINXEN IDX_RECEIVER@,IDX@,IDX_OPT@,IDX_ARG@; CMPNV(B) IDX_OPT_RTNC,0/HI(.FND_IDX_Y); B .EXIT; .FND_IDX_Y:; MATINVS MAT_STACK@, PCS@; -------------------------------------------------- I can send complete code of both versions if you like. Giuseppe,
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.