> Perhaps you could tell us why you want to know? 

I have a fairly complex application with a lot of variables in terms of
datasets either provided by JCL or dynamically, which are used by my app
and/or by another program (FTP actually) that I load dynamically. I need
very specific output behavior in spite of arguably illogical conditions
because I need to strictly imitate the behavior of another program (and you
know how customers can be <g>). I am seeing some differences in behavior
between JES2 and JES3 and I am trying to compensate for that
programmatically. There seem to be some differences, for example, in how
each handles the situation where the same DD SYSOUT is opened multiple times
by successive programs, particularly if they use slightly different DCB
attributes (F versus FA, for example).

Charles

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf
Of McKown, John
Sent: Tuesday, February 07, 2006 12:18 PM
To: IBM-MAIN@BAMA.UA.EDU
Subject: Re: Simplest way for app to tell if JES2 or JES3 environment?


> -----Original Message-----
> From: IBM Mainframe Discussion List 
> [mailto:[EMAIL PROTECTED] On Behalf Of Charles Mills
> Sent: Tuesday, February 07, 2006 11:46 AM
> To: IBM-MAIN@BAMA.UA.EDU
> Subject: Re: Simplest way for app to tell if JES2 or JES3 environment?
> 
> 
> > IAZXJSAB macro, with the COMPID parameter will tell you that.
> 
> Okay, totally dumb follow-up question. COMPID= is documented 
> as Specifies
> the location where the system is to return the 4-character name of the
> subsystem that created the JSAB.
> 
> Question: is the "name" of JES2 or JES3 always "JES2" or 
> "JES3"? If a shop
> renamed their startup PROC JES2TEST or JES3V1R7 would COMPID= 
> still return
> "JES2" or "JES3"?
> 
> Charles

No, the name of JES2 is not always "JES2". I've run what was (is?)
called PolyJES where I have multiple, separate JES2 subsystems running
on a single MVS image, each called something different. Rember that a
subsystem can be a max of 4 characters, so JES2TEST is not possible. I
have run with JESA, however. If you're a pervert, you could run JES2 and
call it "JES3" <grin>.

Perhaps you could tell us why you want to know? For instance something
like: "I know that if I'm running JES3, then I can do ... and it will
work." Where "..." is something that is JES3 only such as DJC (Dependant
Job Control). 

The field SSCTSSID will tell if this is JES2, JES3, or "other" (what
other?). I think you must "chain chase" to find this control block. I
haven't tried, but the book "z/OS: MVS Using the Subsystem Interface"
indicates that you can use an SSI call of "15" to obtain the address of
the SSCVT that corresponds to a specific subsystem. If there is an
easier way, hopefully somebody will speak up.

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

Reply via email to