0

I am assigned with a task to check if a job is currently present in a job queue as scheduled job. The matching criteria is the name of the job - as long as the job name matches the specified one then it counts. So is there any simple way to return the list of scheduled jobs in a give job queue? Or is there any better way to accomplish my task?

God_of_Thunder
  • 753
  • 3
  • 20
  • 46

1 Answers1

2

The QUSLJOB API will allow you to retrieve this information.

There is more information in Chapter 13: Work Management APIs of the book APIs at work.

APIs at work

James Allman
  • 40,573
  • 11
  • 57
  • 70
  • How to use a user space? I have never tried that before. Can you give me some examples? – God_of_Thunder Feb 21 '12 at 12:08
  • QUSLJOB example: http://www.lovelady.com/api-samp/?id=3 Be sure to read the API documentation in the manual so you can start to learn how to match up the documentation to RPG examples. The documentation is generally written for the C programmer, so you'll need to translate the data types... – Buck Calabro Feb 21 '12 at 17:22