Data Queue APIs--Categories - FTP Directory Listing - IBM
Data Queue APIs--Categories - FTP Directory Listing - IBM
Data Queue APIs--Categories - FTP Directory Listing - IBM
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Rename Object (QLIRNMO) API<br />
Rename Object (QLIRNMO) API<br />
Required Parameter Group:<br />
1 From qualified object name Input Char(20)<br />
2 Object type Input Char(10)<br />
3 To qualified object name Input Char(20)<br />
4 Replace object Input Char(1)<br />
5 Error code I/O Char(*)<br />
Threadsafe: Conditional; see Usage Notes.<br />
The Rename Object (QLIRNMO) API renames an existing object to a new object name or moves the<br />
object to a different library or both, and optionally replaces the object.<br />
When the replace object parameter requests to replace an existing object and the to object already exists,<br />
the following occur:<br />
● The *PUBLIC and private authorities from the to object replace the authorities on the renamed<br />
object.<br />
● The owner of the object is the owner of the from object.<br />
● If the object is not a *PGM object, the to object is deleted.<br />
● For a *PGM object, the to object is moved to the QRPLOBJ library. The renamed program will<br />
have the same user profile (USRPRF) value as the to program. If the to program has the adopted<br />
authority USRPRF(*OWNER) attribute, the owner of the from program must be the same as the<br />
owner of the to program. An error message is issued if the owners do not match. For more<br />
information on adopted authority, see the Security - Reference book. The use adopted authority<br />
(USEADPAUT) value from the to program is copied to the from program as long as the user who<br />
performs the rename operation can create and update programs with the USEADPAUT(*YES)<br />
attribute. The QUSEADPAUT system value determines whether or not users can create and update<br />
programs to use adopted authority. If the program being replaced has USEADPAUT(*YES) and the<br />
user cannot create and update programs to use adopted authority, the USEADPAUT value of the<br />
from program remains the same.<br />
● For a *CRQD object, the from change request description will have the same user profile<br />
(USRPRF) value as the to change request description. If the to change request description has a user<br />
profile value of USRPRF(*OWNER), the owner of the from object must be the same as the to<br />
object. An error message is issued if the owners do not match.<br />
All restrictions that apply to the Move Object (MOVOBJ) and Rename Object (RNMOBJ) commands also<br />
http://infocntr.rchland.ibm.com/pubs/html/as400/v4r5/ic2924/info/apis/qlirnmo.htm (1 of 6) [10/4/1999 2:36:33 PM]