× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: Quickie Answer = Job Scheduler
  • From: Boris Goldenberg <bpcsguru@xxxxxxxxx>
  • Date: Wed, 24 Feb 1999 09:57:08 -0800 (PST)

I was going through similar headaches until I finally figured out how
to schedule automatic execution of cleanup jobs SFC990, ORD990,
SYS990, and many others.

I'm using the AS/400 built-in job scheduler.  Here is how I was able
to get programs to run outside of BPCS:

Step 1:  Create a driver CL called CLEANUP. Here is some sample code
from it:

              PGM                                                  
                                                                   
              DCL        VAR(&W0INTR) TYPE(*CHAR) LEN(1) VALUE('I')
              DCL        VAR(&W7PLST) TYPE(*CHAR) LEN(256) 
              DCL        VAR(&W7SLST) TYPE(*CHAR) LEN(256)            
                                                        
 /* Invoke program to setup *LDA  */                               
              CALL       PGM(SYS664)  PARM('SYS664')                  
                                                              
 /* SFC990D Cleanup FMA & FOD files                    */          
         /* Delete FMA & FOD without an FSO            */          
              CALL       PGM(SFC990B) PARM(&W0INTR &W7PLST &W7SLST)
         /* Reset Shop Order Header Hours              */          
              CALL       PGM(SFC973B) PARM(&W0INTR)                

Please note that a call to program SYS664 is necessary to avoid
getting 'SECURITY VIOLATION' messages.

Step 2:  Create a new entry in the job scheduler.  Make sure to press
F10 and use the BPCS *JOBD in the appropriate library.  That will
setup the job's library list.  Also make sure to use a user id which
will be authorized to all objects and files used in the job stream.

That's all there is to it.  A job may then be submitted and run just
like from within a BPCS environment.

Regards,

Boris Goldenberg

---MacWheel99@aol.com wrote:
>
> Back to the drawing board on the last effort, due to revised
understandings.
> 
> The job worked on-line, because BPCS Environment Library List etc.
setup.
> It worked when placed on scheduler then told to run immediately,
because
> Library List. of person who told it to run, got used.
> If did not work when the clock struck "Time to Execute" because we
needed to
> supply it with some of the setup that is in BPCSMENU.
> 
> Al
> +---
> | 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
> +---
> 

_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com

+---
| 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 thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.