%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
%.COPYRIGHT  (c)  1990-2011 European Southern Observatory
%.IDENT      copy_tt.hlq
%.AUTHOR     JDP, IPG/ESO
%.KEYWORDS   MIDAS, help files, COPY/TT
%.PURPOSE    On-line help file for the command: COPY/TT
%.VERSION    1.0  12-OCT-1983 : Creation, JDP
%----------------------------------------------------------------
\se
SECTION./TT
\es\co
COPY/TT							12-OCT-1983  JDP
\oc\su
COPY/TT intable incolumn [outable] outcolumn
	copy a table column to an other existing table
\us\pu
Purpose:   
           Copy a table column to another existing table 
\up\sy
Syntax:    
           COPY/TT intable incolumn [outable] outcolumn
\ys\pa
           intable   = input table name
\ap\pa
           incolumn  = input column label
\ap\pa
           outable   = optional output table name.
                       Default is the input table
                       The output table MUST already exist. 
\ap\pa
           outcolumn = output column label, defaulted to
		       incolumn
\ap\no
Note:      
           If a reference column is not defined for the tables, entries are 
	   copied sequentially. 
	   If the reference column is defined both in the input and output 
	   tables, entries with equal reference value are copied. 
	   The reference column for a table is defined with the
           command SET/REFCOLUMN. 
	   The functions are the same if you use the same table as input and 
	   output. Note that in this case, if the reference column is not 
	   defined (sequence number is acting as reference), then the 
	   N selected entries are copied to the first N rows.
           This command can be used to transform a column of a certain type
           to a column of an another type.
\on\sa
See also:
           PROJECT/TAB, COPY/TAB, SET/REFC
\as\exs
Examples:
\ex
           COPY/TT table1 :INPUT table2 :OUTPUT
	     Copy the entries of column :INPUT of table 'table1.tbl'
	     to column labeled :OUTPUT of table 'table2.tbl'.
	     If reference columns were defined for the two tables, only
	     those entries of :INPUT would be copied where the entries
	     in the reference columns of the two table match.
             Without reference columns all entries would be copied.
\xe \sxe
