HELPLIB.HLB  —  CMS  CREATE  CLASS
    Creates one or more empty classes.
       Format:

          CREATE CLASS  class-name[,...] "remark"

1  –  Command Parameters

 class-name

    Specifies a name for the class. CMS reports an error if you
    specify a name that is already used for an existing class or
    group. (Class and group names must be unique.) If a previously
    used class or group name has been removed with the DELETE CLASS or
    DELETE GROUP command, you can reuse that name with CREATE CLASS. A
    class name can also be a list of class names separated by commas.
    Wildcards are not allowed.

 remark

    Specifies a character string for the creation remark of the class
    to be logged in the history file with this command. The remark
    is enclosed in quotation marks. If no remark was entered, a null
    remark ("") is logged.

2  –  Description

    The CREATE CLASS command establishes a class. After a class is
    created, you can place any related set of element generations
    in that class by using the INSERT GENERATION command. The CREATE
    CLASS command does not automatically place any generations in the
    created class.

3  –  Qualifiers

3.1    /LOG (D)

    Controls whether CMS displays success and informational messages
    on the default output device. By default, if the command executes
    successfully, CMS displays a success message. If you specify
    /NOLOG, success and informational messages are suppressed. Any
    warning, error, or fatal error messages are displayed regardless
    of whether /LOG or /NOLOG is specified.

3.2    /OCCLUDE[=option,...]

    Controls whether CMS selects the first instance of the specified
    object, or all instances of the specified object in the library
    search list. The options field contains one or more keywords
    associated with the name of the object. The options field can
    contain the following keywords:

       ALL--equivalent to CLASS
       CLASS (D)
       NOCLASS
       NONE--equivalent to NOCLASS

    You can specify either ALL, NONE, or the [NO]CLASS keyword.

    By default, CMS performs occlusion for all objects; that is, CMS
    selects only the first occurrence of a specified object. If you
    specify /OCCLUDE=NOCLASS, CMS creates a class in every library in
    the search list.

4  –  Examples

    (1) CMS> CREATE CLASS INTERNAL_RELEASE "for internal use only"
        %CMS-S-CREATED, class DISKX:[PROJECT.CMSLIB]INTERNAL_RELEASE created

      This command creates a class named INTERNAL_RELEASE. Once the
      class name is established, element generations can be placed in
      the class with the INSERT GENERATION command.

    (2) CMS> CREATE CLASS FTEST1,FTEST2,V1 "for external release"
        %CMS-I-CREATED, class DISKX:[PROJECT.CMSLIB]FTEST1 created
        %CMS-I-CREATED, class DISKX:[PROJECT.CMSLIB]FTEST2 created
        %CMS-I-CREATED, class DISKX:[PROJECT.CMSLIB]V1 created
        %CMS-S-CREATES, 3 creations completed

      This command creates the three classes FTEST1, FTEST2, and V1.
Close Help