We have the system() prototype and use it quite a bit here. But I have
several million files to index to a database and move from a NTFS
directory to our NAS. Invoking the command layer from within an RPG to
interpret the command string and call some program, (API), under the
covers seems like a waste of CPU cycles. Our system is lacking there
being the first generation Power5 processor @ 1.5Ghz. I expect this
job
to run for days in the background.

I'm not in a position to test this now (I wish I were - I love this stuff)
but if the API truly emulates Unix, then Qp0lRenameUnlink *should* do the
move for you. I'll try this tonight if you don't get to it first.

* Rename file (overwrite if exists)
D c_renameforce PR 10I 0 ExtProc('Qp0lRenameUnlink')
D old * Value Options(*String)
D new * Value Options(*String)


Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
"Those who make the worst use of their time are the first to complain of its
shortness."
-- Jean de La Bruyre



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.