Skip to content

ZosPrefixMappings

The ZosPrefixMappings object is a collection of all data set name prefix mappings for a folder. This object is obtained using the Prefixes property of the ZosDataSetFolder object.

ZosPrefixMappings Properties

ZosPrefixMappings exposes the following properties:

Property Type R/W Description
[index] [name] ZosPrefixMapping R Prefix mapping with specified index or data set name pattern.
Count Int32 R Number of objects in collection.
Path String R File system path name for collection.

ZosPrefixMappings Methods

ZosPrefixMappings exposes the following methods:

Add Method

Adds a new prefix mapping. Index indicates position for new item. Specify –1 to insert at end. Returns index at which object has been added.

Overloads

Add(Int32, ZosPrefixMapping)

Int32  Add(  
    Int32 index,  
    ZosPrefixMapping mapping  
    ) 

...

Add(Int32, String, String)

Int32  Add(  
        Int32 index,  
        String dsName,  
        String prefix  
        ) 

...

Find Method

Searches for mapping with specified name and returns reference to object. Returns null if name is not found.

ZosPrefixMapping  Find(
        String name  
      ) 

FindIndex Method

Searches for mapping with specified name and returns zero-based index. Returns -1 if name is not found.

Int32  FindIndex(
        String name  
      ) 

FromArray Method

Copies the contents of a one-dimensional array into the collection. The existing contents of the collection are completely replaced.

void  FromArray(  
    ZosPrefixMapping[] array  
    ) 

Move Method

Changes the order of prefix mappings.

Int32  Move(  
        Int32 indexTo,  
        Int32 indexFrom  
    ) 

Refresh Method

Refreshes collection.

void  Refresh()

Remove Method

Deletes a prefix mapping, specified by data set name pattern. Returns true if item was removed or false if item is not found.

Boolean  Remove(  
    String name  
    ) 

RemoveAt Method

Deletes a prefix mapping, specified by index.

void  RemoveAt(  
    Int32 index  
    ) 

ToArray Method

Copies the entire collection to a onedimensional array.

ZosPrefixMapping[] ToArray() 

...

Back to top