|
Here is a part of a job we run multiple times during the day. The part shown is what is run once a day that edits and posts backflush transactions through CimPath, then closes shop orders. (Thanks to the members of this list that told me about SYS664, that made this program possible.) Bill Note: Cim610cb is a real BPCS program, 620cb is not, we made it. ================================================================= Call pgm(sys664) parm('SYS664') /* Security */ Rtvdtaara dtaara(ssasys (170 10)) rtnvar(&dftlib) CHKOBJ OBJ(&DFTLIB/CISAPRCOS2) OBJTYPE(*DTAARA) MONMSG MSGID(CPF9801) EXEC(DO) Crtdtaara dtaara(&dftlib/cisaprcos2) type(*char) + len(128) value(N) aut(*all) ENDDO Chgdtaara dtaara(cisaprcos2 (1 1)) value(Y) Call cim610cb parm('SAPRCOS2' 'CIMPATH' + '*STD' '01' '*YES' '*LIBL') /* Edit Trans*/ Call cim620cb parm('SAPRCOS2' 'CIMPATH' + '*STD' '01' '*YES' '*LIBL') /* Post Trans*/ Call pgm(sys011c) parm(&jobq &jobqlbr &jobd + &jobdlbr &outq &outqlbr &wtrnm &wtrlbr + &quehld ©a &jobpty &outpty &jobhld) Chgdtaara dtaara(*lda (20 1)) value('1') /* Runtime */ Chgdtaara dtaara(*lda (21 2)) value('01') /* From Fac. */ Chgdtaara dtaara(*lda (23 2)) value('01') /* To Fac. */ Chgdtaara dtaara(*lda (25 1)) value('1') /* Cls & Updt*/ Chgdtaara dtaara(*lda (412 10)) value('PRT01') /* Outq */ Chgdtaara dtaara(*lda (422 10)) value('*LIBL') /* Outqlbr */ Chgdtaara dtaara(*lda (432 1)) value('Y') /* Quehld */ Chgdtaara dtaara(*lda (443 2)) value('01') /* Copies */ Call cst900c /* Close SO's*/ ================================================================= MacWheel99@aol.com wrote: > Robert Noey > > Are you aware of SYS664. It sets up the local data area so that jobs may > > run outside of BPCS. The CL should include CALL PGM(SYS664) > PARM('SYS664'). > > Thanks - I found this RPG object. Apparently SYS664 was new at 4.0.04 > I did not find where its source was stored - I sometimes like to look at how > something works to add to my understanding - but sometimes security code is > hidden for security reasons. > +--- | This is the BPCS Users Mailing List! | To submit a new message, send your mail to BPCS-L@midrange.com. | To subscribe to this list send email to BPCS-L-SUB@midrange.com. | To unsubscribe from this list send email to BPCS-L-UNSUB@midrange.com. | Questions should be directed to the list owner: dasmussen@aol.com +---
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.