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