View previous topic :: View next topic
|
Author |
Message |
smijoss
Active User
Joined: 30 Aug 2007 Posts: 114 Location: pune
|
|
|
|
Hi all,
I need to know if there is way to find out if a particular job is running and find the details of it like use who submitted the job.
If there are duplicate jobs running in spool, i should only pick the one that is active. Does someone have this or is there any link to guide me on this task ? |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
The manual for your system management product (SDSF, IOF, (E)JES) will include a description of the Rexx interface. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Is there some reason to use Rexx when you can simply display the info you want online?
If you explain what you are really trying to accomplish, someone may be aboe to offer a suggestion. |
|
Back to top |
|
|
smijoss
Active User
Joined: 30 Aug 2007 Posts: 114 Location: pune
|
|
|
|
Thanks for the quick response Dick.
I was able to solve this be referring to previous posts on this forum.
Basically we have a job that authorizes another job. This job basically checks the user id of both jobs are different to allow to proceed.
I am half done (trying to find the variable owner id here); This is wat i have till now -
Code: |
/*REXX*/
RC=ISFCALLS("ON")
ISFOWNER = 'S0DPDCT7'
ISFFILTER = 'PHASENAME' EQ 'EXECUTING'
ADDRESS SDSF "ISFEXEC ST"
IF RC<>0 THEN EXIT 20
SAY JNAME.0
IF JNAME.0 < 1 THEN EXIT 20
DO I=1 TO JNAME.0
SAY 'JOB:' JNAME.I OWNERID.I
END
RC=ISFCALLS("OFF")
|
|
|
Back to top |
|
|
smijoss
Active User
Joined: 30 Aug 2007 Posts: 114 Location: pune
|
|
|
|
I am stuck in a stupid situation, When i execute the code directly using EX in front of member it works fine. The same code i run as a batch in JCL it gives a JOB not found error.
Am i missing anything ? |
|
Back to top |
|
|
smijoss
Active User
Joined: 30 Aug 2007 Posts: 114 Location: pune
|
|
|
|
solved .. Thanks |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Good to hear it is working - thank you for letting us know
d |
|
Back to top |
|
|
|