|
Hi Wayne,
Or get the job name from the program status data structure. If it's an interactive job, the job name will be the name of the workstation. If it's batch, it will be the name of the job description it's running under.
You can submit a batch job with any name that you like: SBMJOB CMD(CALL MYRPGPGM) JOB(DSP01)Even if you go by the standard that "if it's a display name, it must be interactive" you still have a problem. If the name is "FOO" how do you know if that's the name of a workstation? You can name a workstation anything you like as well.
Many people have already suggested the correct technique of retrieving the job information. It's not difficult to do.
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.