 
 
               
             
 
               
             
 
               
             
 
               
            

 The SUPPRESS phrase is used to suppress the printing of the contents of the copy member on the source listing.
 The SUPPRESS phrase is used to suppress the printing of the contents of the copy member on the source listing. 
                     	 
                   If the word COPY appears in a comment-entry or in the place where a comment entry can appear, it is considered part of the
                        comment-entry.
 If the word COPY appears in a comment-entry or in the place where a comment entry can appear, it is considered part of the
                        comment-entry. 
                        		 
                     		
                      A COPY statement that appears in a comment-entry is processed.
 A COPY statement that appears in a comment-entry is processed. 
                        		
                     


 This restriction is removed.
 This restriction is removed. 
                        		
                     



 External-file-name-literal is an alphanumeric literal that conforms to the operating system rules for file-names. It can be
                        specified with or without enclosing quotation marks.
 External-file-name-literal is an alphanumeric literal that conforms to the operating system rules for file-names. It can be
                        specified with or without enclosing quotation marks. 
                        		
                     
Text-names and unquoted external-file-name-literals are always converted to upper case.
 Library-name-literal is an alphanumeric literal that conforms either to the operating system rules for file-names or to the
                     operating system rules for device identifiers. It can be specified with or without enclosing quotation marks.
 Library-name-literal is an alphanumeric literal that conforms either to the operating system rules for file-names or to the
                     operating system rules for device identifiers. It can be specified with or without enclosing quotation marks. 
                     		
                     Library-name-literals not inside quotation marks are always converted to upper case.

 External-file-name-literal and library-name-literal, when enclosed in quotation marks, may contain the $, #, and @ characters.
 External-file-name-literal and library-name-literal, when enclosed in quotation marks, may contain the $, #, and @ characters.
                     
                     	 
                  
 Partial-word-1 must consist of one text-word.
 Partial-word-1 must consist of one text-word. 
                     	 
                  
 Partial-word-2 must consist of zero or one text-word.
 Partial-word-2 must consist of zero or one text-word. 
                     	 
                  
 Neither a nonnumeric literal nor a national literal can be specified as partial-word-1 or partial-word-2.
 Neither a nonnumeric literal nor a national literal can be specified as partial-word-1 or partial-word-2. 
                     	 
                  

 A concatenation expression must not be specified for external-file-name-literal, library-name-literal, literal-1 or literal-2.
 A concatenation expression must not be specified for external-file-name-literal, library-name-literal, literal-1 or literal-2.
                     
                     	 
                  If the REPLACING phrase is specified, the library text is copied and each properly matched occurrence of pseudo-text-1, identifier-1, literal-1, word-1 and partial-word-1 in the library text is replaced by the corresponding pseudo-text-2, identifier-2, literal-2, word-2 or partial-word-2.

 When the LEADING phrase is specified, partial-word-1 matches the library text only if the contiguous sequence of characters
                           that forms partial-word-1 is equal, character for character, to an equal number of contiguous characters starting with the
                           leftmost character position of a library text-word. When the TRAILING phrase is specified, partial-word-1 matches the library
                           text only if the contiguous sequence of characters that forms partial-word-1 is equal, character for character, to an equal
                           number of contiguous characters, ending with the rightmost character position of a library text-word.
 When the LEADING phrase is specified, partial-word-1 matches the library text only if the contiguous sequence of characters
                           that forms partial-word-1 is equal, character for character, to an equal number of contiguous characters starting with the
                           leftmost character position of a library text-word. When the TRAILING phrase is specified, partial-word-1 matches the library
                           text only if the contiguous sequence of characters that forms partial-word-1 is equal, character for character, to an equal
                           number of contiguous characters, ending with the rightmost character position of a library text-word. 
                           		  
                        

 Each operand and operator of a concatenation expression is a separate text-word.
 Each operand and operator of a concatenation expression is a separate text-word. 
                                 				
                              
 When a match occurs between partial-word-1 and the library text-word, the library text-word is placed into the resultant text
                              with the matched characters either replaced by partial-word-1 or deleted when partial-word-2 consists of zero text-words.
 When a match occurs between partial-word-1 and the library text-word, the library text-word is placed into the resultant text
                              with the matched characters either replaced by partial-word-1 or deleted when partial-word-2 consists of zero text-words.
                              
                              			 
                           
The library text-word immediately following the rightmost text-word that participated in the match is then considered as the leftmost text-word. The comparison cycle starts again with the first pseudo-text-1, identifier-1, word-1, literal-1 or partial-word-1 specified in the REPLACING phrase.
 This text can contain a COPY statement provided neither this contained COPY nor the already expanded COPY includes the REPLACING
                        phrase. However, recursive COPY statements (where a library-text is referred to by a COPY statement within it) are not allowed.
 This text can contain a COPY statement provided neither this contained COPY nor the already expanded COPY includes the REPLACING
                        phrase. However, recursive COPY statements (where a library-text is referred to by a COPY statement within it) are not allowed.
                        
                        		
                     
 COPY statements may be nested in this way to any level. One of the COPY statements in this structure may include the REPLACING
                        phrase, and the replacements specified are in effect for all subsidiary COPY statements.
 COPY statements may be nested in this way to any level. One of the COPY statements in this structure may include the REPLACING
                        phrase, and the replacements specified are in effect for all subsidiary COPY statements. 
                        		
                     
 
                        		   Except for COPY statements,
 Except for COPY statements, 
                           		   
                        		
                     
the syntactic correctness of the entire COBOL compilation group cannot be determined until all COPY statements have been completely processed.
 If the REPLACING phrase is specified, the library text must not contain an EXEC HTML statement. Violation of this rule may
                     result in unexpected behavior and syntax errors.
 If the REPLACING phrase is specified, the library text must not contain an EXEC HTML statement. Violation of this rule may
                     result in unexpected behavior and syntax errors. 
                     	 
                  If additional lines are introduced into the source text as a result of a COPY statement, each text-word introduced appears on a debugging line if the copy statement begins on a debugging line, or if the text-word being introduced appears on a debugging line in library text. When a text-word specified in the BY phrase is introduced, it appears on a debugging line if the first library text-word being replaced is specified on a debugging line. Except in the preceding cases, only those text-words that are specified on debugging lines where the debugging line is within pseudo-text-2 appear on debugging lines in the resultant source text. If any literal specified as literal-2 or within pseudo-text-2 or library text is of too great a length to be accommodated on a single line without continuation to another line in the resultant source text and the literal is not being placed on a debugging line, additional continuation lines are introduced which contain the remainder of the literal. If replacement requires that the continued literal be continued on a debugging line, the compilation group is in error.
 The OLDCOPY Compiler directive causes the entire entry to be replaced by the information identified by text-name, except that
                     the data-name preceding the COPY statement replaces the corresponding data-name in the text-name.
 The OLDCOPY Compiler directive causes the entire entry to be replaced by the information identified by text-name, except that
                     the data-name preceding the COPY statement replaces the corresponding data-name in the text-name. 
                     	 
                   If certain conventions are followed in library text, parts of names, for example the prefix portion of data-names, can be
                     changed with the REPLACING phrase. To use this type of "partial word replacement" the portion of the words to be modified
                     must be enclosed in one of the following ways:
 If certain conventions are followed in library text, parts of names, for example the prefix portion of data-names, can be
                     changed with the REPLACING phrase. To use this type of "partial word replacement" the portion of the words to be modified
                     must be enclosed in one of the following ways: 
                     		
                     Examples of the following are provided in the chapter Examples in your Language Reference - Additional Topics: