Re: How to cancel with just the JES jobid?

2008-05-14 Thread Mark Jones
On Fri, 9 May 2008 23:14:56 -0500, Kenneth E Tomiak 
[EMAIL PROTECTED] wrote:

How is it you came to have a jobid and not know the jobname? Maybe instead
of fighting to find the name you can backtrack to what captured the jobid, it
must have had a jobname at that point too.

No.  The assembler program writes JCL (from an MVS dataset or Unix System 
Services HFS file) to the internal reader, and retrieves the JES jobid from 
RPLRBAR.  This interface does not give you the OS jobname, just JES jobid.  

But that's not a problem, SSI will return OS jobname for a given JES jobid, so 
I 
can get jobname.

In the original post, I was trying how to find out the asid given a particular 
JES jobid (so I could do an OS cancel).  An earlier port explained how to do 
that.

Another post suggested using the undocumented SSI CANCEL (2), which is 
what I'm now leaning toward since it will cancel jobs stuck awaiting execution, 
where an OS cancel can only cancel a job that's running.

On Fri, 9 May 2008 14:34:39 -0500, Mark Jones [EMAIL PROTECTED]
wrote:

From an authorized assembler program, I've got just a JES jobid (JOBn)
and need to cancel it.  This needs to work with both JES2 and JES3.


--
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 cancel with just the JES jobid?

2008-05-10 Thread Jack Schudel

SSI function code 54 can be used to retrieve the JES command character.
It will also tell you if you are running under JES2 or JES3,
the version level, and lots more information.

Title: z/OS V1R9.0 MVS Using the Subsystem Interface
Document Number: SA22-7642-06

Has the details, and even has a sample program to extract the data.

Note that the z/OS 1.9 level of the manual does not show the
COMMAND_PREFIX= value, which may imply that it is not yet
available for JES3 sites.  It has been available in JES2 since
z/OS 1.5.

/jack


- Original Message - 
From: Mark Jones [EMAIL PROTECTED]

Newsgroups: bit.listserv.ibm-main
To: IBM-MAIN@BAMA.UA.EDU
Sent: Friday, May 09, 2008 3:34 PM
Subject: How to cancel with just the JES jobid?



snip 

JES Cancel

JES2 and JES3 have completely different syntax for cancel, so I have to 
know

which type I'm talking to.  The CVT points to the JESCT (the main JES
controlblock) which has a flag to test for JES2/JES3.  That's not too 
hard.


However, the JES2/JES3 commands are normally prefixed with $ (JES2) or *
(JES3), but that is really just the subsystem command prefix and could be
anything.

I can't find the subsystem command character.  It isn't in the JESCT or 
any
obvious place.  Any notion where that might be kept?  Maybe it can be 
gotten

through a subsystem interface call?

Without knowing what command character is used for the primary JES, I can
just default to $ for JES2 and * for JES3, but if a customer has changed 
that

from the norm, it won't work.

Any help on these issues or other approaches for cancelling jobs would be
much appreciated.

- Mark 


--
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 cancel with just the JES jobid?

2008-05-10 Thread Edward Jaffe

Jack Schudel wrote:

Note that the z/OS 1.9 level of the manual does not show the
COMMAND_PREFIX= value, which may imply that it is not yet
available for JES3 sites.  It has been available in JES2 since
z/OS 1.5.


I doubt IBM JES3 would ever populate this field to make it compatible 
with JES2. JES2 command prefixes are always system-scoped. JES3 is 
sysplex aware and allows up to seven sysplex-scoped prefixes and up to 
seven system-scoped prefixes. Even if they chose to report those 
prefixes via COMMAND_PREFIX= in SSI 54, the format would have to be 
substantially different.


--
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 cancel with just the JES jobid?

2008-05-10 Thread Jack Schudel

Going back to the OP's question about finding the current
installation's command character to allow him to issue a
JES cancel by jobid command, would it be sufficient in a 
JES3 environment to just extract any of the JES3 command 
characters from a D OPDATA console command, since JES3 
sites do not have to worry about running under poly-JES?


Thanks,  -jack


- Original Message - 
From: Edward Jaffe [EMAIL PROTECTED]

Newsgroups: bit.listserv.ibm-main
To: IBM-MAIN@BAMA.UA.EDU
Sent: Saturday, May 10, 2008 1:24 PM
Subject: Re: How to cancel with just the JES jobid?



Jack Schudel wrote:

Note that the z/OS 1.9 level of the manual does not show the
COMMAND_PREFIX= value, which may imply that it is not yet
available for JES3 sites.  It has been available in JES2 since
z/OS 1.5.


I doubt IBM JES3 would ever populate this field to make it compatible 
with JES2. JES2 command prefixes are always system-scoped. JES3 is 
sysplex aware and allows up to seven sysplex-scoped prefixes and up to 
seven system-scoped prefixes. Even if they chose to report those 
prefixes via COMMAND_PREFIX= in SSI 54, the format would have to be 
substantially different.


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



--
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 cancel with just the JES jobid?

2008-05-10 Thread Edward Jaffe

Jack Schudel wrote:

Going back to the OP's question about finding the current
installation's command character to allow him to issue a
JES cancel by jobid command, would it be sufficient in a JES3 
environment to just extract any of the JES3 command characters from a 
D OPDATA console command, since JES3 sites do not have to worry about 
running under poly-JES?


Having to capture output from D OPDATA is lame. (CPF should have a 
QUERY function to allow inspection of existing prefixes!) Having to 
issue JES-specific operator commands is even more lame. IMHO, nothing 
beats SSI 2 for the OP's stated purpose.


--
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 cancel with just the JES jobid?

2008-05-10 Thread Wayne Driscoll
Ed, 
I agree, the SSI manual is (almost) useless.  I was in the process of
writing a NOTIFY like process at my third employer before it was brought to
my attention that the SSI was now documented, I think I wrote the first one
in 1990 or something like it.

Wayne Driscoll
Product Developer
NOTE:  All opinions are strictly my own.




-Original Message-
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf
Of Edward Jaffe
Sent: Saturday, May 10, 2008 12:44 AM
To: IBM-MAIN@BAMA.UA.EDU
Subject: Re: How to cancel with just the JES jobid?

Mark Jones wrote:
 On Fri, 9 May 2008 13:06:08 -0700, Edward Jaffe 
 [EMAIL PROTECTED] wrote:
   
 Are you able to use SSI function code 2 (CANCEL)? IEFSSCS has the SSOB
 mapping.

 

 Yes I guess, but it isn't documented in the MVS Using the Subsystem 
 Interface manual.  I could try to figure it out based on similar SSI
calls, but 
 would rather use a documented interface.

 I'll check into the SSOB mapping and see if I can figure it out.

 Thanks for the idea.
   

I never really noticed, until you mentioned it, that SSI function code 2 
(CANCEL) wasn't documented. In fact, I now see lots of ordinary, 
every-day SSI calls aren't in Using the SSI. That's ridiculous.

Perhaps the authors of the book weren't particularly proud of the 
interfaces they neglected to mention. (A lot of it is pretty gross.) 
Or maybe they only had so much time  money to devote. Or maybe they 
were just lazy.

In the old days, there was no book. The SSI documentation was the JES 
source code. And, for me it still is...

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

--
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 cancel with just the JES jobid?

2008-05-09 Thread McKown, John
From looking at the documentation on the IAZXJSAB macro, you can step
through the ASVT and get information about the job running in that
address space. Including the JOBNAME, JOBID (JES job number JOBn,
STCn, TSUn).

--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology

The information contained in this e-mail message may be privileged
and/or confidential.  It is for intended addressee(s) only.  If you are
not the intended recipient, you are hereby notified that any disclosure,
reproduction, distribution or other use of this communication is
strictly prohibited and could, in certain circumstances, be a criminal
offense.  If you have received this e-mail in error, please notify the
sender by reply and delete this message without copying or disclosing
it.  

--
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 cancel with just the JES jobid?

2008-05-09 Thread Edward Jaffe

Mark Jones wrote:
From an authorized assembler program, I've got just a JES jobid (JOBn) 
and need to cancel it.  This needs to work with both JES2 and JES3.


There are two possible ways to do this, z/OS cancel or JES cancel.  Build a 
command and issue SVC 34.
  


Are you able to use SSI function code 2 (CANCEL)? IEFSSCS has the SSOB 
mapping.


--
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 cancel with just the JES jobid?

2008-05-09 Thread Mark Jones
On Fri, 9 May 2008 13:06:08 -0700, Edward Jaffe 
[EMAIL PROTECTED] wrote:

Mark Jones wrote:
 From an authorized assembler program, I've got just a JES jobid 
(JOBn)
 and need to cancel it.  This needs to work with both JES2 and JES3.

 There are two possible ways to do this, z/OS cancel or JES cancel.  Build a
 command and issue SVC 34.


Are you able to use SSI function code 2 (CANCEL)? IEFSSCS has the SSOB
mapping.


Yes I guess, but it isn't documented in the MVS Using the Subsystem 
Interface manual.  I could try to figure it out based on similar SSI calls, 
but 
would rather use a documented interface.

I'll check into the SSOB mapping and see if I can figure it out.

Thanks for the idea.

--
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 cancel with just the JES jobid?

2008-05-09 Thread Kenneth E Tomiak
How is it you came to have a jobid and not know the jobname? Maybe instead 
of fighting to find the name you can backtrack to what captured the jobid, it 
must have had a jobname at that point too.

On Fri, 9 May 2008 14:34:39 -0500, Mark Jones [EMAIL PROTECTED] 
wrote:

From an authorized assembler program, I've got just a JES jobid (JOBn)
and need to cancel it.  This needs to work with both JES2 and JES3.


--
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 cancel with just the JES jobid?

2008-05-09 Thread Edward Jaffe

Mark Jones wrote:
On Fri, 9 May 2008 13:06:08 -0700, Edward Jaffe 
[EMAIL PROTECTED] wrote:
  

Are you able to use SSI function code 2 (CANCEL)? IEFSSCS has the SSOB
mapping.




Yes I guess, but it isn't documented in the MVS Using the Subsystem 
Interface manual.  I could try to figure it out based on similar SSI calls, but 
would rather use a documented interface.


I'll check into the SSOB mapping and see if I can figure it out.

Thanks for the idea.
  


I never really noticed, until you mentioned it, that SSI function code 2 
(CANCEL) wasn't documented. In fact, I now see lots of ordinary, 
every-day SSI calls aren't in Using the SSI. That's ridiculous.


Perhaps the authors of the book weren't particularly proud of the 
interfaces they neglected to mention. (A lot of it is pretty gross.) 
Or maybe they only had so much time  money to devote. Or maybe they 
were just lazy.


In the old days, there was no book. The SSI documentation was the JES 
source code. And, for me it still is...


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