In this week’s APIs by Example, Carsten Flensburg has written a sample program that demonstrates the ERRC0200 data structure.
The downloadable code for this article implements a DSPRTGDTA command that, when run, will display the routing data of your job in the message line of your screen.
The Retrieve Job Information (QUSRJOBI) API is used to retrieve the routing data. If you wanted to, you could change this utility to display a different job attribute such as the job’s internal ID, run priority, or time slice, as this API returns all of this information.
Download the save file containing the source code.