CL Command Reference - COPYRIGHT

CL Command List > COPYRIGHT Reference

Description:

The Copyright (COPYRIGHT) command defines the text of a copyright statement to be added to a CL module.

Restrictions:

. The COPYRIGHT command is valid only within an ILE CL module.

. If used, the COPYRIGHT command must follow the PGM command and must precede any other commands except for DCL, DCLF, and DCLPRCOPT.

. Only one COPYRIGHT command will be used by the CL compiler; if more than one are specified, only the first one is used, and warning messages will be issued for additional COPYRIGHT statements.


Examples:

Example 1: Setting the Copyright Text for a CL Module

COPYRIGHT TEXT(¡¯Copyright ACME Corp. 1995. All rights reserved.¡¯)

This command specifies the copyright text for the module being created. This text will be displayed when a user runs the Display Module (DSPMOD) command, specifying DETAIL(*COPYRIGHT), for the module.