Skip to content

ZosLibypeMappings

The ZosLibypeMappings object is a collection of all library type definitions for a server. This object is obtained using the LibTypes property of the ZosServer object. Library types only need to be defined if you are using Librarian or Panvalet libraries.

ZosLibypeMappings Properties

ZosLibypeMappings exposes the following properties:

Property Type R/W Description
Item (varIndex) Object (IZosLibypeMapping) R Library type definition with specified index or data set name pattern.
Count Integer (long) R Number of objects in collection.

ZosLibypeMappings Methods

ZosLibypeMappings exposes the following methods:

Add Method

Adds a new library type definition. Library type can be "S" (Standard), "L" (Librarian), or "P" (Panvalet).
Index indicates position for new item. Specify –1 to insert at end.

Add ( 
    nIndex, 
    strDataSetName,  
    strDataType  
    )

Returns

Object (
    IZosLibypeMapping
    ) 

Refresh Method

Refreshes collection.

Refresh ()

...

Remove Method

Deletes a library type, specified by index or data set name pattern.

Remove (
    varIndex
    )

Move Method

Changes the order of library type definitions.

Move (
    nIndexTo, 
    nIndexFrom
    )

Examples of using ZosLibypeMappings:

Visual Basic or VBScript:

Dim objLibTypes
    objLibTypes.Add –1, "**.PANVALET", "P"
    ObjLibTypes.Remove "**.LIBRARY"
    ObjLibTypes.Move 4,2

JScript:

var objLibTypes;
    objLibTypes.Add(–1, "**.PANVALET", "P");
    ObjLibTypes.Remove("**.LIBRARY");
    ObjLibTypes.Move(4,2);

...

Back to top