File NEED, PUT (Was: Update Out of Sync)
Chris Sharman
chris.sharman@ccagroup.co.uk
Fri, 15 Feb 2002 08:48:25 -0000
>If you place NEED on a file statement, is the PUT suppose to be executed
>even when no data has been changed for the record?
My understanding is that this is used, usually on secondary files, to force
creation of a missing record. According to the docs, it can also be used on
primary files, presumably to force creation of a number of copies if they
don't exist (eg NEED 3). NEED 1 on the primary will never work, because if
the primary doesn't exist, there's no record complex.
Should/would NEED 1 force an update of an existing unchanged primary record?
According to the docs, it should, so you might expect a "record has changed
since you found it" error - maybe there's some odd behaviour here, if you
don't see that.
Chris
-----------------------------------------------------------------------
Any views expressed in this message are those of the sender and not
necessarily those of CCA Group. The unauthorized use, disclosure,
copying or alteration of this message is forbidden. The contents of
this message may be confidential and/or privileged, copyright CCA Group
and are intended solely for the use of the individual or entity to whom
they are addressed. Whilst this message has been scanned, CCA Group
cannot guarantee that it is virus free or compatible with your systems
and accepts no responsibility for any loss or damage arising from its
use. The recipient is advised to run their own anti-virus software. If
you receive this message in error please contact
postmaster@ccagroup.co.uk immediately, destroy any copies and delete it
from your computer systems.