|
Using CRTDUPOBJ would not work for an IFS object. Futher, any OS function would require the server be ended before copying the object.. If you would like to create a copy of a database which does not share the replica ID with the original database I would suggest using the C api COPYDB There is a sample written for this API in the QNTCSDK library in a file called COPYDB. I hope this helps. If you do not have the QNTCSDK you need to install the API toolkit . Walter Scanlan Advisory Software Engineer Domino For AS/400 Team Leader Phone (507)286-6088 Fax (507)286-5028 Pager (507)292-2985 Internet WSCANLAN@US.IBM.COM "Jeffrey Silberberg" <jsilberberg@mindspring.com>@midrange.com on 11/29/2000 10:33:57 AM Please respond to DOMINO400@midrange.com Sent by: owner-domino400@midrange.com To: <DOMINO400@midrange.com>, "Glenn Ericson" <Glenn-Ericson@att.net> cc: Subject: Re: Command or api to copy a domino database? Glenn, Sorry I don't understand your question. David as I understood the post, was looking for the way to create a duplicate copy of a NSF on the server as a backup or duplicate to make changes to going forward. If you just do a simple copy like a CRTDUPOBJ you do not change the Replica Id and therefore you do not create a new unique NSF on the server. Using the New Copy function does create a new Replica Id and therefore a new unique object. I believe the API function I referenced would also do the same thing for him.. JMS... ----- Original Message ----- From: Glenn Ericson To: DOMINO400@midrange.com ; DOMINO400@midrange.com Cc: Jeffrey Silberberg Sent: Wednesday, November 29, 2000 11:02 AM Subject: Re: Command or api to copy a domino database? Jeffrey, why do you rule out Dominos LEI and /or DECS replication functions? Replication sequence numbers are important part of the process, I thought. At 10:02 AM 11/29/2000 -0500, Jeffrey Silberberg wrote: >>>> David, If you just do a dos link copy of the NS you do not create a new replica Id so you can get into a lot of trouble. What you really need to do is use the New Copy function. From a Workspace, it would be; a.) Click on the Icon b.) File / Database / New Copy Server = A / B Title = Change Name to Identify New Object File Name = Change Name to Identify New Object.. c.) Click "OK" d.) Review ACL for old and new NSF.. Or you can look at using the C API toolkit which has a NSFDbCreateAndCopy which I beleive will do the same thing... Not sure where, Maybe ServerAdmin, but I think I have seen a version of this around in a form that you could have a CLP submit a Domino Csl command to make this happen.. HTH, JMS... ----- Original Message ----- From: <mailto:dgibbs@verticalsky.com>David Gibbs To: <mailto:'domino400@midrange.com'>'domino400@midrange.com' Sent: Tuesday, November 28, 2000 4:27 PM Subject: Command or api to copy a domino database? Folks: I have need to copy a domino database on the AS/400 (within a CL or RPG program) so that it's replication id is different. Does anyone know of a way to do this? A command or API would be fine. Thanks! david -- David Gibbs Sr. Software Engineer <<<< Glenn __________________________________ Glenn Ericson, IBM Certified Specialist Phoenix Consulting LLC East Elmhurst, NY USA Phone 718 898 9805 Fax 718 446 1150 mailto:Glenn-Ericson@att.net ___________________________________ +--- | This is the Domino/400 Mailing List! | To submit a new message, send your mail to DOMINO400@midrange.com. | To subscribe to this list send email to DOMINO400-SUB@midrange.com. | To unsubscribe from this list send email to DOMINO400-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: meechamw@ptd.net +---
As an Amazon Associate we earn from qualifying purchases.
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.