Create a listing of all Lawson jobs

 6 Replies
 1 Subscribed to this topic
 27 Subscribed to this forum
Sort:
Author
Messages
GCAMM84
Basic Member Send Private Message
Posts: 11
Basic Member

We run on an IBMi V7R2.
We are attempting to clean out our scheduled/recurring jobs and change any that are set up to be run by user's profile name to a generic profile name so that when an employee leaves we don't have to fix these before we can delete the user profile.
Is there a way to get a listing of all of the scheduled/recurring jobs along with their parameters as well as who runs the job?

 

Thanks!

Greg Moeller
Veteran Member Send Private Message
Posts: 1498
Veteran Member
If you have access to LID

you can always do a "rngdbdump gen recurjob -f Username Jobname Jobqueue"  (without the quotes)

If no, you can write a Crystal report to dump same information.  The parameters are not that easy to get.

They exist in the gen database, but can be scattered in a field.

JimY
Veteran Member Send Private Message
Posts: 510
Veteran Member
In LID from the command line you can also run recrpt with the user field blank and it will give you a listing of all the users. You can then send it to a file.
GCAMM84
Basic Member Send Private Message
Posts: 11
Basic Member

Greg Moeller, is there a way to use this command in LID to view all jobs for all users instead of having to input a specific user or job?

 

JimY, I used the recrpt in LID and it didn't return any jobs even after pressing F3 to select "All Users". 

 

Thank you guys so very much for your help!!

Greg Moeller
Veteran Member Send Private Message
Posts: 1498
Veteran Member
GCAMM84: The command I gave you will do what you are asking for- The -f just specifies that fields that you want... you could dump the entire table if you wanted to by rngdbdump gen recurjob --- but that gives you every field in the table.
Jeff Shumate
Advanced Member Send Private Message
Posts: 31
Advanced Member
I like using jobdump in summary. as in jobdump -o Job

JimY
Veteran Member Send Private Message
Posts: 510
Veteran Member
I delete the user name and then select all users. That works for me. We are on environment version 10.0.9.