Skip to content

ZosFileFormatMappings

The ZosFileFormatMappings object is a collection of file format definitions for a server or

ChangeMan instance. This object is obtained using the DataSetFileFormats property or the UnixFileFormats property of the ZosServer object. For ChangeMan instances, it can be obtained using the FileFormats property of the ZosChangeManInstance object.

ZosFileFormatMappings Properties

ZosFileFormatMappings exposes the following properties:

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

...

ZosFileFormatMappings Methods

ZosFileFormatMappings exposes the following methods:

Add Method

Adds a new file format definition.

Add ( 
    nIndex, 
    strName,  
    strFileFormat  
    )

Parameters

nIndex - Index indicates position for new item. Specify –1 to insert at end.

strFileFormat - One of the following values that specifies the file format: - "AT" (ASCII Text) - "AD" (ASCII Data) "ET" (EBCDIC Text) - "ED" (EBCDIC Data) - "UT" (UNICODE Text) - "VT" (UTF-8 Text) - "B" (Binary) - "BT" (Binary CRLF)

Returns

Object (IZosFileFormatMapping)

Move Method

Changes the order of file format definitions.

Move ( 
    nIndexTo,  
    nIndexFrom  
    )

Refresh Method

Refreshes collection.

Refresh ()

Remove Method

Deletes a file format, specified by index or name pattern.

Remove (
    varIndex
    )

...

Examples of using ZosFileFormatMappings:

Visual Basic or VBScript:

Dim objFileFormats
    objFileFormats.Add –1, "**.BINARY", "B"
    objFileFormats.Remove "**.TRASH"
    objFileFormats.Move 4,2

JScript:

var objFileFormats;
    objFileFormats.Add(–1, "**.BINARY", "B");
    objFileFormats.Remove("**.TRASH");
    objFileFormats.Move(4,2);
Back to top