Start of changeControl PTF Order (QESCPTFO) API


  Required Parameter Group:

1 PTF order information Input Char(*)
2 Length of PTF order information Input Binary(4)
3 Format of PTF order information Input Char(8)
4 Contact information Input Char(*)
5 Length of contact information Input Binary(4)
6 Format of contact information Input Char(8)
7 Receiver variable Output Char(*)
8 Length of receiver variable Input Binary(4)
9 Format of receiver variable Input Char(8)
10 Error Code I/O Char(*)

  Default Public Authority: *EXCLUDE

  Threadsafe: No;

The Control PTF Order (QESCPTFO) API allows you to prepare an order for:

This API is restricted to be used for PTFs for V5R3M0 and above.


Authorities and Locks

Data Queue Authority
*OBJOPR and *ADD

Data Queue Library Authority
*EXECUTE

Directory Authority
Authority to the path and file are determined by the open() API. For details, see the Authorities section of the open()--Open File API for files opened with an access mode of O_WRONLY and O_TRUNC.

Required Parameter Group

PTF order information
INPUT; CHAR(*)

The information of the PTF order. The format of this information depends on the specified Format of PTF order information.

Length of PTF order information
INPUT; BINARY(4)

The size of the PTF order information variable

Format of PTF order information
INPUT; CHAR(8)

The format of the PTF order information specified. You must use one of the following format names:

PTFO0100 Process PTF order. The information of the PTF order is described by PTFO0100 Format.
PTFO0200 Resume PTF order. The information of the PTF order is described by PTFO0200 Format.
PTFO0300 Cancel PTF order. The information of the PTF order is described by PTFO0300 Format.

Contact information
INPUT; CHAR(*)

The contact information to be used by your service representative to contact you or send you service information. The format of this information depends on the specified Format of contact information.

Length of contact information
INPUT; BINARY(4)

The size of the contact information variable. If zero is specified, the existing contact information in the system is passed to the service provider. Zero can only be specified when CNTC0000 is specified for the format of contact information.

Format of contact information
INPUT; CHAR(8)

The format of the contact information specified. You must use one of the following format names:

CNTC0000 No contact information is provided. The existing contact information in the system is passed to the service provider. Length of contact information parameter should be set to zero.
CNTC0100 The contact information is described by CNTC0100 Format.

Receiver variable
OUTPUT; CHAR(*)

The variable that is to receive the actual list of PTFs delivered. The format of this information depends on the specified Format of receiver variable.

Length of receiver variable
INPUT; BINARY(4)

The size of the receiver variable. If the receiver variable is not large enough to hold the complete list of PTFs delivered, the returned list is truncated.

Format of receiver variable
INPUT; CHAR(8)

The format of the returned information. You must use one of the following format names:

PTFD0100 The information returned is described by PTFD0100 Format.

Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error Code Parameter.


PTFO0100 Format

The following information is to be passed on PTF order information parameter to process a new PTF order. For a detailed description of each field, see Field Descriptions.

Offset Type Field
Dec Hex
0 0 BINARY(4) Length of fixed size order information
4 4 BINARY(4) Offset to PTFs ordered
8 8 BINARY(4) Number of PTFs ordered
12 C BINARY(4) Length of PTFs ordered entry
16 10 BINARY(4) Maximum order size
20 14 CHAR(10) PTF parts to order
30 1E CHAR(10) Delivery method
40 28 CHAR(10) Delivery format
50 32 CHAR(10) Requisites
60 3C CHAR(10) Reorder
70 46 CHAR(10) Check
80 50 BINARY(4) Offset to image directory
84 54 BINARY(4) Length of image directory
88 58 CHAR(10) Image prefix
98 62 CHAR(10) Name of status data queue
108 6C CHAR(10) Library of status data queue
118 76 CHAR(2) Reserved
120 78 BINARY(4) Update interval
124 7C BINARY(4) Wait time for order completion
* * CHAR(*) Image directory
These fields repeat for each PTF ordered. CHAR(10) PTF identifier ordered
CHAR(7) Product
CHAR(6) Release

PTFO0200 Format

The following information is to be passed on PTF order information parameter when resuming a PTF order. For a detailed description of each field, see Field Descriptions.

Offset Type Field
Dec Hex
0 0 CHAR(31) Order identifier
31 1F CHAR(1) Reserved
32 20 BINARY(4) Wait time for order completion

PTFO0300 Format

The following information is to be passed on PTF order information parameter when cancelling a PTF order. For a detailed description of each field, see Field Descriptions.

Offset Type Field
Dec Hex
0 0 CHAR(31) Order identifier

CNTC0100 Format

Use this format to include contact information on the PTF order. For detailed descriptions of the fields in this table, see Field Descriptions

Offset Type Field
Dec Hex
0 0 CHAR(36) Company name
36 24 CHAR(36) Contact name
72 48 CHAR(20) Primary telephone number
92 5C CHAR(20) Help Desk or Pager number
112 70 CHAR(20) Primary fax number
132 84 CHAR(20) Alternative Fax number
152 98 CHAR(36) Street address line 1
188 BC CHAR(36) Street address line 2
224 E0 CHAR(36) Street address line 3
260 104 CHAR(36) City or locality
296 128 CHAR(36) State or province
332 14C CHAR(20) Country or region
352 160 CHAR(12) Postal code
364 16C BINARY(4) Offset to primary electronic mail address
368 170 BINARY(4) Length of primary electronic mail address
372 174 BINARY(4) Offset to alternative electronic mail address
376 178 BINARY(4) Length of alternative electronic mail address
380 17C BINARY(4) Media for mailing PTFs
384 180 CHAR(10) National language version
* * CHAR(*) Primary electronic mail address
* * CHAR(*) Alternative electronic mail address

PTFD0100 Format

The following information is to be returned in the receiver variable on a process order request or on a resume order request. For a detailed description of each field, see Field Descriptions.

Offset Type Field
Dec Hex
0 0 BINARY(4) Bytes returned
4 4 BINARY(4) Bytes available
8 8 CHAR(31) Order identifier
39 27 CHAR(10) Delivery mode
49 31 CHAR(3) Reserved
52 34 BINARY(4) Offset to PTFs being delivered
56 38 BINARY(4) Number of PTFs being delivered
60 3C BINARY(4) Length of PTF being delivered entry
64 40 BINARY(4) Order preparation time
68 44 CHAR(8) Order status
These fields repeat for each PTF being delivered. CHAR(7) PTF identifier sent
CHAR(7) Product
CHAR(6) Release

Field Descriptions

Alternative electronic mail address. The electronic mail (e-mail) address for the contact person, if the primary electronic mail address is not available.

*SAME The alternative electronic mail address in the contact information of the system will be used.
*NONE No alternative e-mail address is provided for the contact person.
character-value Specify the alternative e-mail address of the contact person. For example, 'john.brown@mycompany.com'.

Alternative Fax number. The complete telephone number where information for the contact can be faxed, if the primary fax number is not available. This number should include the area code, exchange numbers, and the extension.

*SAME The alternative fax number in the contact information of the system will be used.
*NONE There is no alternative fax number for the contact person.
character-value Specify the alternative fax number.

Bytes available. The number of bytes of data available to be returned. All available data is returned if enough space is provided.

Bytes returned. The number of bytes of data returned.

Check. Indicates whether checking is performed on the service requester system to determine if PTFs are ordered based on whether or not the PTF product is installed or supported. Possible values are:

*NO The PTFs specified on the PTF order list parameter are ordered even when the PTF product is not installed or supported on the service requester.
*YES The PTFs specified on the PTF order list parameter are ordered only if the PTF product is installed or supported on the service requester.

Note: *NO must be specified when *CVRLTR is specified for PTF parts to order.

City or locality. The city or locality name for the location to which you want your service provider to send parts or assistance.

*SAME The city or locality in the contact information of the system will be used.
character-value Specify the city or locality.

Company name. The name of the organization that owns or is responsible for this system. The name should appear in this field as it appears on a mailing label.

*SAME The company name in the contact information of the system will be used.
character-value Specify the company name.

Contact name. The name of the person in your organization who is responsible for repairs and maintenance on the system. This person may be called by the service provider with information or assistance for a system problem. Also, parts or PTFs may be sent to this person.

*SAME The contact name in the contact information of the system will be used.
character-value Specify the contact person's name.

Country or region. The country or region where the company is located to which the service provider should send parts or assistance.

*SAME The country or region in the contact information of the system will be used.
character-value Specify the country or region.

Delivery format. Specifies the format the PTFs are stored. Possible values are:

*SAVF PTFs are delivered electronically as save files.
*IMAGE PTFs are delivered electronically as virtual optical image files. The optical image files will contain PTFs and cover letters. The optical image files will be stored in the directory specified in the image directory field.

Delivery method. Specifies how the PTFs are delivered. Possible values are:

*LINKONLY PTFs are delivered electronically only. If the order size exceeds the value specified in the maximum order size field, the API will fail.
*ANY PTFs are delivered by any available method. The service link is used for most PTFs. PTFs that are too large for the service link are sent on the selected medium on the media for mailing PTFs field.

Delivery mode. Specifies how the PTFs were delivered. Possible values are:

*SAVF PTFs were delivered electronically as save file objects.
*MEDIA PTFs were sent on the selected medium.
*IMAGE PTFs were delivered electronically inside an optical image. The optical image contains the save file object and the cover letter for each PTF. The optical image is stored in the directory specified by image directory field.

Help desk or pager number. The complete Help desk or pager number. This number should include the area code, exchange numbers, and the extension.

*SAME The help desk or pager number in the contact information of the system will be used.
*NONE There is no Help desk telephone number.
character-value Specify the Help desk telephone number.

Image directory. The path name of the directory where optical image files will be saved. For more information on specifying path names, refer to "Object naming rules" in "CL concepts and reference" in the CL reference information in the iSeries Information Center at http://www.iseries.ibm.com/infocenter. The following special value is accepted:

*DFT The optical image files are stored in /QIBM/UserData/OS/Service/ECS directory.

Image prefix. The prefix for the optical image file names. If multiple images are received under one order, the files will be uniquely identified by a numerical suffix on the image name. This field must be set to blanks if *IMAGE is not specified for delivery format. The following special value is accepted:

*DFT No prefix will be added at the beginning of each optical image file name. The files will be named by the service provider.

Length of alternative electronic mail address. The length of the alternative electronic mail address.

Length of fixed size order information. The length of the fixed portion of the structure passed with the order information.

Length of image directory. The length of the image directory, in bytes. This field must be set to zero if *IMAGE is not specified for delivery format.

Length of primary electronic mail address. The length of the primary electronic mail address.

Length of PTFs being delivered entry. The length of the information for each PTF being delivered.

Length of PTFs ordered entry. The length of the information required for each PTF ordered.

Library of status data queue. The library where the status data queue is located. This field must be set to blanks if the name of status data queue field is set to blanks.

Maximum order size. The maximum size in megabytes of the order to be delivered electronically. If the order size exceeds the specified value, the action to be taken depends on the value specified in the delivery method field. A value of 100 MB (MB equals approximately 1 000 000 bytes) is used if a lower value is specified. If -1 is specified for this parameter, orders of any size can be delivered electronically.

Media for mailing PTFs. The media currently used for mailing program temporary fixes (PTFs). The media options available are:

0 = *SAME The media for mailing PTFs in the contact information of the system will be used.
1 = *AUTOMATIC The system will automatically select the media to be used for sending PTFs.
2 = *CDROM PTFs will be sent on CD-ROM media.

Name of status data queue. The name of a FIFO (first-in first-out) data queue where the download status is sent. This field must be set to blanks if no status is necessary. See Usage Notes for information about the status data queue.

National language version. The national language version code currently being used for PTF cover letters. If the cover letter you ordered has not been translated into this language the cover letter will be sent in U.S. English.

*SAME The national language version in the contact information of the system will be used.
*PRIMARY The language version for the currently installed primary national language on the system is used.
character-value Specify the preferred language version code to be used for PTF cover letters.

Number of PTFs being delivered. The total number of PTFs being delivered.

Number of PTFs ordered. The total number of PTFs in the order. At least one PTF must be ordered.

Offset to alternative electronic mail address. The offset to the alternative electronic mail address.

Offset to image directory. The offset to the image directory of the directory where optical images will be saved. This field must be set to zero if *IMAGE is not specified for delivery format.

Offset to primary electronic mail address. The offset to the primary electronic mail address.

Offset to PTFs being delivered. The offset to the information of the first PTF being delivered.

Offset to PTFs ordered. The offset to the information of the first PTF to be ordered.

Order identifier. The unique identifier of the order. This identifier is the same as the problem ID of the problem created when the order was requested.

Order preparation time. The time in minutes that the service provider will take to prepare the order before it is available to be downloaded.

Order status. Specifies the order status. Possible values are:

*SENT PTFs were delivered as specified by delivery mode field.
*WAIT The order is being prepared by the service provider and will be ready to be downloaded at the time specified by order preparation time field. A request to resume the order should be submitted at a later time.

Postal code. The Postal code for the location to which the service provider should send parts or assistance.

*SAME The postal code in the contact information of the system will be used.
character-value Specify the postal code.

Primary electronic mail addresses. The electronic mail (e-mail) address for the contact person.

*SAME The primary electronic mail address in the contact information of the system will be used.
*NONE No primary e-mail address is provided for the contact person.
character-value Specify the primary e-mail address of the contact person.

Primary fax number. The complete telephone number where information for the contact can be faxed. This number should include the area code, exchange numbers, and the extension.

*SAME The primary fax number in the contact information of the system will be used.
*NONE There is no primary fax number for the contact person.
character-value Specify the primary fax number.

Primary telephone number. The complete telephone number where the person named for the Contact may be reached most often. This number should include the area code, exchange numbers, and the extension.

*SAME The primary telephone number in the contact information of the system will be used.
character-value Specify the primary telephone number.

Product. The 7-character product identifier of the product that the PTF is associated with. If the PTF identifier is associated with more than one product, the PTF order is limited to the product specified. The following special value is accepted if this is an input field:

*ONLY The PTF identifier is associated with only one product. If this value and *REQUIRED for the order parameter are specified, requisites are sent for only that product that is installed or supported on your system. *ONLY should be specified for the product if *ONLY is specified for the release field.

PTF identifier ordered. The PTF identifier. Some PTFs must be ordered individually or within a list of PTFs with the same prefix and not as part of a general list.

A cumulative PTF package (CUM) is specified using the format SF99vrm and the Preventive Service Planning (PSP) format is SF98vrm, where vrm is version-release-modification.

The following special values are accepted if this is an input field:

*CUMPKG Order the latest level of the cumulative PTF package (SF99vrm) for the operating system release that is installed on the system. HIPER and DB2 Univeral Database (UDB) group PTFs are automatically requested with this order. It cannot be ordered with any other PTF identifier or special value.
*CUMONLY Order the latest level of the cumulative PTF package (SF99vrm) for the operating system release that is installed on the system but without HIPER and DB2 Univeral Database (UDB) group PTFs. It cannot be ordered with any other PTF identifier or special value.
*HIPERGRP Order the latest level of HIPER PTF group for the operating system release that is installed on the system.
*DB2GRP Order the latest level of DB2 UDB PTF group for the operating system release that is installed on the system.
*BRSGRP Order the latest level of Backup Recovery Solutions PTF group for the operating system release that is installed on the system.
*HTTPGRP Order the latest level of IBM HTTP Server PTF group for the operating system release that is installed on the system.
*JVAGRP Order the latest level of Java PTF group for the operating system release that is installed on the system.
*PFRGRP Order the latest level of Performance Tools PTF group for the operating system release that is installed on the system.

PTF identifier sent. The PTF identifier.

PTF parts to order. Indicates whether PTFs or cover letters are being ordered. Possible values are:

*ALL PTFs and cover letters are being ordered.
*CVRLTR Cover letters only are being ordered.

Release. The 6-character release level in VxRyMz format where Vx is the version number, Ry is the release number, and Mz is the modification level. The variables x and y can be a number from 0 through 9, and the variable z can be a number from 0 through 9 or a letter from A through Z. The following special value is accepted if this is an input field:

*ONLY The PTF identifier is associated with only one release. If this value and *REQUIRED for the order parameter are specified, requisites are sent for only that release level that is installed or supported on your system. *ONLY should be specified for the release if *ONLY is specified for the product field.

Reorder. Indicates whether a PTF that is currently loaded, applied, or on order should be ordered again. Possible values are:

*NO PTFs that are already loaded, applied, or on order are not reordered.
*YES PTFs that are already loaded, applied, or on order are reordered.

Note: A PTF is not reordered if the *SAVF delivery format is specified and a save file is available on the system.

Requisites. The level of fixes that are being requested. Possible values are:

*REQUIRED The PTF ordered and its requisites are being requested.
*PTFID The specific PTF ordered is the one being requested. No requisites are sent.

Reserved. A reserved field. Should be set to null (x'00').

State or province. The state or province names for the location to which you want your service provider to send parts or assistance.

*SAME The state or province in the contact information of the system will be used.
*NONE There is no State or province.
character-value Specify the State or province.

Street address lines 1, 2 and 3. The postal number and street name of the location to which you want your service provider to send parts or assistance for the problem. This should not be a post office box.

*SAME The street address in the contact information of the system will be used.
*NONE No additional street address information is provided. This value is valid for lines 2 and 3, but not for line 1.
character-value Specify the street address. Up to three lines of street address information can be specified. Each line is a separate parameter element, which can be up to 36 characters long.

Update interval. The time in seconds that indicates how often download status is updated in the data queue when PTFs are being downloaded. This field must be set to zero if the name of status data queue field is set to blanks. See Usage Notes for information about the status data queue.

Wait time for order completion. The time in minutes that the connection with the service provider should remain active while the order is being prepared for download. If this value is greater than or equal to the order preparation time field, the connection will remain active and the download process will be started automatically when the order is ready. Otherwise, the connection with the service provider will be closed and a request to resume the order should be submitted at a later time. If -1 is specified, the connection will remain active as much time as necessary while the order is being prepared.


Usage Notes

  1. Only one job on the system can invoke QESCPTFO API at a time.
  2. When processing a PTF order, and the delivery format is *SAVF, the API will return control to the caller when all PTF save files are delivered. When the delivery format is *IMAGE, the API will return control to the caller depending on the order preparation time and the wait time for order completion fields. If the order preparation time is greater than the wait time for order completion, the order is set to *WAIT status, the API will return control to the caller and a request to resume the order should be submitted after the time indicated by order preparation time field. Otherwise, the API will return control to the caller when the optical image files are delivered.
  3. Information about the download status is sent to the status data queue specified and updated at intervals specified in the update interval field. The download progress can be checked by monitoring the status data queue in a different thread or process. The following table shows the format for the status data. For a detailed description of each field, see Field Descriptions.
    Offset Type Field
    Dec Hex
    0 0 CHAR(10) Message identifier
    10 A CHAR(2) Message format
    12 C CHAR(*) Message status data


Field Descriptions

Message identifier. The identifier of the message sent to the queue. Possible values are:

*PTFDWNL This message was sent by the Control PTF Order (QESCPTFO) API.

Message format. The format of the message data in the queue. Possible values are:

01 The message contains the information of the order to be delivered. This message format is sent when the actual list of PTFs to be delivered is gotten.
02 The message contains the download status. This message format is sent at intervals as specified in the update interval field.

Message status data. The information of the data sent to the queue. This information depends on the message format field. If the message status data exceeds the maximum entry length of the data queue, the information is truncated.

If the message format field is '01', then the message status data has the following format:

Offset Type Field
Dec Hex
0 0 CHAR(8) Receiver format name
8 8 CHAR(*) Receiver variable structure

If the message format field is '02', then the message status data has the following format:

Offset Type Field
Dec Hex
0 0 CHAR(31) Order identifier
31 1F CHAR(1) Reserved
32 20 BINARY(4) Order size
36 24 BINARY(4) Bytes downloaded

Bytes downloaded. The number of bytes that has been already downloaded.

Order size. The number of bytes to be delivered for the order.

Order identifier. The unique identifier of the order this message is associated with. This identifier is the same as the problem ID of the problem created when the order was requested.

Receiver format name. The format specified for the format of receiver variable parameter.

Receiver variable structure. The actual list of PTFs delivered as specified by the format of receiver variable.


Error Messages

The following messages may be sent from this function:

Message ID Error Message Text
CPFA0AE An error occurred while trying to resolve object name.
CPFA0A9 Object not found. Object is &1.
CPFA0DE Object type not valid for request. Object is &1.
CPFA09C Not authorized to object. Object is &1.
CPF24B4 Severe error while addressing parameter list.
CPF3CF1 Error code parameter not valid.
CPF3CF2 Error(s) occurred during running of &1 API.
CPF3C1E Required parameter &1 omitted.
CPF3C21 Format name &1 is not valid.
CPF3C3A Value for parameter &2 for API &1 not valid.
CPF3C39 Value for reserved field not valid.
CPF7A86 Problem log services already started.
CPF8C01 Cannot connect to IBM service system. One session allowed.
CPF8C16 Error occurred while processing request.
CPF8C17 Sign-on failed.
CPF8C19 Remote support application failed.
CPF8C2A Cannot connect to IBM service system.
CPF8C24 Error occurred while processing request.
CPF8C27 Alternate load device not found.
CPF8C32 PTF order cannot be processed.
CPF8C9A Check PTF must be set to *NO when *CVRLTR is specified for PTF parts.
CPF8C99 PTF &2-&1 &3 not ordered.
CPF9801 Object &2 in library &3 not found.
CPF9802 Not authorized to object &1 in &2 type *&3.
CPF9810 Library &1 not found.
CPF9820 Not authorized to use library &1.

End of change
API introduced: V5R4
Top | Software Product APIs | APIs by category