infor.com
concierge
infor u
developer portal
Home
Groups
Lawson - Financials Product Customer Community [READ ONLY]
Job scheduler with parameters
unknown
Does anyone use a job scheduling program to write accounts payable checks? We need to know if you can pass parameters, like pay through date and payment date, to the scheduler.
Find more posts tagged with
Infor Lawson Financials Group - Discussion
Comments
unknown
Different enterprise job schedulers have different features - capabilites ( i.e., some products may have "x", others may not ). Usually, it is best to have a script ( written in the program - tool - flavor of your choice ) have the parameters, and have the scheduler execute the script. Another comment on enterprise schedulers is that they need to be evaluated in the context of all enterprise systems, ( vs. just the immediate need for your Infor Lawson systems ) that the scheduler would serve in order to realize all of the benefits of ( unified ) enterprise scheduling... Otherwise, it would be just another scheduler...
lbecker
We don't do it for for AP150, but we do it for other programs, such as AP198.
Generally:
Build a cobol shell of the target program
$ bldsh ProductLine SystemCode ProgramCode
Copy out the screen parameters section to include in a new programs WS.
For example:
003339 02 PRM-RUN-PARAMS-RED REDEFINES PRM-RUN-PARAMS.
003340 03 PRM-COMPANY PIC 9(04).
003341 03 PRM-NAME PIC X(30).
003342 03 PRM-INV-CUTOFF-DATE PIC 9(08).
003343 03 PRM-1099-REPORTABLE-YEAR PIC 9(04).
003344 03 PRM-COMPANY-FN PIC 9(04) BINARY.
003345 03 PRM-NAME-FN PIC 9(04) BINARY.
003346 03 PRM-INV-CUTOFF-DATE-FN PIC 9(04) BINARY.
003347 03 PRM-1099-REPORTABLE-YEAR-FN PIC 9(04) BINARY.
In the new program, paste the above section, rename fields as apprpriate.
In the new program, get the existing parameters
PERFORM 900-LOAD-JOB
Edit the target job parameters however you see fit, for example:
000650 MOVE WSDR-TO-DATE TO WSDR-FR-DATE
000660 MOVE "N" TO WSDR-EOM-ROLLOVER
000670 COMPUTE WSDR-MONTH-INCR = 0 - PRM-INTERVAL
000680 PERFORM 900-INCREMENT-DATE
000700 MOVE WSDR-TO-DATE TO AP198-INV-CUTOFF-DATE
When done, copy the new settings back in
000830 MOVE AP198-PARAMS TO JOBSTP-PARAMS (1).
Save the job
000900 PERFORM 900-CREATE-JOB.
If you're confident, save it and run it!
000900 PERFORM 900-CREATE-AND-SUBMIT-JOB.
You now have UNCHANGED source code from Infor with a custom program to dynamically manage the parameters. You only need to modify your custom program when Infor changes AP150.scr.
It has some limitations, e.g. 1-step jobs, but you can get fancy, too.
Otherwise, it works great!
lbecker
For enterprise schedulers, the easy way is to use
wtsubmit
An alternative is to write a shell around
jqsubmit
and poll the job status every minute until it's complete.
Quick Links
All Categories
Recent Posts
Activity
Unanswered
Groups
Help
Popular Tags
Infor Lawson Human Resources Group - Discussion
Infor Lawson Technology Group - Discussion
General Discussions
VISUAL - Enterprise General Discussions
Infor Lawson Supply Chain Management - Discussion
Process Automation (IPA) - General Discussions
Pegasus - Partner General Discussions
Infor Lawson Supply Chain Group - Discussion
Infor Lawson Financials Group - Discussion
Infor EPM Discussions