INFO-VAX Fri, 21 Dec 2007 Volume 2007 : Issue 697 Contents: COBOL: get buffered IO from process id Re: COBOL: get buffered IO from process id Re: COBOL: get buffered IO from process id Re: IP standby query Re: quick question Re: quick question Re: quick question Re: Volume label. ---------------------------------------------------------------------- Date: Thu, 20 Dec 2007 14:16:09 -0800 (PST) From: ythefoe@gmail.com Subject: COBOL: get buffered IO from process id Message-ID: Hi, Does someone know how to extract the buffered IO using the process id (random process), and this in Cobol ? I guess it should be done with lib$getpji. I followed some examples from the newsgroups, but all they do is displaying the username running the Cobol program... So what I would like to have: bufferio = get buffered io from process X (in Cobol) I hope someone can help me... ------------------------------ Date: Fri, 21 Dec 2007 13:21:21 +1100 From: Jim Duff Subject: Re: COBOL: get buffered IO from process id Message-ID: <476b2323@dnews.tpgi.com.au> ythefoe@gmail.com wrote: > Hi, > > Does someone know how to extract the buffered IO using the process id > (random process), and this in Cobol ? > I guess it should be done with lib$getpji. > I followed some examples from the newsgroups, but all they do is > displaying the username running the Cobol program... > > So what I would like to have: > > bufferio = get buffered io from process X (in Cobol) > > I hope someone can help me... Presuming that by "extract the buffered IO" you mean "get the buffered IO count", then here you go. Obviously, you need to fill in the PID variable by some method, and you need appropriate privileges (either GROUP or WORLD) to request information on other processes. IDENTIFICATION DIVISION. PROGRAM-ID. EXAMPLE. ENVIRONMENT DIVISION. DATA DIVISION. WORKING-STORAGE SECTION. 01 R0-STATUS PIC S9(9) COMP. 01 BIO PIC S9(9) COMP. 01 PID PIC S9(9) COMP VALUE 0. 01 JPI$_BIOCNT PIC S9(9) COMP VALUE EXTERNAL JPI$_BIOCNT. PROCEDURE DIVISION. EXAM SECTION. EXAM-BEGIN. * Load the PID variable with an appropriate PID. We have zero, so we * will retrieve our own process's count. CALL "LIB$GETJPI" USING BY REFERENCE JPI$_BIOCNT, BY REFERENCE PID, OMITTED, BY REFERENCE BIO, OMITTED, OMITTED GIVING R0-STATUS. IF R0-STATUS IS FAILURE CALL "LIB$SIGNAL" USING BY VALUE R0-STATUS END-IF. END PROGRAM EXAMPLE. Cheers, Jim. -- www.eight-cubed.com ------------------------------ Date: Thu, 20 Dec 2007 21:05:11 -0800 (PST) From: Hein RMS van den Heuvel Subject: Re: COBOL: get buffered IO from process id Message-ID: <562e025a-e0ad-46bb-9940-149b81f535dc@a35g2000prf.googlegroups.com> On Dec 20, 9:21=A0pm, Jim Duff wrote: > ythe...@gmail.com wrote: > > Does someone know how to extract the buffered IO using the process > Presuming that by "extract the buffered IO" you mean "get the buffered > IO count", then here you go. =A0Obviously, you need to fill in the PID > variable by some method, and you need appropriate privileges (either > GROUP or WORLD) to request information on other processes. Jim shows a fine solution for the question asked. If you wanted multiple process counters, then you may want to look at SYS$GETJPI which is only a little harder to program but a lot more efficient. Anyway.... WHY would a cobol program want to know BUFIO (count) ? Do you even know what constritues a direct IO? (folks who know exactly what bufio means, already know how to get it :-) What is the intended usage of the value obtained. "what problem are you really trying to solve?" Cheers, Hein. ------------------------------ Date: Thu, 20 Dec 2007 15:21:25 -0500 From: JF Mezei Subject: Re: IP standby query Message-ID: <3e502$476acec4$cef8887a$28264@TEKSAVVY.COM> issinoho wrote: > My question is: what constitutes the 'something'? What needs to happen on > Node A such that node B gets the live IP address? > Second question: is there any way of stimulating this swap from either of > the nodes? For TCPIP services with just the alias strategy (no failsafe process), it is a simple clusterwide lock. First node that gets the lock gets to make the alias IP active. When that node goes out, the lock becomes free and the next node then takes the lock and activates its alias. To simulate it, upi use the IFCONFIG I think it is $ifconfig WE0 -alias 10.0.0.50 which will disable the alias on that node and let the next node take it. $ifconfig WE0 alias 10.0.0.50/16 ipmtu 1500 will re-activate the alias on that node (will go on stand by mode if another node already has it). WE0 is the interface name (IFCONFIG -a to get the list of interfaces on that node) ------------------------------ Date: Thu, 20 Dec 2007 12:19:01 -0800 (PST) From: AEF Subject: Re: quick question Message-ID: On Dec 20, 11:44 am, m.krae...@gsi.de (Michael Kraemer) wrote: > In article , > > > > AEF writes: > > On Dec 20, 9:30 am, koeh...@eisner.nospam.encompasserve.org (Bob > > Koehler) wrote: > > > In article , Malcolm Dunnett > > writes: > > > > > Yeah, but it was no match for Bill Shatner!!!!! > > > > JTK had a habit of talking computers into commiting suicide. Maybe > > > we should let him loose in Redmond. > > > The only other episode I can recall offhand in which this type of > > thing happens is The Changeling (Nomad). The end of the show where > > Kirk talks Nomad into self-destruction is absolutely brilliant. What > > other episodes am I forgetting? There's Landru (Are you of the > > body? :-) but I think they just used their phasers on it. > > > AEF > > ISTR a similar episode where the computer was talked into > the task of calculating PI up to the last digit ... > It was kind of exorcism because some daemon had taken over the main computer. Yes, I remember this one. It was where Scotty was repeatedly caught with the murder weapon of a "Jack the Ripper"-type monster. > > But I also STR a later episode where the (newer) computer was > smart enough to recognize that this is a mission impossible > and refused to do it. This must be from one of the spin-off series. I've seen only a very few episodes of them. AEF ------------------------------ Date: Thu, 20 Dec 2007 12:46:58 -0800 From: Malcolm Dunnett Subject: Re: quick question Message-ID: <476ad4c2$1@flight> Michael Kraemer wrote: >> The only other episode I can recall offhand in which this type of >> thing happens is The Changeling (Nomad). The end of the show where >> Kirk talks Nomad into self-destruction is absolutely brilliant. What >> other episodes am I forgetting? There's Landru (Are you of the >> body? :-) but I think they just used their phasers on it. >> >> AEF > > ISTR a similar episode where the computer was talked into > the task of calculating PI up to the last digit ... > It was kind of exorcism because some daemon had taken over the main computer. Wasn't there also an episode (Mudd's Women?) where they disabled some female androids by feeding them a logical conundrum? ------------------------------ Date: Thu, 20 Dec 2007 15:50:53 -0500 From: norm.raphael@metso.com Subject: Re: quick question Message-ID: This is a multipart message in MIME format. --=_alternative 0072867F852573B7_= Content-Type: text/plain; charset="US-ASCII" AEF wrote on 12/20/2007 03:19:01 PM: > On Dec 20, 11:44 am, m.krae...@gsi.de (Michael Kraemer) wrote: > > In article googlegroups.com>, > > > > > > > > AEF writes: > > > On Dec 20, 9:30 am, koeh...@eisner.nospam.encompasserve.org (Bob > > > Koehler) wrote: > > > > In article , Malcolm Dunnett > > > writes: > > > > > > > Yeah, but it was no match for Bill Shatner!!!!! > > > > > > JTK had a habit of talking computers into commiting suicide. Maybe > > > > we should let him loose in Redmond. > > > > > The only other episode I can recall offhand in which this type of > > > thing happens is The Changeling (Nomad). The end of the show where > > > Kirk talks Nomad into self-destruction is absolutely brilliant. What > > > other episodes am I forgetting? There's Landru (Are you of the > > > body? :-) but I think they just used their phasers on it. > > > > > AEF > > > > ISTR a similar episode where the computer was talked into > > the task of calculating PI up to the last digit ... > > It was kind of exorcism because some daemon had taken over the > main computer. > > Yes, I remember this one. It was where Scotty was repeatedly caught > with the murder weapon of a "Jack the Ripper"-type monster. > > > > > But I also STR a later episode where the (newer) computer was > > smart enough to recognize that this is a mission impossible > > and refused to do it. > > This must be from one of the spin-off series. I've seen only a very > few episodes of them. > > AEF There was the M5 Unit that took over the ship and Kirk got it to "commit suicide" for it's sins by shutting down so it could be destroyed by attacking federation ships that broke off the attack. There was the Harry Mudd android episode where he and spock got the controller android to try and solve a paradox that overloaded it. --=_alternative 0072867F852573B7_= Content-Type: text/html; charset="US-ASCII"



AEF <spamsink2001@yahoo.com> wrote on 12/20/2007 03:19:01 PM:

> On Dec 20, 11:44 am, m.krae...@gsi.de (Michael Kraemer) wrote:
> > In article <cabf40d8-f148-4321-9f43-834f92c80...@i12g2000prf.
> googlegroups.com>,
> >
> >
> >
> > AEF <spamsink2...@yahoo.com> writes:
> > > On Dec 20, 9:30 am, koeh...@eisner.nospam.encompasserve.org (Bob
> > > Koehler) wrote:
> > > > In article <Xtoaj.28398$UZ4.13829@edtnps89>, Malcolm Dunnett
> > > <noth...@spammers.are.scum> writes:
> >
> > > > >     Yeah, but it was no match for Bill Shatner!!!!!
> >
> > > >    JTK had a habit of talking computers into commiting suicide.  Maybe
> > > >    we should let him loose in Redmond.
> >
> > > The only other episode I can recall offhand in which this type of
> > > thing happens is The Changeling (Nomad). The end of the show where
> > > Kirk talks Nomad into self-destruction is absolutely brilliant. What
> > > other episodes am I forgetting? There's Landru (Are you of the
> > > body? :-) but I think they just used their phasers on it.
> >
> > > AEF
> >
> > ISTR a similar episode where the computer was talked into
> > the task of calculating PI up to the last digit ...
> > It was kind of exorcism because some daemon had taken over the
> main computer.
>
> Yes, I remember this one. It was where Scotty was repeatedly caught
> with the murder weapon of a "Jack the Ripper"-type monster.
>
> >
> > But I also STR a later episode where the (newer) computer was
> > smart enough to recognize that this is a mission impossible
> > and refused to do it.
>
> This must be from one of the spin-off series. I've seen only a very
> few episodes of them.
>
> AEF
There was the M5 Unit that took over the ship and Kirk got it to

"commit suicide" for it's sins by shutting down so it could be destroyed
by attacking federation ships that broke off the attack.

There was the Harry Mudd android episode where he and spock got the
controller android to try and solve a paradox that overloaded it.
--=_alternative 0072867F852573B7_=-- ------------------------------ Date: Thu, 20 Dec 2007 13:04:46 -0800 From: Fred Bach Subject: Re: Volume label. Message-ID: Bob Gezelter wrote: > > I also published a series of columns on the use of logical names on > OpenVMS.org. The first of these "The OpenVMS Consultant: Logical Names > (Part 1)", is available at http://www.openvms.org/stories.php?story=02/09/24/5441505 > > Bob, Nice material. I learned something. Thanks. Part 3 has no forwarding URL to Part 4. .. fred bach .. ------------------------------ End of INFO-VAX 2007.697 ************************