cobol1.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
COPY Statement (↑ Statements)
 Key                                       Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Construct:    COPY statement
 
  Function:     Include separate text files with optional string
                replacement
 
  Syntax:
 
  ─COPY─┬─text-name──────────────────┬─┬──────────────────────────────┬─
          └─external-file-name-literal─┘ └┬─OF─┬┬─library-name─────────┬┘
                                          └─IN─┘└─library-name-literal─┘
 
   ─┬──────────┬─
     └─SUPPRESS─┘
 
   ─┬──────────────────────────────────────────────────────────┬─────────
     │           ┌────────────────────────────────────────────┐ │
     │           ▼                                            │ │
     └─REPLACING─┬─==psuedo-text-1==─┬─BY─┬─==psuedo-text-2==─┬─┘
                 ├─identifier-1──────┤    ├─identifier-2──────┤
                 ├─literal-1─────────┤    ├─literal-2─────────┤
                 └─word-1────────────┘    └─word-2────────────┘
                                    -♦-