Thank you Gregor. Good efficiency. Change made.

Thank you.
-Baker
x3598


-----Original Message-----
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Gregor Scott
Sent: Tuesday, December 15, 2009 7:40 PM
To: 'U2 Users List'
Subject: Re: [U2] RECORDLOCKED statement

The other consideration is that each case statement uses the same
RECORDLOCKED(PICH.TX, SO) function reference, meaning it runs the function 3
times (according to your snippet).

I would normally assign the function result to a variable and test the
variable in the case statements:

stat.LOCK = RECORDLOCKED(PICH.TX, SO)

CASE stat.LOCK = ....
CASE stat.LOCK = ...

Gregor Scott



This communication, its contents and any file attachments transmitted with it 
are intended solely for the addressee(s) and may contain confidential 
proprietary information.
Access by any other party without the express written permission of the sender 
is STRICTLY PROHIBITED.
If you have received this communication in error you may not copy, distribute 
or use the contents, attachments or information in any way.  Please destroy it 
and contact the sender.
_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to