Re: How to check if a job has run?

2008-04-09 Thread Brian Westerman
As I previously indicated, the code I have doesn't need to go after every 
step, it just goes at the end of the JOB.  The output (JOB step CC's ) gets 
emailed to wherever you want.  You could use IEFACTRT exit as was 
indicated, the overhead is trivial (zero if you decide not to do anything) if 
you 
decide not to do anything, and if you wanted to use a JES exit the overhead 
again is trivial.

Brian

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: How to check if a job has run?

2008-04-08 Thread Michael Knigge

Rob,


(1) Use the IEFACTRT exit (job/step termination exit) - however this might be 
overkill for you.


Well, I need this functionality only for a few jobs and IEFACTRT would 
impact all submitted jobs... From this point of view - yes, it is overkill.




(2) Write an assembler program that always gets control as the last job step 
and process the JCT and SCT control blocks - (not sure about the GUPI status of 
these)


Well if nothing else would be possible I would do this.



(4) Post process the SMF data hunting for type-30 records using SORT or a 
freeware tool like DAF.


I would like to capture SYSLOG or SMF, but I don't know how to do it. 
Running a batch-Job for this would not fit my needs.


Bye,
Michael

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: How to check if a job has run?

2008-04-08 Thread David Logan
You say you would process JCT and SCT control blocks, but (a), it's a
last step in the job solution, and (b), what would you do with this
captured information? You claim that you don't want to write an I am done
file, so how does this help? What would you do with it that I am not
understanding?

If you are willing to write an I am done file, you can easily enough do
something like have it download its own JES log somewhere as a last FTP
step. It would write it back to (presumably) the submitting system, and it
would have all of the same information as if you were looking at it in the
JES job log. Return code information, SYSOUT output, CI JCL, etc.


David Logan
Manager of Product Development, Pitney Bowes Software, Inc.
http://centrus.com

4750 Walnut St, Suite 200
Boulder, CO  80301

W: (720) 564-3056
C: (303) 818-8222

-Original Message-
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf
Of Michael Knigge
Sent: Tuesday, April 08, 2008 1:55 AM
To: IBM-MAIN@BAMA.UA.EDU
Subject: Re: How to check if a job has run?

Rob,

 (1) Use the IEFACTRT exit (job/step termination exit) - however this might
be overkill for you.

Well, I need this functionality only for a few jobs and IEFACTRT would 
impact all submitted jobs... From this point of view - yes, it is overkill.


 (2) Write an assembler program that always gets control as the last job
step and process the JCT and SCT control blocks - (not sure about the GUPI
status of these)

Well if nothing else would be possible I would do this.


 (4) Post process the SMF data hunting for type-30 records using SORT or a
freeware tool like DAF.

I would like to capture SYSLOG or SMF, but I don't know how to do it. 
Running a batch-Job for this would not fit my needs.

Bye,
Michael

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: How to check if a job has run?

2008-04-08 Thread Howard Brazee
On 8 Apr 2008 07:18:26 -0700, [EMAIL PROTECTED] (David Logan)
wrote:

If you are willing to write an I am done file, you can easily enough do
something like have it download its own JES log somewhere as a last FTP
step. It would write it back to (presumably) the submitting system, and it
would have all of the same information as if you were looking at it in the
JES job log. Return code information, SYSOUT output, CI JCL, etc.

I've done this with some jobs, and with some job steps of jobs that I
didn't want to change return codes for.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: How to check if a job has run?

2008-04-08 Thread Gary Green
As other have written, writing something to walk the JCT/SCT chain will do as 
you ask.  Run the program as the last step in the job and you can do with the 
information as you wish.

I did something like this at a client location a few years ago.  The program 
was called RCWALKER and could execute anywhere in the job stream.  In most 
instances, it was the last step in a job.

It produced a couple of different reports based on what DD statements were 
present in the JCL.  One of the reports was nothing more than a flat-file, 
which contained a one-line detail entry for each step.  The information in the 
detail line was jobname, stepname, pgmname, return code or ABEND code and a 
couple of other pieces of information.

In my case, the file produced was emailed to interested parties.  In your case, 
you could read this file with another utility, which would make decisions based 
on the RC from each step in the job.


 On Tue Apr  8 16:59 , Michael Knigge [EMAIL PROTECTED] sent:

David,

 file, so how does this help? What would you do with it that I am not
 understanding?

Hmmm. yes... confusing... :)


What I don't want is an additional STEP after every STEP in my Job.

So for example:

STEP01: IEBCOPY
STEP02: MYTOOL -- writes STEP01 returned CC=0
STEP03: IEBCOPY
STEP04: MYTOOL -- writes STEP03 returned CC=4
STEP05: IEBCOPY
STEP06: MYTOOL -- writes STEP05 returned CC=4


I didn't knew that is is quite simple to use JCT and SCT to get the CC 
of every STEP in the job. So putting only one STEP at the end of the 
Job is somehow ok for me.


And I like this more than the FTP-Idea, because the FTP-Server may be 
down, the JCT/SCT will never ;-)


Bye,
Michael


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: How to check if a job has run?

2008-04-08 Thread Michael Knigge

David,


file, so how does this help? What would you do with it that I am not
understanding?


Hmmm. yes... confusing... :)


What I don't want is an additional STEP after every STEP in my Job.

So for example:

STEP01: IEBCOPY
STEP02: MYTOOL -- writes STEP01 returned CC=0
STEP03: IEBCOPY
STEP04: MYTOOL -- writes STEP03 returned CC=4
STEP05: IEBCOPY
STEP06: MYTOOL -- writes STEP05 returned CC=4


I didn't knew that is is quite simple to use JCT and SCT to get the CC 
of every STEP in the job. So putting only one STEP at the end of the 
Job is somehow ok for me.



And I like this more than the FTP-Idea, because the FTP-Server may be 
down, the JCT/SCT will never ;-)



Bye,
Michael

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: How to check if a job has run?

2008-04-07 Thread Michael Knigge

Hi,


If you have access, you can look in the system log.
Tools like OPC will capture the end of job event and then do something.


Well, I need to do this in a program. Could you bring me in the right 
direction and tell me how I can capture the SYSLOG?


My problem is that I submit a job and some time later I need to know if 
the job has run **AND** which was the return-code (best: condition code 
of every step).


My first idea was that I could write a loader-program: So if the 
program IEBCOPY needs to be executed I could code my JCL like this:


STEP01  EXEC PGM=MYLOAD,PARM='IEBCOPY'
...

Now MYLOAD loads/fetches IEBCOPY (-- see PARM) and executes it. after 
IEBCOPY returns, I could write the RC to a file. This would also be a 
solution (for my problem) even for multi-step jobs. But this approach 
doesn't work if IEBCOPY ABENDs, because MYLOAD would not get control 
anymore. Or is it also possible to cathc **ALL** ABENDs? Using LE I can 
only catch S0Cx



Bye  Thanks,
Michael

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: How to check if a job has run?

2008-04-07 Thread Michael Knigge

You can also check SMF.


Can SMF be monitored (and how?) or do I need to SMF to a file and 
parse the file?


Thank you,
Michael

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: How to check if a job has run?

2008-04-07 Thread Rob Scott
Michael

Off the top of my head I can think of the following options (outside of any job 
scheduling software solution).

(1) Use the IEFACTRT exit (job/step termination exit) - however this might be 
overkill for you.
(2) Write an assembler program that always gets control as the last job step 
and process the JCT and SCT control blocks - (not sure about the GUPI status of 
these)
(3) Write some basic sort of checkpointing pgm that gets control as last job 
step and writes data depending on success/failure of job and/or steps
(4) Post process the SMF data hunting for type-30 records using SORT or a 
freeware tool like DAF.


Rob Scott
Rocket Software, Inc
275 Grove Street
Newton, MA 02466
617-614-2305
[EMAIL PROTECTED]


-Original Message-
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of 
Michael Knigge
Sent: 07 April 2008 13:50
To: IBM-MAIN@BAMA.UA.EDU
Subject: Re: How to check if a job has run?

 You can also check SMF.

Can SMF be monitored (and how?) or do I need to SMF to a file and parse the 
file?

Thank you,
Michael

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
[EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at 
http://bama.ua.edu/archives/ibm-main.html

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: How to check if a job has run?

2008-04-07 Thread David Logan
He said he doesn't want another step at EOJ that writes a I have run
dataset. The problems with 1 and 2 are: What would you do with the
information you glean? You have to FTP it back or save it in a dataset.

The only two options I see so far is to submit a job that reads SYSLOG, or
submit a job that reads SMF.

David Logan
Manager of Product Development, Pitney Bowes Software, Inc.
http://centrus.com

4750 Walnut St, Suite 200
Boulder, CO  80301

W: (720) 564-3056
C: (303) 818-8222

-Original Message-
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf
Of Rob Scott
Sent: Monday, April 07, 2008 7:10 AM
To: IBM-MAIN@BAMA.UA.EDU
Subject: Re: How to check if a job has run?

Michael

Off the top of my head I can think of the following options (outside of any
job scheduling software solution).

(1) Use the IEFACTRT exit (job/step termination exit) - however this might
be overkill for you.
(2) Write an assembler program that always gets control as the last job step
and process the JCT and SCT control blocks - (not sure about the GUPI status
of these)
(3) Write some basic sort of checkpointing pgm that gets control as last job
step and writes data depending on success/failure of job and/or steps
(4) Post process the SMF data hunting for type-30 records using SORT or a
freeware tool like DAF.


Rob Scott
Rocket Software, Inc
275 Grove Street
Newton, MA 02466
617-614-2305
[EMAIL PROTECTED]


-Original Message-
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf
Of Michael Knigge
Sent: 07 April 2008 13:50
To: IBM-MAIN@BAMA.UA.EDU
Subject: Re: How to check if a job has run?

 You can also check SMF.

Can SMF be monitored (and how?) or do I need to SMF to a file and parse
the file?

Thank you,
Michael

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email
to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the
archives at http://bama.ua.edu/archives/ibm-main.html

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: How to check if a job has run?

2008-04-07 Thread Edward Jaffe

Michael Knigge wrote:

Hi,


If you have access, you can look in the system log.
Tools like OPC will capture the end of job event and then do something.


Well, I need to do this in a program. Could you bring me in the right 
direction and tell me how I can capture the SYSLOG?


My problem is that I submit a job and some time later I need to know 
if the job has run **AND** which was the return-code (best: condition 
code of every step).


My first idea was that I could write a loader-program: So if the 
program IEBCOPY needs to be executed I could code my JCL like this:


STEP01  EXEC PGM=MYLOAD,PARM='IEBCOPY'
...

Now MYLOAD loads/fetches IEBCOPY (-- see PARM) and executes it. after 
IEBCOPY returns, I could write the RC to a file. This would also be a 
solution (for my problem) even for multi-step jobs. But this approach 
doesn't work if IEBCOPY ABENDs, because MYLOAD would not get control 
anymore. Or is it also possible to cathc **ALL** ABENDs? Using LE I 
can only catch S0Cx


You could listen on the SSI and record EOT events for job step tasks.

--
Edward E Jaffe
Phoenix Software International, Inc
5200 W Century Blvd, Suite 800
Los Angeles, CA 90045
310-338-0400 x318
[EMAIL PROTECTED]
http://www.phoenixsoftware.com/

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: How to check if a job has run?

2008-04-07 Thread Ed Finnell
 
In a message dated 4/7/2008 7:50:05 A.M. Central Daylight Time,  
[EMAIL PROTECTED] writes:

My problem is that I submit a job and some time later I need to know if  
the job has run **AND** which was the return-code (best: condition code  
of every step).



The IVP's for System build have an IVP for SMF  that checks supplied jobs and 
returns codes. Couldn't you just point to a different  DSN and your SMF and  
it's  done?







**Planning your summer road trip? Check out AOL Travel Guides.
  (http://travel.aol.com/travel-guide/united-states?ncid=aoltrv000316)

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: How to check if a job has run?

2008-04-03 Thread Brian Westerman
I have a program (there are several available) that sends an email with the 
condition codes implemented as the last step of a job, and our scheduling 
product (SyzAuto) automatically adds that step for every job that it runs.  
One of the accounts that gets notified is a email task that accepts the email 
and posts the results of every job on a web page that is available to everyone 
(depending on their authority).

We also have another product (SyzCmdZ) which can perform the same 
functions but for all jobs, not just the ones with the extra step, but 
currently 
it only provides the Highest condition code, and not all codes from all steps.  

One of our other products (SyzSpool) spools all of the output to datasets and 
manages the retention of them, and it too provides the highest condition code 
via it's interface, although it currently doesn't send it to anyone:), it just 
keeps it and allows you to see it in the interactive OUTPUT interface.

Brian

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



How to check if a job has run?

2008-04-02 Thread Michael Knigge

All,

currently I check via the FTP-JES-Interface if a job that I've submitted 
 has run.


But if the job has beed purged from JES2 (i. e. via SDSF) in the 
meantime it is not listed by teh FTP-JES-Interface - of course.


Now I wonder if there is another way to check if a job was run (I guess 
there must be one - Tools like OPC can also do). Is there an JES2-Exit 
or something like that?



Thank you,
Michael

P.S.: And no, I don't want to put an additional STAP at the end of my 
job that puts a MY-JOB-HAS-RUN Dataset somewhere.


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: How to check if a job has run?

2008-04-02 Thread גדי בן אבי
If you have access, you can look in the system log.

Tools like OPC will capture the end of job event and then do something.

Gadi 

-Original Message-
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of 
Michael Knigge
Sent: Wednesday, April 02, 2008 1:51 PM
To: IBM-MAIN@BAMA.UA.EDU
Subject: How to check if a job has run?

All,

currently I check via the FTP-JES-Interface if a job that I've submitted
  has run.

But if the job has beed purged from JES2 (i. e. via SDSF) in the meantime it is 
not listed by teh FTP-JES-Interface - of course.

Now I wonder if there is another way to check if a job was run (I guess there 
must be one - Tools like OPC can also do). Is there an JES2-Exit or something 
like that?


Thank you,
Michael

P.S.: And no, I don't want to put an additional STAP at the end of my job that 
puts a MY-JOB-HAS-RUN Dataset somewhere.

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
[EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at 
http://bama.ua.edu/archives/ibm-main.html

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: How to check if a job has run?

2008-04-02 Thread David Logan
You can also check SMF.

David Logan
Manager of Product Development, Pitney Bowes Software
http://centrus.com

-Original Message-
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf
Of ??? ?? ???
Sent: Wednesday, April 02, 2008 4:56 AM
To: IBM-MAIN@BAMA.UA.EDU
Subject: Re: How to check if a job has run?

If you have access, you can look in the system log.

Tools like OPC will capture the end of job event and then do something.

Gadi 

-Original Message-
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf
Of Michael Knigge
Sent: Wednesday, April 02, 2008 1:51 PM
To: IBM-MAIN@BAMA.UA.EDU
Subject: How to check if a job has run?

All,

currently I check via the FTP-JES-Interface if a job that I've submitted
  has run.

But if the job has beed purged from JES2 (i. e. via SDSF) in the meantime it
is not listed by teh FTP-JES-Interface - of course.

Now I wonder if there is another way to check if a job was run (I guess
there must be one - Tools like OPC can also do). Is there an JES2-Exit or
something like that?


Thank you,
Michael

P.S.: And no, I don't want to put an additional STAP at the end of my job
that puts a MY-JOB-HAS-RUN Dataset somewhere.

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email
to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the
archives at http://bama.ua.edu/archives/ibm-main.html

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html