Tonni > Can an application be PPO without an open ACB with AUTH=PPO i. e. OPS/MVS?
No. >From the description of the AUTH operand in the z/OS Communications Server Resource Definition Reference manual: <quote> AUTH=(NOACQ,NOASDP,NOCNM,NOPASS,NOPO,NOTSO,VPACE) ... AUTH=PPO AUTH=SPO AUTH=NOPO Specifies whether the application program can issue VTAM operator commands and receive responses and unsolicited messages. z/OS Communications Server: SNA Programming describes the program operator application. If you code either the primary program operator (PPO) or the secondary program operator (SPO), the application program is authorized to issue SENDCMD and RCVCMD macroinstructions. If you code PPO, the application program receives all unsolicited messages, that is, all informational and error messages that are not replies to operator commands. If no PPO-designated application program is active when these messages occur, they are directed to the system console. </quote> Note that AUTH=NOPO is default as shown in the first line. > What happens if two applications competes to become PPO? Since AUTH=PPO is all about a VTAM API we search in the appropriate manual [1] and find in section "Defining a program operator" in Appendix L, "Program operator coding requirements" in the z/OS Communications Server SNA Programming manual: <quote> Only one primary program operator can be active at a time; however, one or more secondary program operators can also be active. </quote> Since it is forbidden that two programs with AUTH=PPO can be active, again we search in the appropriate manual and find in section "OPEN macroinstruction error fields" in "ACB OPEN and CLOSE macroinstruction error fields" in Chapter 2, "Return codes for VTAM macroinstructions" in the z/OS Communications Server IP and SNA Codes manual: <quote> 104 (X'68') The APPLID field in the ACB identifies an application program that is defined with AUTH=PPO in its APPL definition statement. Another program with the same authorization is active. Only one program defined with AUTH=PPO can be active at a time. </quote> > How can I determine who is PPO? I'm afraid I'm unaware of a specific command which can be entered which actually identifies which program currently holds the PPO baton, as it were, and searching for "PPO" in the appropriate manual, z/OS Communications Server SNA Operation, doesn't show anything. What you could do - rather laboriously - is scan all - likely - active applications which are active in VTAM and check the APPL statement for AUTH=(...,PPO,...). Perhaps you should post again explaining what your "confusing situation" is. Chris Mason [1] Long, long ago in the late '70s, this API actually had its own rather slim manual! On Fri, 22 Oct 2010 13:21:57 +0200, Tonni J Ottosen <totto...@csc.com> wrote: >Hi - > >I have a confusing situation which causes me to ask some questions about >PPO (Primary Program Operator). > >How can I determine who is PPO? > >Can an application be PPO without an open ACB with AUTH=PPO i. e. OPS/MVS? > >What happens if two applications competes to become PPO? > >Thanks - > >Venlig hilsen / Best regards > >TONNI OTTOSEN >Senior Consultant >CSC ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html