|
I just started some automatic procedures to shut our system down and then do an unattended backup (Using the job scheduler). Try putting something like this in a CL program. It uses a QUSRTOOL's which you need. Use this at your own risk. I have tested it a few times and just started using it. It "reads" the WRKACTJOB and cancels all users in QINTER. You could also modify it to probably determine only those "in" MAPICS. PGM DCLF FILE(WRKACTP) ADDLIBLE LIB(TAATOOL) MONMSG MSGID(CPF2103) ADDLIBLE LIB(QUSRTOOL) MONMSG MSGID(CPF2103) CVTWRKACT READFILE: RCVF MONMSG MSGID(CPF0864) EXEC(GOTO CMDLBL(ENDPGM)) IF (&AJTYPE *EQ 'I') THEN(DO) IF (&AJSBS *EQ 'QINTER') THEN(DO) ENDJOB JOB(&AJJOBN/*N/&AJJOB) OPTION(*IMMED) + ADLINTJOBS(*ALL) ENDDO ENDDO GOTO READFILE ENDPGM: ENDPGM Kevin G. -----Original Message----- From: Jaring [mailto:pkchan@pd.jaring.my] Sent: Wednesday, June 28, 2000 8:49 PM To: MAPICS-L@midrange.com Subject: Re: To Mapics backup or not to Mapics backup? Pardon my ignorance. May I know, how one could use the "PRE" Backup Command to check and cancel the active job which has a lock on the MAPICS library? PK Chan ZF Steerings (M) Sdn Bhd Prai, Malaysia. ----- Original Message ----- <deleted> .. . > Be aware that the "PRE" Backup command runs prior to getting a dedicated > mode. The "POST" Backup command runs while in dedicated mode. . <deleted> +--- | This is the MAPICS Mailing List! | To submit a new message, send your mail to MAPICS-L@midrange.com. | To subscribe to this list send email to MAPICS-L-SUB@midrange.com. | To unsubscribe from this list send email to MAPICS-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: dshaw@spartan.com +--- +--- | This is the MAPICS Mailing List! | To submit a new message, send your mail to MAPICS-L@midrange.com. | To subscribe to this list send email to MAPICS-L-SUB@midrange.com. | To unsubscribe from this list send email to MAPICS-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: dshaw@spartan.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.