|
Use the IFS. * sample del '/qsys.lib/rob.lib/mydtaara.dtaara' * remove members - must be done before deleting a file. Have to have an exception to prove the rule. del '/qsys.lib/mylib.lib/myfile.file/*' * remove the file itself del '/qsys.lib/rob.lib/file.file' DRF@HeiligMeyers.com on 03/08/2000 03:08:28 PM Please respond to MIDRANGE-L@midrange.com@Internet To: midrange-l@midrange.com@Internet cc: Fax to: Subject: Generic deletion of an object I am creating a utility that will duplicate any object and handle the various exceptions that may occur when duplicating objects. The one exception that is proving difficult is if the new object already exists and should be deleted. For example, if I'm duplicating an object and the destination library already has that file, but was created earlier than the source object, then the destination object needs to be deleted before the CRTDUPOBJ command can be used. Trouble is, all AS/400 deletion commands are object type specific. I could create a dummy library, move the object to the library and then clear it, but that seems rather clunky to me. I've searched the API books to no avail and we don't have TAATOOL, except what comes in the QUSRTOOL library. Thanks for any help you can provide. Donald R. Fisher, III Project Manager Heilig-Meyers Furniture Company (804) 784-7500 ext. 2124 Don.Fisher@HeiligMeyers.com +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +--- +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
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.