× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Rich,



Haven't tried it myself, but the Rename Object (QLIRNMO) API might be of
use:



"The Rename Object (QLIRNMO) API renames an existing object to a new object
name or moves the object to a different library or both, and optionally
replaces the existing object in the target library. This API combines the
functions of the Rename Object (RNMOBJ) and the Move Object (MOVOBJ)
commands. The API allows you to rename and move in one step and optionally
replace the existing object in the target library".



Furthermore:



"For a *PGM object, the target object is moved to the QRPLOBJ library (or
the QRPLxxxxx library if the target object is in a library in primary or
secondary auxiliary storage pool 'xxxxx'). If an error occurs with the
QRPLOBJ library, the object is moved to the QTEMP library. If an error
occurs with the QRPLxxxxx or QTEMP library, the object is deleted. The
renamed program will have the same user profile (USRPRF) value as the target
program. If the target program has the adopted authority USRPRF(*OWNER)
attribute, the owner of the from program must be the same as the owner of
the target program. An error message is issued if the owners do not match.
The use adopted authority (USEADPAUT) value from the target program is
copied to the from program as long as the user who performs the rename
operation can create and update programs with the USEADPAUT(*YES) attribute.
The QUSEADPAUT system value determines whether or not users can create and
update programs to use adopted authority. If the program being replaced has
USEADPAUT(*YES) and the user cannot create and update programs to use
adopted authority, the USEADPAUT value of the from program remains the
same".



Best wishes,



Richard





-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Rich Loeber
Sent: 01 July 2010 18:48
To: Midrange Systems Technical Discussion
Subject: Using QRPLOBJ Library



Hello list.



I have a situation where I have a program that was compiled on a
different

system that I want to move into place. The program may be in use when I

want to install the new version. Obviously, just deleting the program
and

moving the new one in would not be a great idea. Would it work to move

the old version of the program into the QRPLOBJ library and then install

the new version?



Does anyone have any experience with doing this kind of program update?
I

know the compiler will do this for me, but the program is already
compiled

when I'm moving it into production.



Rich Loeber - @richloeber

Kisco Information Systems

[1]http://www.kisco.com



References



Visible links

1. http://www.kisco.com/


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.