Re: [U2] Locking records in host subroutine w/uniobjects

2009-09-30 Thread BraDav
You can try and use a user defined lock, that only releases when you tell it 
to -- one way to do this is to have a file called locks or something and 
write the file*id's that are being locked (delete the ones that are not 
locked).  The tables should have some sort of id in record<1> that tells it 
who is doing the locking, so they can do the unlocking.


Have a read and write subroutine that obeys the locks.  The downside is that 
all process that access these records will have to respect the user defined 
locks.  The the custom.read/write program will have to be applied to all the 
process that use the files.  If UniObjects is being used for the web only, 
or for a particular purpose, one thing you can do is have a series of 
transactions files that gather data (all using the locks) and batch update 
the db tables for the rest fo the application.



Brad


- Original Message - 
From: "ack_9_ball" 

To: 
Sent: Tuesday, September 29, 2009 2:53 PM
Subject: [U2] Locking records in host subroutine w/uniobjects




Is there a way to keep records locked between calls to a host subroutine
using uniobjects?  From what I can tell once the subroutine finishes the
first time the lock goes away.
--
View this message in context: 
http://www.nabble.com/Locking-records-in-host-subroutine-w-uniobjects-tp25668748p25668748.html

Sent from the U2 - Users mailing list archive at Nabble.com.

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users 


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Locking records in host subroutine w/uniobjects

2009-09-29 Thread Brian Whitehorn
Hi,

If you open the file placing the file handle variable in common, should do
what I think you're looking for.

See HELP BASIC COMMON for information regarding the common storage area for
variables.

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of ack_9_ball
Sent: Wednesday, 30 September 2009 4:58 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] Locking records in host subroutine w/uniobjects


I'm calling a host subroutine using uniboject.  I want the host subroutine
to
do a readu and keep the record locked between calls.  Is there a way to do
this?  From what I can tell the lock goes away after the subroutine exists.
-- 
View this message in context:
http://www.nabble.com/Locking-records-in-host-subroutine-w-uniobjects-tp2566
8748p25668748.html
Sent from the U2 - Users mailing list archive at Nabble.com.

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
-- 
Message  protected by DealerGuard: e-mail anti-virus, anti-spam and content
filtering.
http://www.pentanasolutions.com

Click here to report this message as spam:
https://login.mailguard.com.au/report/1ynwfEYv8Q/Gi1nmHNST1um7oWKOC7qt/1.712


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


[U2] Locking records in host subroutine w/uniobjects

2009-09-29 Thread ack_9_ball

Is there a way to keep records locked between calls to a host subroutine
using uniobjects?  From what I can tell once the subroutine finishes the
first time the lock goes away.
-- 
View this message in context: 
http://www.nabble.com/Locking-records-in-host-subroutine-w-uniobjects-tp25668748p25668748.html
Sent from the U2 - Users mailing list archive at Nabble.com.

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users