TransactionParser
    Preparing search index...

    Interface ICopybookItem

    ICopybookItem interface is a helper interface for representation of a line in a COBOL copybook.

    This interface is implemented by DataItem

    interface ICopybookItem {
        children?: ICopybookItem[];
        dataPosition: IDataPosition;
        decimals?: number;
        length: number;
        level: number;
        name: string;
        occurs?: number;
        picture: picture;
        redefines?: ICopybookItem;
        signed: boolean;
        usage: usageType;
        value?: string;
        setValue(value: any): void;
        toBuffer(): Buffer;
    }

    Implemented by

    Index

    Properties

    children?: ICopybookItem[]

    List of copybook items containing all children under the current copybook item

    dataPosition: IDataPosition

    Object representing the offset of this copybook item in a transaction and the byteLength of this copybook item determined by the picture, length and usageType

    decimals?: number

    Amount of decimals used, related to PIC clauses defining decimals. Currently not in use, optional

    length: number

    Total length of the copybook item

    level: number

    Level at which this ICopybookItem resides

    name: string

    Name of the copybook item

    occurs?: number

    Amount of times this copybook item occurs, optional

    picture: picture

    Picture clause of the copybook item

    redefines?: ICopybookItem

    Reference to copybook item which the current copybook item redefines, optional

    signed: boolean

    Indicator if the copybook item is signed

    usage: usageType

    Usage of the current copybook item, e.g DISPLAY or COMP-3

    value?: string

    Value for the current copybook item. Currently not in use, optional

    Methods