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 Systems Administration
User Reports/Joblist Cleanup
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
Chris Radcliffe
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
5187
People Online:
Visitors:
192
Members:
0
Total:
192
Online Now:
New Topics
S3 Customization/Development
Cobol - Extract Current Time
4/24/2024 7:21 PM
How do you extract just the Current System Time in
Lawson Landmark
LPL INSTR Functions
4/5/2024 8:32 PM
I'm writing a simple report using the Create R
Infor SCM
Translating 856 to get the ~ REF^CN^ field
4/3/2024 8:24 PM
We are trying to get the tracking number which is
IPA/ProcessFlow
Sample XML file create Flow
4/3/2024 3:43 PM
Hello everyone, I am new to creating XML files
Lawson S3 HR/Payroll/Benefits
bn105 error message
3/26/2024 6:40 PM
I need to change some of the set ups in our Life I
IPA/ProcessFlow
IPA executing Job
3/13/2024 7:08 PM
New to the IPA world and was wondering, can an IPA
Lawson S3 HR/Payroll/Benefits
Life Age Reduction on benefits plans
3/12/2024 7:15 PM
For our optional life we have an age based coverag
Lawson S3 HR/Payroll/Benefits
BN53.1 Add-In
3/7/2024 3:31 PM
We are migrating to Solstice. They require a
Lawson Business Intelligence/Reporting/Crystal
Domain Name Change
3/5/2024 7:45 PM
Our domain name needs to change and was hoping I c
S3 Customization/Development
Cobol calling Shell Script
2/29/2024 1:27 PM
Has anyone created or modified a Lawson Cobol prog
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3288
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1348
Roger French
1311
mark.cook
1244
Forums
Unanswered
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
S3 Systems Administration
User Reports/Joblist Cleanup
Sort:
Oldest First
Most Recent First
You are not authorized to post a reply.
Author
Messages
TBonney
Veteran Member
Posts: 277
7/12/2011 11:39 AM
Does anyone know of the table names that list all reports/jobs created by each user, and whether or not they include a "last submit" date?
I know there are some users who create new jobs all the time, who have 4-5 year old jobs that have not been used in 3-4 years. I would like to maintain these user joblists & remove these obsolete or unused jobs from them, so that when they drill, the list displays quicker.
Has anyone ever done any joblist maintenance like this who might like to share their approach?
Thank you.
John Henley
Senior Member
Posts: 3348
7/12/2011 1:10 PM
I won't give you all the answers :)
But you should be able to find what you're looking for in the GEN database in the JOB/JOBSTEP/QUEUEDJOB tables.
You can also get some information from the JobServer servlet.
http://lawson.example.com...STATUS=completedjobs
TBonney
Veteran Member
Posts: 277
7/12/2011 2:07 PM
Thanks John...I'll take a look!
JimY
Veteran Member
Posts: 510
7/14/2011 10:46 AM
Hi John,
Your link is not working. I took a look at those tables because I am also interested in doing some cleanup, but they do not have any date to indicate how old they are. Is there a way to determine this? Thank you.
TBonney
Veteran Member
Posts: 277
7/14/2011 10:59 AM
JimY,
The link John provided works once you modify it to use your own sever info. However, it looks like this servlet only actually proviodes the last 30 days worth of data. Therefore, I am now working on querying the table names John also provided.
TBonney
Veteran Member
Posts: 277
7/14/2011 11:18 AM
John,
If a job exists on the JOB table, but that same job is not found on the QUEUEDJOB table, does that mean that the job has never been run (and therefore, can be deleted)? Also, does the QUEUEDJOB table only retain records within a certain date range (like one year)?
Thank you!
Jeff White
Veteran Member
Posts: 83
7/14/2011 1:37 PM
What I would do, is create a shell script that finds .prt files in the print directory older than a certain date.
ex. (Jobs that haven't run in over a year)
find /law90/lawson/print/*/*/*/*.prt -mtime +365 -exec ls -l {} \; > output.txt
/law90/lawson/print/lawson/ap150-10/1/AP150.prt
/law90/lawson/print/lawson/ap150-1000/1/AP150.prt
I would then use awk to get the values that I needed (username, jobname), and write that to a file. Then create a very simple cobol program to read in that file using the BATCH PROCESSING API's and delete the job(s). All automatic and running out of recdef.
Jeff
Venkat
Advanced Member
Posts: 22
7/29/2011 1:40 AM
To answer TBonney's questions:
QUEUEDJOB gets cleared if one runs deljobhst and chooses to delete completed jobs. So unless deleted by the user the records would remain forever. If a job exists in JOB table but not in QUEUEDJOB table you may conclude it was never run if you have not been cleaning the table up frequently. The columns actstartdate, stopdate would indicate when the job was run.
You are not authorized to post a reply.