|
On 19-Mar-2015 08:46 -0500, Gary Thompson wrote:
On 19-Mar-2015 08:36 -0500, Diego Kesselman wrote:
On 2015-03-19 7:30 GMT-06:00 Rich Loeber wrote:
I think I'm having a brain cramp. Is there an easy way in a CL
program to find out what subsystem the program is currently
running in? I would have thought it would be available from
RTVJOBA, but no dice. I also looked at the values returned from
the QUSLJOB API but I don't see it there either.
Suggestions?
Maybe you can perform DSPJOBLOG with output and look for the data
you need
Good suggestion Diego:
*...+....1....+. [..]..4....+....5....+....6....+....7....+...[..]
5770SS1 V7R1M0[..] Display Job [..]
Job name . . [..]GTHOMPSON1 User . . . . . . : GTH[..]
Job descripti[..]BASIS2 Library . . . . . : SWI[..]
MSGID TYPE[..]SEV DATE TIME FROM PGM [..]
CPF1124 Info[..]00 03/19/15 05:55:10.338312 QWTPIIPP [..]
[..] Message . . . . : Job 171331/GTHOMPSO[..]
[..] 05:55:10 in subsystem QINTER in QSYS.[..]
[..] 05:55:10.
Sorry, this is going to come off harsh. I really mean it with love
though.
God save me from people that are so API phobic that believe every
solution is to generate a spool file, copy it to disk, and analyze
that!
Really, parsing out a substring that can shift positions in the line
based on how long the job name and/or user are, or what version of
the OS you are running, or... is easier than learning something new?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.