Skip to content

ZosPackageInfo

The ZosPackageInfo object represents a set of package properties that can be used to create a new package.

An empty ZosPackageInfo object can be created using the default constructor. You can then set the desired ZosPackageInfo properties before using it to create a new package.

You can clone the properties of another package using the GetInfo method of ZosPackage to copy the properties of an existing package set into a new ZosPackageInfo object. There is also one form of the ZosPackageInfo constructor that initializes the properties from an existing package. This cloned ZosPackageInfo object can be used to create a new package after making any desired changes to its properties.

ZosPackageInfo Constructors

The default constructor can be used to create a new ZosPackageInfo object. Because the constructor has no arguments, you must initialize the object by setting its properties.

ZosPackageInfo()

ZosPackageInfo() 

ZosPackageInfo(ZosPackage)

This constructor copies the properties from an existing package.

ZosPackageInfo(  
        ZosPackage package 
        ) 

Parameters

package - Existing package from which to copy properties.

ZosPackageInfo Properties

ZosPackageInfo exposes the following properties:

Property Type R/W Description
Title String R/W Package title.
RequestorName String R/W Requestor name.
RequestorPhone String R/W Requestor telephone number.
WorkRequest String R/W Work request number or name.
Department String R/W Department number or name.
SuperPackage String R/W Parent complex or super package.
Release String R/W Name of ERO release with which package is associated.
ReleaseArea String R/W Name of starting release area for release package check in.
Level ZosPackageLevel R/W Package level.
Type ZosPackageType R/W Package type.
TempDuration Int32 R/W Temporary change duration. This property is available for temporary packages only.
ReasonCode Int32 R/W Reason code.
Description String R/W Package description. The description is a single string, but can contain multiple lines, delimited by newline characters. When setting the description if a line exceeds 72 characters, the text will automatically be split on word boundaries into multiple lines.
SchedulerType ZosSchedulerType R/W Scheduler type. This property is available for simple and participating packages only.
ProblemActionType ZosProblemActionType R/W Problem action code. This property is available for simple and participating packages only.
OtherProblemAction String R/W Other problem action. This property is available for simple and participating packages only.
ImplementationInstructions String R/W Implementation instructions. The implementation instructions consist of a single string, but can contain multiple lines, delimited by newline characters. When setting the implementation instructions, if a line exceeds 72 characters, the text will automatically be split on word boundaries into multiple lines. This property is available for simple and participating packages only.
ParticipatingPackages String[] R/W Participating packages. The value is an array of strings, each containing a package name. This property is available for complex and super packages only.
AffectedApplications String[] R/W Affected applications. The value is an array of strings, each containing an application name. This property is available for participating packages only.
PredecessorJobs String[] R/W Predecessor jobs. The value is an array of strings, each containing a job name. This property is available for simple and participating packages only.
SuccessorJobs String[] R/W Successor jobs. The value is an array of strings, each containing a job name. This property is available for simple and participating packages only.
UserVariables ZosNameValue[] R/W User variables. Each user variable is a name/value pair. See the UserVariables table below for a list of valid variable names.
Sites ZosPackageSite[] R/W Package site information. The value is an array of package site objects. This property is available for simple and participating packages only.
Site ZosPackageSite R/W Package site information. The value is a single package site object for packages with single sites. This property is available for simple and participating packages with a single site only.

...

UserVariables Table

User variables are a set of name/value pairs. Each name must be one of the names in the table below.

Variable Name Value Length
UserVarLen101 - UserVarLen199 1
UserVarLen201 - UserVarLen211 2
UserVarLen301 - UserVarLen310 3
UserVarLen401 - UserVarLen410 4
UserVarLen801 - UserVarLen810 8
UserVarLen1601 - UserVarLen1605 16
UserVarLen4401 - UserVarLen4405 44
UserVarLen7201 - UserVarLen7205 72

...

Back to top