Home page  
Help >
CalcObject Statement: Write
Version 7.11

CalcObject Statement: Write

 
    Syntax: WRITE <table-name> <descriptor1> <descriptor2> ...
      <descriptorN> is:
         1) <field-name1>[<modifier>]
         2) <field-name1> = <field-name2>[<modifier>]
         3) <field-name1> = <local-var-name>[<modifier>]
         4) <field-name1> = <global-var-name>
         5) <field-name1> = <literal>
         6) <field-name1> = null
 
    Placement: RETURN section, EVERY section, ATEND section or R_INITIAL section
 
    Description: Creates a new record in <table-name> with the 
       specified contents; <table-name> does not have to be part
       of the hierarchy that is being processed. A record that is 
       created with the CalcObject WRITE statement can be rewritten 
       with the CalcObject REWRITE statement; and it can be SELECTed
       with the CalcObject SELECT statement..
 
       Form 1)
          <field-name1>[<modifier>]
       is equivalent to
          <field-name1> = <field-name1>[<modifier>]
 
       For forms 4) and 5), if <field-name1> is data type DATE, DATETIME,
       DATETIMEEX or TIME, the target value is assumed to be in the
       default format for its data type. However, the default format can be
       overridden by an explicit format override following the target value.

Copyright © 2019 , WhamTech, Inc.  All rights reserved. This document is provided for information purposes only and the contents hereof are subject to change without notice. Names may be trademarks of their respective owners.