"store next available numbers(Faster)."

Instead of using an data area, I use an SQL sequence object (which is
nothing else than a data area).

In an sequence object a couple (depending on the cache you defined) of next
numbers are in the pipeline and you do not have to determine the next number
by yourself.
The next number is retrieved simply by requesting the next one:

Exec SQL Set :MyNxtNo = Next Value for :MySequence;

Mit freundlichen Grüßen / Best regards

Birgitta Hauser

"Shoot for the moon, even if you miss, you'll land among the stars." (Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"


-----Ursprüngliche Nachricht-----
Von: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] Im Auftrag von Mike Wills
Gesendet: Friday, 13. May 2011 17:56
An: Midrange Systems Technical Discussion
Betreff: Re: DataArea vs. Tables

I like that idea.

"store next available numbers(Faster)."
--
Mike Wills
http://mikewills.me

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].