Re: How to Submit and monitor a Job?

2006-08-12 Thread Shmuel Metz (Seymour J.)
In [EMAIL PROTECTED], on 08/11/2006
   at 11:01 AM, Wade Curry [EMAIL PROTECTED] said:

I don't know if this is an installation-specific feature or not...
I'm able to add a parm to the jobcard like this:  NOTIFY=SYSUID

That's standard.

I will then get console messages telling me when it has completed
and what the CC was.  An actual userid can be used, of course. Using
the symbolic allows the message to go to whomever submitted the job.

No, the message will go to the userid of the job, which need not be
the userid of the submitter.

-- 
 Shmuel (Seymour J.) Metz, SysProg and JOAT
 ISO position; see http://patriot.net/~shmuel/resume/brief.html 
We don't care. We don't have to care, we're Congress.
(S877: The Shut up and Eat Your spam act of 2003)

--
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 Submit and monitor a Job?

2006-08-11 Thread Wade Curry
Michael Knigge([EMAIL PROTECTED])@Tue, Aug 08, 2006 at 07:08:36AM -0500:
 Steve,
 
 What is it you need to do once it ends? Do *you* just need to know that
 it has run? Do you need to do something once it runs? Do you need to
 know how it completed?
 
 Well, currenty I only need to submit the job and need the information that
 it ended.
 
 But I guess in the near future I need more: is it running, which step and
 how it ended/abended.
 
 I could use the internal reader, but the problem is that I don't get back
 the Jobid of the job and so I can't check (even not by looking into SDSF) if
 the submitted job has started.
 

I don't know if this is an installation-specific feature or not...
I'm able to add a parm to the jobcard like this:  NOTIFY=SYSUID
I will then get console messages telling me when it has completed
and what the CC was.  An actual userid can be used, of course.
Using the symbolic allows the message to go to whomever submitted
the job.

In addition,  using ROUTE XEQ will let me know when the job was
submitted, and when it is complete, using console messages once
again.

Those only provide the very minimal information that you need at
this point.  It's a starting place, though.

Wade Curry

--
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 Submit and monitor a Job?

2006-08-09 Thread Brian Westerman
Sure,

Send me an email offline and I'll send it to you.  I have several 
versions, so let me know which one you need.

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 Submit and monitor a Job?

2006-08-09 Thread Shmuel Metz (Seymour J.)
In [EMAIL PROTECTED], on 08/08/2006
   at 07:08 AM, Michael Knigge [EMAIL PROTECTED] said:

I could use the internal reader, but the problem is that I don't get
back the Jobid of the job

Write an assembler subroutine to submit the job via VSAM; ENDREQ will
return the job id.
 
-- 
 Shmuel (Seymour J.) Metz, SysProg and JOAT
 ISO position; see http://patriot.net/~shmuel/resume/brief.html 
We don't care. We don't have to care, we're Congress.
(S877: The Shut up and Eat Your spam act of 2003)

--
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 Submit and monitor a Job?

2006-08-08 Thread Michael Knigge
Steve,

What is it you need to do once it ends? Do *you* just need to know that
it has run? Do you need to do something once it runs? Do you need to
know how it completed?

Well, currenty I only need to submit the job and need the information that
it ended.

But I guess in the near future I need more: is it running, which step and
how it ended/abended.

I could use the internal reader, but the problem is that I don't get back
the Jobid of the job and so I can't check (even not by looking into SDSF) if
the submitted job has started.


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 Submit and monitor a Job?

2006-08-08 Thread Steve Comstock

Michael Knigge wrote:

Steve,



What is it you need to do once it ends? Do *you* just need to know that
it has run? Do you need to do something once it runs? Do you need to
know how it completed?



Well, currenty I only need to submit the job and need the information that
it ended.

But I guess in the near future I need more: is it running, which step and
how it ended/abended.

I could use the internal reader, but the problem is that I don't get back
the Jobid of the job and so I can't check (even not by looking into SDSF) if
the submitted job has started.



You could use APPC like the WebSphere Developer for zSeries
Job Monitor does. But it looks like a lot of work.

Kind regards,

-Steve Comstock

--
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 Submit and monitor a Job?

2006-08-08 Thread Gilbert Saint-Flour
On Tuesday 08 August 2006 08:08, Michael Knigge wrote:

 Well, currenty I only need to submit the job and need the
 information that it ended. ...

You can use the TSO STATUS command or roll your own; the JOBRLSE member 
in file 183 at http://gsf-soft.com/Freeware/ show you how to use the 
sub-system interface to check on the status of a job.

-- 

 Gilbert Saint-Flour
 GSF Software
 http://gsf-soft.com/
 mailto:[EMAIL PROTECTED]

--
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 Submit and monitor a Job?

2006-08-08 Thread Thompson, Steve (SCI TW)
-Original Message-
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of Michael Knigge
Sent: Tuesday, August 08, 2006 7:09 AM
To: IBM-MAIN@BAMA.UA.EDU
Subject: Re: How to Submit and monitor a Job?

snip
But I guess in the near future I need more: is it running, which step
and
how it ended/abended.

I could use the internal reader, but the problem is that I don't get
back
the Jobid of the job and so I can't check (even not by looking into
SDSF) if
the submitted job has started.
snip

You could send messages to yourself via the job itself. This is the
poor-man's notification system. You can FTP a message, or use the
messaging features. It all depends on how the two systems are
configured, and what software you already have running between them.

In the JCL you can use COND or IF/THEN/ELSE to let you know if the job
ABENDED.

Later,
Steve Thompson

--
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 Submit and monitor a Job?

2006-08-08 Thread Brian Westerman
I have a assembler program that can be added as the last step of the JOB 
which will send you an email (via SMTP) with the step return codes (and 
abend codes if applicable) and the start, end and soem other additional 
information.

I also have a facility that I wrote, that will do this same thing without 
the need for any extra steps in the JOB, it's in beta testing right now, 
and we will sell it for $2,500 per site license when it's ready.

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 Submit and monitor a Job?

2006-08-08 Thread Thomas Kern
I used to have such a program but I misplaced it over the years. Can you share
your 'last-step' program? 

/Tom Kern
/301-903-2211

--- Brian Westerman [EMAIL PROTECTED] wrote:

 I have a assembler program that can be added as the last step of the JOB 
 which will send you an email (via SMTP) with the step return codes (and 
 abend codes if applicable) and the start, end and soem other additional 
 information.
 
 I also have a facility that I wrote, that will do this same thing without 
 the need for any extra steps in the JOB, it's in beta testing right now, 
 and we will sell it for $2,500 per site license when it's ready.
 
 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
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.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 Submit and monitor a Job?

2006-08-07 Thread Charles Mills
There are probably better answers, but depending on what you mean by
monitor, you *may* be able to do the job with FTP. Look at the section of
the manual on submitting jobs. The TCP/IP address of this machine is
always 127.0.0.1

Charles



-Original Message-
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf
Of Michael Knigge
Sent: Monday, August 07, 2006 10:15 AM
To: IBM-MAIN@BAMA.UA.EDU
Subject: How to Submit and monitor a Job?


All,


I need to submit a Job and monitor it (at least wait for it to end). Is 
there an official API? I've heard about the SAPI, but if I got it right 
it uses a SSI which I can't use/access from C (-- I need a C solution).

Thanks for any help,
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 Submit and monitor a Job?

2006-08-07 Thread Thompson, Steve (SCI TW)
What is it you need to do once it ends? Do *you* just need to know that
it has run? Do you need to do something once it runs? Do you need to
know how it completed?

With a bit more information you might get an answer that hits what you
need just by making use of built in functionality.

Later,
Steve Thompson

-Original Message-
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of Michael Knigge
Sent: Monday, August 07, 2006 12:15 PM
To: IBM-MAIN@BAMA.UA.EDU
Subject: How to Submit and monitor a Job?

All,


I need to submit a Job and monitor it (at least wait for it to end). Is 
there an official API? I've heard about the SAPI, but if I got it right 
it uses a SSI which I can't use/access from C (-- I need a C solution).

snip

--
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 Submit and monitor a Job?

2006-08-07 Thread Gilbert Saint-Flour
On Monday 07 August 2006 13:15, Michael Knigge wrote:

 I need to submit a Job and monitor it (at least wait for it to end).
 Is there an official API? I've heard about the SAPI, 
 but if I got it right it uses a SSI which I can't use/access 
 from C (-- I need a C solution). 

Submitting a job from C is probably not an issue, but there is no API 
that I can think of that would allow a C program to monitor another 
job.  

A few years ago, at the request of a company that develops a job 
scheduler, I wrote an assembler sub-routine that can be called from C 
to retrieve the information about a given job: status, job number, 
step name, proc-step name, program, CPU time and real memory usage.  
Contact me privately if you're interested.

-- 

 Gilbert Saint-Flour
 GSF Software
 http://gsf-soft.com/
 mailto:[EMAIL PROTECTED]

--
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