HP3000-L Archives

April 2000, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Chip Dorman <[log in to unmask]>
Reply To:
Chip Dorman <[log in to unmask]>
Date:
Thu, 13 Apr 2000 08:41:31 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (37 lines)
Hi y'all,

I have the same need that Dave outlined in his original post so
I am interested in seeing any and all approaches to this problem.

Using ManMan, we have flat files containing control number records
for documents like sales orders and work orders.  The traditional
programming approach is to...
  -lock the file with waiting
  -read the current "next number" from the file
  -increment the current "next number"
  -write the current "next number" back to the same record
  -unlock the file

So to echo Dave's fundamental question, how do you do this
using ODBC?  Any and all suggestions appreciated including
those from MiniSoft. {;-)

Enquiring minds want to know...
Chip Dorman
Greenfield Industries/KMT


Kenhp3000-L wrote:

> Hi Dave
>
> We develop client server apps. using the LINKWAY ODBC driver.
>
> This type of operation is quite common and the most efficient way is to
> create a stored procedure which does these steps ending by returning the
> next record number ( or zero or some other special value if it fails).
>
> Ken Vickers
>
> LINKWAY Development and Support

ATOM RSS1 RSS2