WRKACTJOB is designed to be an interactive display/print function. As such “retrieving” detail information from it requires ugly processing either to manipulate display records, perhaps with the DSM APIs or to process a spooled file with spool file APIs or after copying it to a database file.
Far easier is to use the List Job (QUSLJOB) API to handle a list of jobs in a format that is intended to be processed by a program.
If you have trouble with the API, this is a good site to post for help.
Tom
Discuss This Question: 2  Replies