[U2] Inter-Process Control...

2009-02-26 Thread Tom Whitmore
We have two phantom processes. The first phantom needs to wait for an event to occur with the second phantom. I realize that I could have the first phantom loop, check, then sleep. However, I'd like to avoid wasting resources. Back on the Prime, I could use semaphores, to control this flow and

[U2] RE: Inter-Process Control...

2009-02-26 Thread Israel, John R.
Could you have the first PHANTOM fire off the 2nd PHANTOM when that critical point is reached? John Israel -Original Message- From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of Tom Whitmore Sent: Thursday, February 26, 2009 7:57 AM To:

RE: [U2] Inter-Process Control...

2009-02-26 Thread kishor
Couldn't you get the second phantom to lock an empty record release it when it is done? The first phantom can wait on the readu lock. Regards, Kishor Parmar -Original Message- From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of Tom Whitmore

[U2] RE: Inter-Process Control...

2009-02-26 Thread George Gallen
If you are running unix, you could have an email alias run a script that triggers the phantom, then to start the phantom, just have unix send an email to that address. George -Original Message- From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2- us...@listserver.u2ug.org]

Re: [U2] Inter-Process Control...

2009-02-26 Thread Jeff Schasny
Tom, Sounds like a classic application for sockets. Inter process communications. Phantom 1 opens a server socket on a known port/IP and waits on a blocked read for something (like a process name to run for example). Process 2 opens a socket on the known port/ip and writes the name of the

[U2] AUTOLOGOUT and ON.ABORT

2009-02-26 Thread Mike Roosa
We are running Universe on a Windows 2003 server and trying to set up some code to run when the user hits a runtime error. I wrote a small program to be called from ON.ABORT that logs the user id, date, time, and presents the user with a message telling them to contact support so that we can look

Re: [U2] Inter-Process Control...

2009-02-26 Thread Timothy Snyder
We have two phantom processes. The first phantom needs to wait for an event to occur with the second phantom. I realize that I could have the first phantom loop, check, then sleep. However, I'd like to avoid wasting resources. Back on the Prime, I could use semaphores, to control this

RE: [U2] Inter-Process Control...

2009-02-26 Thread Raymond de Bourbon
If this is the approach you go for, I would recommend that you use a resource lock, rather than a record lock (no need to open file etc etc)... Resource locks are set system wide, so are not limited to a single account / file / record, and are accessed with the LOCK/UNLOCK UniBasic commands...

Re: [U2] AUTOLOGOUT and ON.ABORT

2009-02-26 Thread Kevin King
Can you glean anything from SYSTEM(9001)? --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/

RE: [U2] Inter-Process Control...

2009-02-26 Thread Tom Whitmore
Thank you for all the responses. I should have stated that we are a UniVerse shop. I did play with the lock/unlock but the only process that can modify the lock is the one that set it. Also, I could not get the process to wait on the lock. From the playing I did, lock/unlock seems very

Re: [U2] AUTOLOGOUT and ON.ABORT

2009-02-26 Thread Mike Roosa
Unfortunately this is all I have in SYSTEM(9001). 1}BP.O/ON.ABORT}0x5e~ On Thu, Feb 26, 2009 at 11:04 AM, Kevin King precisonl...@gmail.com wrote: Can you glean anything from SYSTEM(9001)? --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit

Re: [U2] Inter-Process Control...

2009-02-26 Thread Kevin King
Tom, can you elaborate when you say the only process that can modify the lock is the one that set it. Isn't that exactly how a semaphore is supposed to work? Both processes should be able to set the lock but only one can have it at any moment in time. Or am I missing the point? --- u2-users

RE: [U2] Inter-Process Control...

2009-02-26 Thread Tom Whitmore
I agree. I wrote two little programs. LOCK.TEST1 0001 LOCK 60 ELSE CRT '60 LOCKED' 0002 CRT 'UNLOCKED' LOCK.TEST2 0001 UNLOCK 60 0002 CRT '60 WAS UNLOCKED' LOCK.TEST1 locked 60 displayed unlocked. LOCK.TEST2 generated the error ' Program LOCK.TEST2: Line 1, Lock 60 not owned by calling

Re: [U2] Inter-Process Control...

2009-02-26 Thread iggchamp
Hey Tom, Are you trying to do something like... Program A B B B B DONE = 0 B B B B LOOP B B B B B B B B B B GOSUB ;* PROCESS STUFF B B B B B UNTIL DONE DO B B B B B B B B B B B IF SOME.EVENT THEN B B B B B B B B B B B B B B B B LOCK 10;* WAKE UP PROGRAM B B B B B B B B B B B

RE: [U2] Inter-Process Control...

2009-02-26 Thread Larry Hiscock
Yep ... sure miss sem$wait sem$notify. You could accomplish the same thing with a simple socket-based protocol. The main process could listen on a socket and wait for any of the sub-processes to connect and send a message via the socket. Larry Hiscock Western Computer Services

RE: [U2] Inter-Process Control...

2009-02-26 Thread Tom Whitmore
One example of what I'm trying to do is develop a record lock manager (for the lack of a better description) for non-persistent connections. I need the lock manager to wakeup when there is a request for a readu/write/delete. The all the responders would need to send requests to the lock

RE: [U2] Inter-Process Control...

2009-02-26 Thread Bernard Lubin
A point to remember if using sockets (on UniVerse) is that your phantom will become an iphantom, and thus consume a license. Regards Bernard Lubin -Original Message- From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of Larry Hiscock

RE: [U2] Inter-Process Control... {Unclassified}

2009-02-26 Thread HENDERSON MIKE, MR
Tom, I don't think that 'maintaining a lock manager' is necessarily a good solution to non-persistent connections. A more conventional approach is for each connection to maintain the state of the record(s) it was going to modify - i.e. a 'before image'. Then, when it's time to apply the

[U2] Common UNIX Printing System

2009-02-26 Thread Bertrand, Ron
Hey all - is anybody using CUPS with universe? Ron Bertrand Analyst,AP SYS 3 ISD/LIS/AMS Group Health Coop 206-901-4519 --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/

RE: [U2] AUTOLOGOUT and ON.ABORT

2009-02-26 Thread John Hester
-Original Message- From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of Mike Roosa Sent: Thursday, February 26, 2009 6:38 AM To: u2-users@listserver.u2ug.org Subject: [U2] AUTOLOGOUT and ON.ABORT [snip] AUTOLOGOUT process causes the

RE: [U2] Common UNIX Printing System

2009-02-26 Thread John Hester
-Original Message- From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of Bertrand, Ron Sent: Thursday, February 26, 2009 3:13 PM To: u2-users@listserver.u2ug.org Subject: [U2] Common UNIX Printing System Hey all - is anybody using CUPS

RE: [U2] AUTOLOGOUT and ON.ABORT

2009-02-26 Thread Hona, David
In UniVerse, @ABORT.CODE is set to signify the reason code. I can't recall value set for AUTOLOGOUT though and I can't check right now. Regards David -Original Message- From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of Mike Roosa Sent:

RE: [U2] Inter-Process Control... {Unclassified}

2009-02-26 Thread Tom Whitmore
I do understand the concern, and the concept of optimistic locking. Our application will have session timeout logic, so we can clean-up any locks. We will be developing tools to keep the control records cleaned up. Our problem is that we cannot use optimistic locking for the application.

RE: [U2] Common UNIX Printing System

2009-02-26 Thread phil walker
Yes on RHEL 4.0 -Original Message- From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2- us...@listserver.u2ug.org] On Behalf Of Bertrand, Ron Sent: Friday, 27 February 2009 12:46 p.m. To: u2-users@listserver.u2ug.org Subject: [U2] Common UNIX Printing System Hey all - is

[U2] Maybe not the list to ask on, but SB+ generated documentation.

2009-02-26 Thread Jeff Ritchie
Am on a unidata system on a unix box. How do I generate the SB+ manuals so that I can drag them into windows? Vaguely remember doing it many moons ago on a universe system via a hold print queue. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit

RE: [U2] Maybe not the list to ask on, but SB+ generated documentation.

2009-02-26 Thread Dan Fitzgerald
Download here: http://www-01.ibm.com/software/data/u2/pubs/library/ -Original Message- From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of Jeff Ritchie Sent: Thursday, February 26, 2009 8:08 PM To: u2-users@listserver.u2ug.org Subject: [U2]

RE: [U2] Maybe not the list to ask on, but SB+ generated documentation.

2009-02-26 Thread Jeff Ritchie
Sorry clearly wasn't clear. In SB+ you can generate manuals for the software you have written, was wondering how to get that into a MS Word editing environment. -Original Message- From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of Dan

Re: [U2] AUTOLOGOUT and ON.ABORT

2009-02-26 Thread Mike Roosa
Unfortunately the @ABORT.CODE is 3 which is the same for AUTOLOGOUT as a user breaking out of a program. On Thu, Feb 26, 2009 at 7:02 PM, Hona, David david.h...@cba.com.au wrote: In UniVerse, @ABORT.CODE is set to signify the reason code. I can't recall value set for AUTOLOGOUT though and I

RE: [U2] Maybe not the list to ask on, but SB+ generated documentation.

2009-02-26 Thread Boydell, Stuart
Gidday Jeff, Reasonably certain you can also specify output to file. Output To Screen/Printer/File (S/P/F) ? Enter option: S creen, P rinter or F ile (xxUSERTEXT $FILEport.page). (F3) Convert xxUSERTEXT to a dir type file (aka UV type 19) and you should be able to pick up the parts using ftp,

RE: [U2] Maybe not the list to ask on, but SB+ generated documentation.

2009-02-26 Thread Jeff Ritchie
Thanks Stu, hadn't thought of simply converting the file :) That should have our document written happy with life, microsoft, and lots and losts of words. Jeff -Original Message- From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of Boydell,

Re: [U2] AUTOLOGOUT and ON.ABORT

2009-02-26 Thread Jacques G.
If you turn on the errlog file in /u1/uv you may get a message in there for an AUTOLOGOUT. I'm pretty sure I've seen such messages in the past. You will have the user name, the PID and some text describing the error. The errlog file only keeps the last 1001 error messages so you might want to