Eric Spencer wrote:

> I use the initusp call to actually dub the environment which will return
> a reason if it fails, you can tell exactly why it wont work (or at least
> get closer than querydub) could be that there is an omvs segment but it
> is not fully defined...

I like sysconf() = BPX1SYC, as it's harmless and fast.
  
> Some reasons are 
> 1. no omvs segment
> 2. no uid in the omvs segment 
> 3. no gid in the omvs segment

There are at least five reason codes like this that go with a retcode of
EMVSINITIAL, and unfortunately IBM maintains that one is not supposed to
examine them programatically, but merely report them. But of course with any
of these codes, it is impossible to get the error message from the system,
because the needed pfsctl() = BPX1PCT will fail! Sigh...

Tony H.

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