IBM gave us the ACTIVE_JOB_INFO table function that can return this info.
See:
https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/IBM%20i%20Technology%20Updates/page/QSYS2.ACTIVE_JOB_INFO%28%29%20-%20UDTF

This requires a v7 release, I believe.

v7r3: Base
v7r2: SF99702 Level 5; Enhanced: SF99702 Level 9
v7r1: SF99701 Level 34; Enhanced: SF99701 Level 38

- Dan

On Thu, Jun 23, 2016 at 3:52 PM, Stone, Joel <Joel.Stone@xxxxxxxxxx> wrote:

I have seen two methods:


1) Pass it into the pgm as a parm

2) Use the PSDS and force an error as described in
http://www.itjungle.com/fhg/fhg050113-story02.html


Is there a better, cleaner, more intuitive method?


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.