Bill,
An interesting approach that many users out there might not
think about.  I use you approach all the time when I have
to update my mailing list with changes received from the
mailing house when we do a news letter mailing.  It saves
creating all kinds of complex programming.  In fact the select
statements I use generates all the update command syntax
verbage.

I got the idea for doing this from an article many years
ago in the late lamented RBASE EXCHANGE magazine.  The article
evaluated different methods of generating/using the UPDATE
command.  If my memory serves me.  The method you suggested
was a hands down winner for shortest amount of time.

-- 
Jim Bentley
American Celiac Society
[EMAIL PROTECTED] - email
(973) 776-3900 x5029 - voicemail/fax



---- "Bill Downall" <[EMAIL PROTECTED]> wrote:
> How about:
> 
> SET VAR vJunkFile TEXT = (FILENAME(0))
> OUTPUT &vJunkFile
> WRITE 'UPDATE ttblReportData SET', .vPctColName, '= +'
> WRITE '((', .vDollarColName, '/', .vSalesLessReturns, ')
> * 100) +'
> WRITE 'WHERE', .vDollarColName, 'IS NOT NULL AND +' 
> WRITE .vPctColName, 'IS NULL AND StatementType <> ''BS'''
> WRITE 'RETURN'
> OUTPUT SCREEN
> RUN &vJunkFile
> DELETE &vJunkFile
> 
> Bill 
> 
> On Tue, 29 Jan 2002 08:56:02 -0800 (PST), Lawrence Lustig
> wrote:
> 
> >UPDATE ttblReportData +
> >  SET &vPctColName =
> >((&vDollarColName/.vSalesLessReturns)*100) +
> >  WHERE &vDollarColName IS NOT NULL AND &vPctColName
> >IS NULL +
> >    AND StatementType <> 'BS'
> 
> 
> 
> 
> ================================================
> TO SEE MESSAGE POSTING GUIDELINES:
> Send a plain text email to [EMAIL PROTECTED]
> In the message body, put just two words: INTRO rbase-l
> ================================================
> TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED]
> In the message body, put just two words: UNSUBSCRIBE rbase-l
> ================================================
> TO SEARCH ARCHIVES:
> http://www.mail-archive.com/rbase-l%40sonetmail.com/
> 

__________________________________________________
FREE voicemail, email, and fax...all in one place.
Sign Up Now! http://www.onebox.com

================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: INTRO rbase-l
================================================
TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: UNSUBSCRIBE rbase-l
================================================
TO SEARCH ARCHIVES:
http://www.mail-archive.com/rbase-l%40sonetmail.com/

Reply via email to