Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
Infor / Lawson Platforms
S3 Security
Job Scheduler
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
Saef
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
5226
People Online:
Visitors:
694
Members:
0
Total:
694
Online Now:
New Topics
User Group Announcements
Carolina User Group Meeting
12/20/2024 3:15 PM
Date & Time: February 6, 2025, 8:30am - 4:00pm
S3 Systems Administration
ADFS certificate - new cert
12/3/2024 9:38 PM
The certificates on the windows boxes expired and
Lawson S3 HR/Payroll/Benefits
Post Tax Benefit Plan Table
11/14/2024 9:16 PM
Hi, totally new to Laswon. I have a repor
Lawson S3 Procurement
ED501 Error: Map 850 not supported by /law/c15vda/lawson/test10/edi/bin/laws_out_91
11/12/2024 3:47 PM
Tried runnning ED501 and getting the atathced erro
Lawson S3 HR/Payroll/Benefits
Error
11/6/2024 9:54 PM
When I try to enroll a retiree in 72.1 health plan
Infor ERP (Syteline)
Syteline: New Data Maintenance Wizard (Error) Need help
11/1/2024 4:24 PM
Hi, I need help with an error on syteline while us
Dealing with Lawson / Infor
Implementing Lawson v10 with Cerner Surginet, Case Cart Picking, and Quick Adds for the OR
10/29/2024 4:20 PM
Hi Everyone, I am wondering if there is any org
Lawson S3 HR/Payroll/Benefits
Canada Tax Calculation (Federal and Provincial) Issue
10/23/2024 5:00 AM
Initially, we had problem with CPP2 calculation is
Lawson S3 HR/Payroll/Benefits
CA Section 125 401k Plan
10/22/2024 10:13 PM
Does anyone have any recommendations on how to fac
S3 Systems Administration
Running AC120 deleted records from ACMASTER table
10/22/2024 3:40 PM
We recently ran the AC120 as normal and somehow it
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3291
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1372
Roger French
1315
mark.cook
1244
Forums
Filtered Topics
Unanswered
Unresolved
Announcements
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
Infor / Lawson Platforms
S3 Security
Job Scheduler
Please
login
to post a reply.
11 Replies
1
Subscribed to this topic
15 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
ImBack
Basic Member
Posts: 18
1/10/2013 2:59 PM
I know that a particular person can can view his/her own jobs in the job scheduler. I also know that you can look at ALL jobs or at specific people. I have a department head who wants to see all of the jobs under the payroll (PR) system code. Is this possible? Thanks a lot for checking.
John Henley
Posts: 3353
1/10/2013 3:18 PM
Off top of my head, I don't think this would be possible within job scheduler, since jobs can have multiple steps, which can cross different modules. However, if I remember correctly, job scheduler and print manager only allow you to view tokens you have access to, so it might work that way if the department head only has access to payroll jobs... Another option would be to query against various job tables in GEN (QUEUEDJOB/JOBSTEP, etc.) and then copy/load payroll job reports to his print manager...? I guess my real question would be ... what is the business case?
ImBack
Basic Member
Posts: 18
1/10/2013 3:44 PM
This particular department head is a micro-manager type who wants to know about ANY jobs in waiting or any jobs that have been running for more than say 3 hours. I've thought about the QUEUEDJOB table and doing queries against it but the easiest approach would be if they could just go into the jobscheduler themselves and see. We don't want her to have access to ALL jobs, only those under the PR system code.
TBonney
Veteran Member
Posts: 281
1/10/2013 5:16 PM
We run Windows/SQL and have a process that monitors the QUEUEDJOB table for waiting jobs and notifies certain personnel by email based on what jobs are waiting. We do this by way of a batch job, a SQL query and a series of vbscripts (one for each receiving department.
You could employ a similar process and modify the SQL query to only identify the PR jobs by using TOKEN LIKE 'PR%' as part of your selection criteria.
Just let me know if you'd like more details...tbonney@mvnhealth.com.
ImBack
Basic Member
Posts: 18
1/10/2013 7:00 PM
Thank you very much for your help. I will see if I can get that to work.
ImBack
Basic Member
Posts: 18
1/10/2013 9:16 PM
I've gotten the queries to work fine. Thanks! Now, as a secondary part of this, I need to identify jobs that have been running for more than 2 hours. Unfortunately, the QUEUEDJOBS table only has ACTSTARTDATE and ACTSTARTTIME but no elapsed time as you can see in the job scheduler. Does anyone know where it might be stored or how I can derive it?
Greg Moeller
Veteran Member
Posts: 1498
1/10/2013 9:38 PM
Why not take the ACTSTARTTIME compare it to the system time, and (provided) the job is still running (jqstatus -a) base your calculation off of that? Would that not work?
ImBack
Basic Member
Posts: 18
1/11/2013 5:07 PM
Thanks for answering. I have used a derivative of what you said and came up with the query below.
SELECT JOBNAME, ACTSTARTTIME, (TO_CHAR(SYSDATE, 'HH24MISS')),
FROM LAWGEN9.QUEUEDJOB
WHERE (R_STATUS IN ('00'))
AND (TO_CHAR(SYSDATE, 'HH24MISS') - ACTSTARTTIME > 20000)
--AND (ABS(ACTSTARTTIME - TO_CHAR(SYSDATE, 'HH24MISS') > 20000))
The problem I have now is that the query works fine as shown but when I substitute the line below it (commented out) for the line shown, I get a missing right parenthesis error for some reason. I have looked at this for an hour now and can't seem to see where the issue is because the paren count is fine. I have to use absolute value in the event I end up with a negative number.
John Henley
Posts: 3353
1/11/2013 5:17 PM
that's because your parentheses were off I think...
should be:
AND (ABS(ACTSTARTTIME - TO_CHAR(SYSDATE, 'HH24MISS')) > 20000)
Ryan Speight
Basic Member
Posts: 5
1/11/2013 5:33 PM
I think you mean --AND (ABS(ACTSTARTTIME - TO_CHAR(SYSDATE, 'HH24MISS')) > 20000)
ImBack
Basic Member
Posts: 18
1/11/2013 6:40 PM
PERFECT!! Thanks a lot guys. I need a new set of eyes!
Chesca
Veteran Member
Posts: 490
3/16/2018 12:23 PM
Would you be willing to share your SQL please? I have been trying to create script to monitor the jobs but it keeps going into needs recovery for some reason.
Please
login
to post a reply.