|
Publish Package Interface |
|
Returns the header information for the first package in the package list.
CALL PACKAGE_FIRST(pkgListId, packageId, numEntries, desc, dateTime, nameValue, channelt, rc<, properties, propValue1, ...propValueN>);
properties parameter. Valid
property values are defined as follows:
The following example opens the JSMITH queue and retrieves the descriptive header information for all packages, then returns the header information for the first package.
plist=0; qname = "MQSERIES://LOCAL:JSMITH"; rc=0; total=0; nameValue=''; CALL RETRIEVE_PACKAGE(plist, "FROM_QUEUE", qname, total, rc); packageId = 0; desc=''; num=0; dt=0; nv=''; ch=''; rc=0; CALL PACKAGE_FIRST(plist, packageId, num, desc, dt, nv, ch, rc);
The following example demonstrates the use of properties.
plist=0;
qname = "MQSERIES://LOCAL:JSMITH";
rc=0;
total=0;
nameValue='';
CALL RETRIEVE_PACKAGE(list, "FROM_QUEUE", qname, total, rc);
packageId = 0;
desc='';
num=0;
exp=0;
abstract='';
dt=0;
nv='';
ch='';
rc=0;
props='ABSTRACT, EXPIRATION_DATETIME';
CALL PACKAGE_FIRST(plist, packageId, num, desc, dt, nv, ch, rc, props,
abstract, exp);
|
Publish Package Interface |
|