Skip to content

ZosFileExtensionMappings

The ZosFileExtensionMappings object is a collection of all file extension definitions for a server. This object is obtained using the FileExtensions property of the ZosServer object.

ZosFileExtensionMappings Properties

ZosFileExtensionMappings exposes the following properties:

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

...

ZosFileExtensionMappings Methods

ZosFileExtensionMappings exposes the following methods:

Add

Adds a new file extension definition. Index indicates position for new item. Specify –1 to insert at end.

Add (
    nIndex, 
    strDataSetName, 
    strFileExtension
    )

Returns

Object (IZosFileExtensionMapping)

Move

Changes the order of file extension definitions.

Move (
    nIndexTo, 
    nIndexFrom
    )

...

Refresh

Refresh () | | Refreshes collection.|

...

Remove

Deletes a file extension, specified by index or data set name pattern.

Remove (
    varIndex
    )

...

Back to top