HP COBOL II/XL Quick Reference Guide (31500-90015)

D- 1
Appendix D COBEDIT Program
The COBEDIT program develops and maintains COPY libraries. This program
resides in the PUB group of the SYS account. It allows you to create,
modify, and list a COBOL COPY library file.
To enter the COBEDIT program, issue the following command:
COBEDIT
Table D-1. COBEDIT Commands
---------------------------------------------------------------------------
| | |
| Command | Meaning |
| | |
---------------------------------------------------------------------------
| | |
| BUILD | Build a COPYLIB file. |
| | |
| COPY | Copy modules into the library as in the BUILD |
| | command. |
| | |
| EDIT | Create or edit a module to add to a COPYLIB file. |
| | |
| EXIT | Leave the COBEDIT program. |
| | |
| HELP | List all COBEDIT commands. |
| | |
| KEEP | Add a module to the currently active COPYLIB file. |
| | |
| LIBRARY | Activate an already existing COPYLIB file. |
| | |
| LIST | List text-names or one or more modules of the |
| | currently active COPYLIB file. |
| | |
| PURGE | Purge a module of the currently active library or |
| | purge the library itself. |
| | |
| SHOW | Show the name of the current library, its key file |
| | and the latest module to be accessed. |
| | |
---------------------------------------------------------------------------
BUILD
The BUILD command allows you to build a new KSAM file to be used as a
library file.
Syntax
BUILD [
file-name
] [ ,
maxrecs
]
Parameters
file-name
any name you wish to give your new library file,
subject to the naming conventions for any MPE file.
The
file-name
may be from one to eight alphanumeric
characters, the first of which must be alphabetic.
maxrecs
if specified, must be greater than 0. It specifies
the maximum number of records that may be placed in
the file being built. If no value is specified for
maxrecs
, the default is 2500.