Well, I guess I'm missing the point here. I don't use SAVCHGOBJ here, but we did at another company for which I worked. There we did a Save 21 monthly and the SAVCHGOBJ daily. The Save 21 got everything (previously saved or not). If there were no changes to a library, nothing was backed up until the monthly full system save. While physically one could just do a SAVCHGOBJ and *never* do a SAVLIB, it sounds impractical to me. But, as I said, perhaps I missed the point.
Jerry C. Adams
IBM System i Programmer/Analyst
--
B&W Wholesale
office: 615-995-7024
email: jerry@xxxxxxxxxxxxxxx
Is that the best game you ever pitched? -Reporter to Don Larsen after pitching the only perfect game in World Series history.
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Simon Coulter
Sent: Friday, May 07, 2010 8:47 PM
To: Midrange Systems Technical Discussion
Subject: Re: The problem with SAVCHGOBJ . . .
On 08/05/2010, at 7:21 AM, James H. H. Lampert wrote:
. . . is that if you do a SAVCHGOBJ, and it finds a library that's
never
been saved, it doesn't save it, or anything in it.
SAVCHGOBJ saves objects changed since the specified reference date.
The default reference date is the last SAVLIB date for the library
containing the changed objects. Because no SAVLIB has been performed
on a newly created library the reference date is (effectively) null
and you'll get CPF3745 and the save will fail. Resolve it by
specifying a reference date instead of the default.
You could also issue a SAVLIB of the library to a temporary save file
immediately after creating it (i.e., while still empty). That would
set the default reference date and then any new objects would be
picked up.
Regards,
Simon Coulter.
--------------------------------------------------------------------
FlyByNight Software OS/400, i5/OS Technical Specialists
http://www.flybynight.com.au/
Phone: +61 2 6657 8251 Mobile: +61 0411 091 400 /"\
Fax: +61 2 6657 8251 \ /
X
ASCII Ribbon campaign against HTML E-Mail / \
--------------------------------------------------------------------
As an Amazon Associate we earn from qualifying purchases.