HP 3000 Manuals

COPY [ HPTOOLSET XL Reference Manual ] MPE/iX 5.0 Documentation


HPTOOLSET XL Reference Manual

COPY 

Copies text to a file, from a file, or from one position to another
within the edit file.

Syntax 

     COP[Y]

            {char range                    [TO filename     ] [BY increment]}
            {                              [TO char position]               }
            {                                                               }
            {filename[vers des][char range][TO char position] [BY increment]}

            [Q[UIET]]

Parameters 

Char Range       Defines the range of characters to be copied.  If the
                 copy is from another file, the default character range
                 is ALL. Character range is separated by a slash.

                 line position [(column#)] [/line position[(column#)]] or
                 ALL

Filename         The name of the file which is to be copied.  This
                 parameter is to be used when copying between files.

Vers Des         Allows you to copy a particular version of a file.  If
(Version         you do not specify a default, it will be the LATEST
Designator)      version of an owned file, the REFERENCE version of a
                 file which is not owned, or a file upon which a USE has
                 been issued.

TO               Defines the destination filename and/or character
                 position.  If you do not define a destination file, text
                 will be copied into the edit file.

Char Position    Line position [(column#)]

BY increment     Allows you to copy the text by a specific increment.

QUIET            Suppresses output to $STDLIST.

Description 

At the end of a copy, text exists at both the source and the destination.
If the copy is being made from one file into the edit file, the file must
be a TSAM, numbered USASCII, or numbered KSAM file with a record length
less than or equal to 132 bytes.  If the file that is being copied
contains records that are longer than those in the edit file, the lines
will be truncated as they are copied.

There must be sufficient space (unused line numbers) to allow the text to
be copied.  If enough space does not exist, TOOLSET/XL will not begin the
copy.

If you do not specify an increment, TOOLSET/XL will calculate one.

Example 

     (1)  >>COPY FILE1 TO 103.1
          103.1                   line 1
          103.2                   line 2
          103.3                   line 3
          103.4                   line 4
          103.5                   line 5
          103.6                   line 6
          103.7                   line 7
          103.8                   line 8
          103.9                   line 9
          104                     line 10
          104.1                   line 11
          104.2                   line 12
          104.3                   line 13
          104.4                   line 14
          104.5                   line 15
     >>

     (2)  >>COPY 355/400 TO 455 BY .01
          455.01                  type
          455.02
          455.03                  lab_engineer=packed array[1..8] of ' '..'Z';
          455.04
          455.05                  sr  =  integer;
          455.06
          455.07                  fix_number  =  integer;
          455.08
          455.09                  stars  =  packed array[1..2] of    .. Z ;
          455.1
      >>

     >>COPY 5(14)/5(30) TO 60
        60                  45678901234567890


MPE/iX 5.0 Documentation