VMS Help  —  COBOL  COPY statement
  The COPY statement includes text in a COBOL source program.

1  –  1format_text-name

  The COPY statement includes text in a COBOL source program.

  Format 1 -

  COPY text-name [ { OF } library-name ]
                 [ { IN }              ]

     [          { { ==pseudo-text-1==  }    { ==pseudo-text-2== } }     ]
     [REPLACING { { identifier-1       } BY { identifier-2      } } ... ] .
     [          { { literal-1          }    { literal-2         } }     ]
     [          { { word-1             }    { word-2            } }     ]

1.1  –  text-name

  is the name of a COBOL library file available during compilation.

1.2  –  library-name

  is the name of the OpenVMS Librarian library file that contains
  text-name.

1.3  –  1__pseudo-text-1__identifier-1__literal-1__word-1

  are text-matching arguments that the compiler compares against
  text-words in the library text.

1.4  –  2__pseudo-text-2__identifier-2__literal-2__word-2

  are replacement items that the compiler inserts into the source
  program.

2  –  2format_record-name

  The COPY statement includes text in a COBOL source program.

  Format 2 -

  COPY record-name FROM DICTIONARY

     [          { { ==pseudo-text-1==  }    { ==pseudo-text-2== } }     ]
     [REPLACING { { identifier-1       } BY { identifier-2      } } ... ] .
     [          { { literal-1          }    { literal-2         } }     ]
     [          { { word-1             }    { word-2            } }     ]

2.1  –  record-name

  is a partial or complete Common Data Dictionary/Repository (CDD/Repository)
  pathname.  It specifies the CDD/Repository record description to be copied
  into the source program.

2.2  –  1__pseudo-text-1__identifier-1__literal-1__word-1

  are text-matching arguments that the compiler compares against
  text-words in the library text.

2.3  –  2__pseudo-text-2__identifier-2__literal-2__word-2

  are replacement items that the compiler inserts into the source
  program.
Close Help