In a previous post I explained how I could extract the parts of the qualified job name using the LOCATE_IN_STRING scalar function. With the latest Technology Refreshes, IBM i 7.6 TR2 and 7.5 TR8, a number of Db2 for i scalar functions and a table function were added to make this easier. These are:
- JOB_NAME scalar function: Returns the job name
- JOB_NUMBER scalar function: Returns the job number
- JOB_USER scalar function: Returns the job user
- JOB_NAME_DETAILS table function: Returns all of the above
All of the above are found in the library SYSTOOLS.



