Skip to content

ZosPromotionLibrary

The ZosPromotionLibrary object represents a ChangeMan library for a promotion level. This object can be obtained using the GetLibrary or GetLibraries methods of ZosPromotionLevel.

ZosPromotionLibrary Properties

ZosPromotionLibrary exposes the following properties:

Property Type R/W Description
Name String R Library type name.
Path String R Full file system path name for the library
SiteName String R Promotion site name
PromotionName String R Promotion level name
PromotionLevel Int16 R Promotion level number
IsUnix Boolean R Indicates whether the library is a PDS or Unix directory
DataSetName String R Data set name or Unix path name

ZosPromotionLibrary Methods

ZosPromotionLibrary exposes the following methods:

GetPdsComponent Method

Gets a single component of a promotion PDS library by name. Component name can be specified with or without an extension.

ZosPdsMember  GetPdsComponent(  
        String name  
        )

GetPdsComponents Method

Gets an array of components that belong to a promotion PDS library. The list can optionally be filtered by component name.

nameFilter - Component name filter (pattern)

changeTime - get components changed after the specified time.

Overloads

ZosPdsMember[] GetPdsComponents()

ZosPdsMember[]  GetPdsComponents()

...

ZosPdsMember[] GetPdsComponents(String)

ZosPdsMember[]  GetPdsComponents(
        String nameFilter
        ) 

...

ZosPdsMember[] GetPdsComponents(DateTime)

ZosPdsMember[]  GetPdsComponents(
        DateTime changeTime
        ) 

...

ZosPdsMember[] GetPdsComponents(String, DateTime)

ZosPdsMember[]  GetPdsComponents(
        String nameFilter, 
        DateTime changeTime
        ) 

...

GetUnixComponent Method

Gets a single component of a promotion Unix library by file name.

ZosUnixObject[]  GetUnixComponent(  
        String name  
        )

GetUnixComponents Method

Gets an array of components that belong to a promotion Unix library. The list can optionally be filtered by component name.

For Unix libraries, components are retrieved hierarchically. This function only returns components in a specified subdirectory.

The array returned contains both directory and file objects.

dirName - Subdirectory name

nameFilter - Componenent name filter (pattern)

changeTime - get components changed after the specified time.

Overloads

ZosUnixObject[] GetUnixComponents()

ZosUnixObject[]  GetUnixComponents() 

...

ZosUnixObject[] GetUnixComponents(DateTime)

ZosUnixObject[]  GetUnixComponents(  
        DateTime changeTime  
        ) 

...

ZosUnixObject[] GetUnixComponents(String)

ZosUnixObject[]  GetUnixComponents(  
        String dirName  
        )

...

ZosUnixObject[] GetUnixComponents(String, String)

ZosUnixObject[]  GetUnixComponents(  
        String dirName,  
        String nameFilter  
        )

...

ZosUnixObject[] GetUnixComponents(String, String, DateTime)

ZosUnixObject[]  GetUnixComponents(  
        String dirName,  
        String nameFilter,  
        DateTime changeTime  
        )

...

Refresh Method

Refreshes the library information.

void  Refresh()

...

Back to top